ConfigureMakeMakeInstall
发表于 : 2005-08-02 11:19
Introduction
Most programs (at least most of the good programs) that need to be installed from source on Linux come in the configure, make, make install format. That means that after unzip/untarring the sources into a local directory, you need to execute the following steps in order to install the program: configure, make and make install.
Step 1 - Configure
configure is a script that is used for four things:
*
It checks that your computer fulfils all the necessary requirments
*
It is used to enable/disable various options in the compiled program
*
It can help you change the default paths it looks for it's requirments in
*
It can change the path that the program will be installed in
You can look at the various options that your specific configure script provides you with by executing:
# ./configure --help
Most problems you havee with installing programs from source will hopefully be restricted to the configure phase.
To run configure in a terminal enter the directory that contains the source of the program and type:
# ./configure (your options here)
Step 2 - Make
After configure finishes successfully you need to run make to actually compile the program. This can be done simply be calling:
# make
Now if all goes well you should have a working copy of the program in the sources directory. You should try it out by running it:
# ./yourprogramnamehere
Step 3 - Make Install
If everything works well and you want to install the program just type:
# sudo make install
And walla!
https://wiki.ubuntu.com/ConfigureMakeMakeInstall
Most programs (at least most of the good programs) that need to be installed from source on Linux come in the configure, make, make install format. That means that after unzip/untarring the sources into a local directory, you need to execute the following steps in order to install the program: configure, make and make install.
Step 1 - Configure
configure is a script that is used for four things:
*
It checks that your computer fulfils all the necessary requirments
*
It is used to enable/disable various options in the compiled program
*
It can help you change the default paths it looks for it's requirments in
*
It can change the path that the program will be installed in
You can look at the various options that your specific configure script provides you with by executing:
# ./configure --help
Most problems you havee with installing programs from source will hopefully be restricted to the configure phase.
To run configure in a terminal enter the directory that contains the source of the program and type:
# ./configure (your options here)
Step 2 - Make
After configure finishes successfully you need to run make to actually compile the program. This can be done simply be calling:
# make
Now if all goes well you should have a working copy of the program in the sources directory. You should try it out by running it:
# ./yourprogramnamehere
Step 3 - Make Install
If everything works well and you want to install the program just type:
# sudo make install
And walla!
https://wiki.ubuntu.com/ConfigureMakeMakeInstall