Spec-Zone .ru
спецификации, руководства, описания, API
|
If you're experiencing problems with enabling both the mysql
and the mysqli
extension when building PHP on Linux yourself, you should try the following
procedure.
Configure PHP like this:
./configure --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr
Edit the Makefile
and search for a line that starts
with EXTRA_LIBS
. It might look like this (all on one line):
EXTRA_LIBS = -lcrypt -lcrypt -lmysqlclient -lz -lresolv -lm -ldl -lnsl-lxml2 -lz -lm -lxml2 -lz -lm -lmysqlclient -lz -lcrypt -lnsl -lm-lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lcrypt
Build and install PHP:
makemake install