编译php的命令:./configure '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--with-apxs2=/usr/sbin/apxs' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--with-zlib-dir=/usr' '--enable-trans-sid' '--with-xml' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-dbx' '--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr' '--with-config-file-path=/etc' '--sysconfdir=/private/etc' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-openssl' '--with-xmlrpc' '--with-xsl=/usr' '--without-pear' '--with-gd' '--with-png-dir=/usr' '--disable-mbregex' '--enable-mod-charset''--with-mysql=/usr/local/mysql/bin/mysql_config'
返回结果
checking xxx ...
.....................(一大堆)
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
checking for mysql_set_server_option in -lmysqlclient... (cached) yes
checking for mysql_stmt_field_count in -lmysqlclient... (cached) yes
..................
然后make与sudo make install,查看phpinfo()发现mysql库没装上,mysqli库装上了
mysql库对我没什么用,我编程用mysqli或pear db,可是discuz偏偏用mysql库
环境是Mac OS X 10.5.5(darwin9.5.0)(命令行界面与unix一样)apache 2.2.9 php 5.2.6 mysql 5
请问我怎么办呀