Link to home
Avatar of genieweb
genieweb

asked on

Installing PHP with mcrypt and GD on Leopard Server 10.4.5

Hey,

I followed the main solution in https://www.experts-exchange.com/questions/23478190/How-to-compile-and-install-PHP-5-2-6-on-Xserve-running-Mac-OS-X-Server-10-5-3.html

however I came across some snags, /usr/local/mysql  didn't exist - to do with the mysql headers right? So I followed Apple's instructions and I have got them working  however I couldn't find /usr/local/mysql/bin/mysql_config for the mysqli.

beside that I downloaded and then compiled libmcrypt so that I could adjust the answer on the above page to the following:

MACOSX_DEPLOYMENT_TARGET=10.5 \
CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp-precomp" \
CCFLAGS="-arch x86_64 -g -Os -pipe" \
CXXFLAGS="-arch x86_64 -g -Os -pipe" \
LDFLAGS="-arch x86_64 -bind_at_load" \
./configure --prefix=/usr \
  --mandir=/usr/share/man \
  --infodir=/usr/share/info \
  --sysconfdir=/etc \
  --with-zlib \
  --with-zlib-dir=/usr/ \
  --with-jpeg-dir=/usr/local/lib \
  --with-png-dir=/usr/X11R6 \
  --with-freetype-dir=/usr/X11R6 \
  --with-xpm-dir=/usr/X11R6 \
  --with-openssl \
  --with-curl \
  --enable-exif \
  --enable-ftp \
  --enable-mbstring \
  --with-mcrypt \
  --with-mcrypt-dir=/usr/local/lib \
  --enable-mbregex \
  --enable-sockets \
  --with-mysql=/usr/include/mysql/ \
  --with-apxs2=/usr/sbin/apxs \
  --without-iconv



however it results in:


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.


Any help is much appreciated!

Thanks!

Luke
ASKER CERTIFIED SOLUTION
Avatar of tuaris
tuaris

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial