Hi guys. I'm hoping someone here can help me out as I'm getting nowhere. I'm trying to config PHP 5.2 from source, with this configure string:

php-5.2.0/configure 
--enable-suhosin 
--enable-eaccelerator=shared 
--prefix=/opt/php52 
--with-apxs2=/usr/sbin/apxs 
--with-config-file-path=/etc 
--with-mysqli 
--with-php-config=/opt/php/bin/php-config 
--with-gd 
--with-jpeg-dir=/usr/lib
--with-png-dir=/usr/lib
--enable-memory-limit 
--enable-magic-quotes 
--disable-short-tags 
--with-zlib 
--with-bz2 
--enable-calendar 
--enable-bcmath 
--with-curl 
--enable-exif 
--enable-ftp 
--with-ttf 
--enable-gd-native-ttf 
--enable-gd-jis-conv 
--enable-mbstring 
--with-mcrypt 
--with-pgsql 
--enable-sockets 
--enable-zip

I'm getting a few errors I can't fix though (in addition to plenty I could -_-).

With that string, I get the following:

checking for mcrypt support... yes
checking for libmcrypt version... >= 2.5.6
checking for mcrypt_module_open in -lmcrypt... no
checking for mcrypt_module_open in -lmcrypt... no
configure: error: Sorry, I was not able to diagnose which libmcrypt version you have installed.

Without mcrypt:

checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check config.log for more information.

And without MySQLi it finally completes successfully. But MySQL is obviously important, and I don't have a clue how to fix.

I can get more detailed info on the errors from config.log if needed, but does anyone here know what's up with MySQLi?

Edit: I don't know how, but I got it worked out. The GD problems were a case of having to rename a file or two, and the rest were bad file locations due to having two installations of PHP and MySQL getting in the way.

    Write a Reply...