PDA

View Full Version : Argh, libgd + PHP 5 + MySQL won't install!




wrldwzrd89
Jun 19, 2007, 09:26 AM
Using several guides on the Internet to getting PHP and libgd to work together, I managed to get all the different libraries libgd uses to work, but when I try to do a make and make install after configuring PHP as follows:

./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local/mysql --with-gd-dir=/usr/local --with-png-dir=/usr/local --with-jpeg-dir=/usr/local --with-freetype2-dir=/usr/local --with-xpm-dir=/usr/local --with-zlib-dir=/usr/local

I get two error messages:
1) When I run the test script it complains about not being able to find libmysql15.so. This file is in /usr/local/mysql/lib/ but the script is looking for it in /usr/local/mysql/lib/mysql/, which doesn't exist.
2) When installing PEAR, I get a Trace/BPT trap error.



wrldwzrd89
Jun 25, 2007, 02:54 PM
Finally fixed this... I had to create a symbolic link to get PHP to find the MySQL libraries. Dunno why it wants to look in /usr/local/mysql/lib/mysql instead of /usr/local/mysql/lib...

jeremy.king
Jun 25, 2007, 03:27 PM
gd is included with MAMP (http://www.mamp.info/en/home.php), any particular reason you didn't use this (or XAMPP)?

wrldwzrd89
Jun 25, 2007, 03:57 PM
gd is included with MAMP (http://www.mamp.info/en/home.php), any particular reason you didn't use this (or XAMPP)?
I did not know MAMP existed until you told me.

jeremy.king
Jun 25, 2007, 04:01 PM
I did not know MAMP existed until you told me.

I can't even count how many times I compiled crap the hard way and then discovered these!