Click to See Complete Forum and Search --> : ./configure


Reko
01-31-2002, 08:48 AM
what pakages are required for ./configure to run correctly?
I did a stripped down in stallation, and when i treid to run ./configure --prefix=/usr/local/mysql it would barf on me. I tried installing select rpm's and dependencies, but it still didn't work. I reinstalled Linux with just the X-Windows and Web Server option and now I can run the ./confugre command.
What packages are required for ./configure to run? Thanks.

-Bryan

slapNUT
01-31-2002, 02:24 PM
It depends on the package you are trying to compile. Each program is unique and has different requirements.

I know that doesn't help alot but I can't explain it any better than that.
Usually they come with files README and INSTALL which cover the requirements to ./configure make make install the binaries.

bigrigdriver
01-31-2002, 07:45 PM
Generally, when I'm dealing with rpm's, I chose the .src.rpm so that I can use rpm --rebuild and build it for my system. rpm doesn't usually offer the ./configure option. The ./configure only comes into play when installing a tarball. There is a configure script in the app. After unpacking the tarball, cd to the directory it creates and issue the command: ./configure --help. That will show you the configure options the packer built into the app. Choose the configure options you want, compose your ./configure <options> <filename> command accordingly, and hopefully, watch it fly. If you get error messages, tweak as needed to get it to configure, make, and make install properly

bdl
01-31-2002, 08:44 PM
'./configure' can require almost anything - a certain version of some library, include files, kernel headers, a specific directory it can/cannot find, etc. ad nauseum. It will *almost* always give you an error code with some idea of what it's looking for and basically point you in the right direction.

It would be very helpful if you would mention exactly what you're trying to build (mysql??) and what distro you're running. Just saying './configure doesnt work' is like trying to find a needle in a haystack. The best way to get help is to be as specific as possible, post a little of the error output you're getting.

Reko
02-01-2002, 08:06 AM
I attepmted to install mysql via the ./confugre and got it to work once, and then after couldn't get it to work cause of the dreded can't find /tmp/mysql.sock BS.
Anyway, I went with a rpm install of mysql, and now am trying to compile php with the --with-mysql option, and when i run the ./configure --with-my sql/bin/mysql \
--with-xml \
--with-apache=../apache_1.3.22 \
--enable-track-vars
the configure runs, but stops with this error:
configure: error: Cannot find header files under /usr/bin/mysql

I have tried it with the option /usr/lib/mysql, /usr/share/mysql, etc. Where are the damn header files that I need to specify in the configure command? Please let me know. Thanks for the help.

-Bryan

bdl
02-02-2002, 09:37 PM
Originally posted by Reko:
<STRONG>I attepmted to install mysql via the ./confugre and got it to work once, and then after couldn't get it to work cause of the dreded can't find /tmp/mysql.sock BS.
Anyway, I went with a rpm install of mysql, and now am trying to compile php with the --with-mysql option, and when i run the ./configure --with-my sql/bin/mysql \
--with-xml \
--with-apache=../apache_1.3.22 \
--enable-track-vars
the configure runs, but stops with this error:
configure: error: Cannot find header files under /usr/bin/mysql

I have tried it with the option /usr/lib/mysql, /usr/share/mysql, etc. Where are the damn header files that I need to specify in the configure command? Please let me know. Thanks for the help.

-Bryan</STRONG>


Well, I don't use RH nor RPM so I don't know where the package has installed the libs, but you can certainly look around for them. They're probably in /usr/local/libs/mysql or /usr/local/mysql/libs. The important thing is to make sure you add that path (whatever it is) to your /etc/ld.so.conf file and re-run 'ldconfig' as root. Then try the PHP configuration again.