Dunn
10-05-2002, 01:13 PM
I have downloaded and installed all MySQL RPM packages. Every attempt to re-configure PHP with:
./configure --with-mysql=/some/dir/wrong/again
Turns up either:
configure: error: Cannot find header files under /usr/lib/mysql/
or
configure: error: Cannot find mysqlclient library under /usr/src/redhat/SOURCES/mysql-3.23.52
... depending on what path I use as the parameter for --with-mysql.
I downloaded the MySQL source code, untarred it, read the docs, compiled and installed it. It seems as though MySQL places its files in many places on the system:
/usr/lib
/usr/share/mysql
/usr/include/mysql
/var/lib/mysql
/usr/bin/mysql
There are many paths. Sources in one, libraries in another, executables in a third, datafiles in a fourth. This would not bother me except that PHP only accepts ONE directory for --with-mysql configuration option.
Thanks for any tips
./configure --with-mysql=/some/dir/wrong/again
Turns up either:
configure: error: Cannot find header files under /usr/lib/mysql/
or
configure: error: Cannot find mysqlclient library under /usr/src/redhat/SOURCES/mysql-3.23.52
... depending on what path I use as the parameter for --with-mysql.
I downloaded the MySQL source code, untarred it, read the docs, compiled and installed it. It seems as though MySQL places its files in many places on the system:
/usr/lib
/usr/share/mysql
/usr/include/mysql
/var/lib/mysql
/usr/bin/mysql
There are many paths. Sources in one, libraries in another, executables in a third, datafiles in a fourth. This would not bother me except that PHP only accepts ONE directory for --with-mysql configuration option.
Thanks for any tips