DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(mysql.info) php-mysql-mysqli

Info Catalog (mysql.info) php-problems (mysql.info) php
 
 22.3.2 Enabling Both `mysql' and `mysqli' in PHP
 ------------------------------------------------
 
 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.
 
   1. Configure PHP like this:
 
           ./configure --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr
 
   2. 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
 
      Remove all duplicates, so that the line looks like this (all on
      one line):
 
           EXTRA_LIBS = -lcrypt -lcrypt -lmysqlclient -lz -lresolv -lm -ldl -lnsl
           -lxml2
 
   3. Build and install PHP:
 
           make
           make install
 
Info Catalog (mysql.info) php-problems (mysql.info) php
automatically generated byinfo2html