PHP throws configure errors when trying to compile w/ mysql
I am trying to compile PHP 5.1.6 with support for MySQL 4.1.x on a Fedora Core 1 VPS. This is my config string:
Code:
./configure --with-apxs2=/usr/sbin/apxs --with-mysql Code:
checking for MySQL support... yes Code:
./configure --with-apxs2=/usr/sbin/apxs --with-mysql=../mysql/usr/lib/mysql --with-zlib I am lost when looking at the config.log, but here is the relevant part: Code:
configure:58533: checking for mysql_close in -lmysqlclient Thank you. I have tried may variations of the --with-mysql including: --with-mysql=shared --with-mysql-/usr/lib/mysql (which is where mysql is installed) Nothing I try works, I always get the error noted above. |
[QUOTE=mrtwice]I am trying to compile PHP 5.1.6 with support for MySQL 4.1.x on a Fedora Core 1 VPS. This is my config string:
Code:
./configure --with-apxs2=/usr/sbin/apxs --with-mysql Code:
checking for MySQL support... yes Looks like you don't have the mysql-devel rpm installed. |
Try to add
Code:
–with-mysqli=/path/to/mysql/bin/mysql_config |
Quote:
Code:
./configure --with-apxs2=/usr/sbin/apxs --with-mysqli=/usr/bin/mysql_config --with-zlib I also tried: Code:
./configure --with-apxs2=/usr/sbin/apxs --with-mysql=/usr/lib/mysql --with-mysqli=/usr/bin/mysql_config --with-zlib Code:
checking for MySQL support... yes Code:
gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5 Still frustrated and will appreciate any help you can give. Thanks. |
How did you installed mysql? Using your distro's package manager, using a binary or compiled from source (downloaded from mysql.com)? Cause I never had problems compiling php and using either a binary, or compiled from source mysql. Note that the mysql packages of the various distros are splitted into parts like mysql, mysql-devel, mysql-client etc, so you may need to install all of them to get the required libraries.
Regards |
Quote:
|
Quote:
Code:
./configure --with-mysql=/path/to/new/mysql |
lmysqlclient error php install
Hi,
I get this same lmysqlclient error building php-5.1.6 on a CentOS 4.0 64bit x86_64, using the 5.0 binary from mysql.com. mysql-standard-5.0.24a-linux-x86_64-glibc23 Oddly, it seems to me to be related to openssl. If I tell the configure to use the openssl built from source (openssl-0.9.8c) I receive the error, however if I tell it to use the libraries that came with the distro (OpenSSL 0.9.7a Feb 19 2003) then php builds fine... Did you install openssl from source? What version are you running? Take care, Waitman |
Sorry for not posting back earlier. I think my problems were glibc related, but I am not absolutely sure. I ended up downloading the mysql 4.1 package under the heading:
Linux (non RPM, Intel C/C++ compiled, glibc-2.3) downloads and then it worked. I am thinking that if I built everything from source, I wouldn't have had the problem. However, the above solution worked for me. The package I downloaded was: mysql-standard-4.1.21-pc-linux-gnu-i686-icc-glibc23.tar.gz I hope that helps. |
Anyone have a different fix for this? I am trying to install mysql v5.0.27 and php 5.1.6 and I am getting the same error, I tried changing the ssl directory to the old one and I've tried omitting ssl from it all together and nothing is working
|
Quote:
http://dev.mysql.com/get/Downloads/M.../mysql.he.net/ |
Quote:
I am just going to wait until I get my drive back that has the slack 11 iso on it. See if it works, but damn this is discouraging. |
|
|
All times are GMT -5. The time now is 04:18 PM. |