Trouble configuring PHP to use MySQL
Hey everyone,
I'm having a problem getting PHP to configure properly when setting the --with-mysql flag. I've tried setting it equal to every single possible directory I've ever seen remotely relating to mysql, and nothing works at all. I've googled it to infinity, and some people have gotten it to all work, but never leave comments as to HOW they got it to work. Here's the command I'm executing: Code:
./configure --build=i386-redhat-linux --host=i386-redhat-linux --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-libdir=lib --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --with-pic --disable-rpath --with-bz2 --with-curl --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png --with-pspell --with-expat-dir=/usr --with-pcre-regex=/usr --with-zlib --with-layout=GNU --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-kerberos --enable-ucd-snmp-hack --with-unixODBC=shared,/usr --enable-memory-limit --enable-shmop --enable-calendar --enable-dbx --enable-dio --with-mime-magic=/etc/httpd/conf/magic --with-sqlite --with-libxml-dir=/usr --with-xml --with-swf=/usr --with-imap --with-imap-ssl --without-adabas --enable-dbx --enable-dbase --enable-filepro --without-fbsql --with-gdbm=/usr/include/gdbm --with-hyperwave --with-ldap --with-msql --without-ndbm --with-ovrimos --without-oci8 --without-oracle --with-pgsql --with-solid --with-cybercash --enable-freetype-4bit-antialias-hack --with-gd --with-imagick --with-t1lib --with-tiff-dir --with-ttf --with-xpm-dir --enable-bcmath --enable-calendar --enable-debug --enable-exif --enable-force-cgi-redirect --enable-libgcc --with-java --with-readline --with-ming --with-zlib --enable-overload --with-snmp --with-aspell --with-iconv --without-pspell --with-recode --enable-shmop --with-mysql=shared,/usr/local/lib/mysql Code:
checking for MySQL support... yes, shared Code:
configure:57721: checking for MySQL support Any ideas? Need more info? Lemme know... Thanks in advance! |
Did you compile mysql from source or are you using packages from your distro. If you are using packages from your distro, install the mysql client devel packages and see if that solves the problem. If you compiled from source, make sure you are pointing to the right mysql directory e.g. /usr/local/mysql on most local compilations.
|
they're installed. Here's info on relevent output from yum and rpm -aq:
yum list | grep -i mysql Code:
libdbi-dbd-mysql.i386 0.8.1a-1.2.2 installed Code:
perl-DBD-MySQL-3.0007-1.fc6 Let me know if you need any more output or information or if you have any ideas. Thanks for your help. |
It seems to me that in your ./configure section, you are pointing php to the wrong mysql directory. If you have installed from distro packages, then the mysql path is not /usr/local/lib/mysql.
|
can you help me figure out what path it should be? I'm going nuts over here trying to get this to work...
|
I don't really know what the path is because I normally compile amp from source. Try /usr/lib/mysql and /var/lib/mysql.
|
All times are GMT -5. The time now is 09:44 PM. |