Hi, first I installed WebServerXKit08 on OS X.3.8. It works well. But, I'm doing an international site, and I need the iconv extension for PHP installed.
So, I had a go at compiling my first application. Here's what I did.
I downloaded the iconv library from http://www.gnu.org/software/libiconv/
From the terminal:
(change to the directory of the downloaded library)
sudo ./configure --prefix=/usr/local (no error)
sudo make (no error, last line "make[1]: Nothing to be done for `all'.")
sudo make install (no error)
Then I tried to compile the latest php after downloading it from php.net.
I got this error message:
make: *** [libs/libphp5.bundle] Error 1
SO, I found a bug report on the PHP site, which said to download:
http://snaps.php.net/php5-latest.tar.gz
I did that.
From the terminal (and with apache2 and mysql already installed):
(change to directory of downloaded snaphost)
sudo ./configure --prefix=/usr/local --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-iconv-dir=/usr/local (no error)
then
sudo make
gave this error:
make: *** [ext/libxml/libxml.lo] Error 1
Then I tried: sudo ./configure --prefix=/usr/local --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-iconv-dir=/usr/local/bin (changing the iconv-dir), but still an error!
Can anyone help?
Thanks in advance