What does ./configure mean?
I've seen many references in installation procedures for Apache and PHP to
do a ./configure --activate./....... or ./configure --without-mysql......... What directory should I be in and what user should I be logged in as? How do I know what directory I should be in? Is this is one of those "hidden" tricks of Linux.? TIA JP |
configure is a script that checks to see if you have the required software dependencies to compile the application and it will configure the make file for any specific options like --without-mysql. Which means I do not want to compile mysql database support.
The configure script is specific to the application you are compiling which is why you have the ./ i.e. current working directory. Depends on the application but to install you usually need to be logged in as root. The readme instructions will specify which steps that require you to be root. The usual steps to compile and install a program. ./configure make make install |
When you download the source code for a project
for example Apache it's usually in a "tar ball" (looks like project-version.tar.gz) when you extract the tar ball (tar xzvf project-version.tar.gz) it usually creates a directory project-version inside that directory there is the source code Large projects get very complicated so in order to simplify things the programmers use build tools like autoconf. ./configure runs a script that automagically configures things. You can pass arguments to the configure script so it can create a Makefile that suits your computer system. For example a project includes a gui client but your computer doesn't have X but you still want that program ./configure --no-gui the options that you pass a configure script are entirely up to the project so they vary considerably from script to script. Usually there is the option ./configure --help and it will list all of the possible options. This isn't really one of the "hidden" tricks of linux like messing w/ the kernel directly through /proc it's pretty well documented. In fact most projects have a file called README or INSTALL that tells you what you need to do. Of course to make use of these files you need to know how to extract an archive. Good luck. Oh yes ./ is a shorcut refering to the directory you are in. so ./configure executes the configure script in the directory you are in if there is one. |
let's say, like in the case of gaim, there is no configure file. If I type "make" I get nothing. If I type "make install" I get nothing. I d/l a tar.gz, is there another way to install these?
|
In the case of gaim there are those readme and install files
that tell you all the secrets |
I just d/led the gaim archive from sourceforge and
it does have a configure file and there is a file called Install with installation instructions: Quote:
|
All times are GMT -5. The time now is 08:04 AM. |