Slackware 13 64 bits and PHP 5.2.x

Sometimes php complains about a missing mysql lib even if your mysql is perfectly installed, to solve this in slackware proceed this way:

Install the following packages:

libX11-1.3.3-x86_64-1.txz
libXau-1.0.5-x86_64-1.txz
libXdmcp-1.0.3-x86_64-1.txz
libXpm-3.5.8-x86_64-1.txz

tar xvfj php-5.x.x.tar.bz2

cd php-5.x.x

#Change the paths if you need

./configure  –with-apxs2=/usr/local/etc/httpd/bin/apxs –with-config-file-path=/usr/local/etc/httpd/conf –with-mysql=/usr/local  –with-openssl –enable-calendar –enable-ftp –with-mcrypt –enable-gd-native-ttf –with-jpeg-dir –with-gd=/usr/local –with-png-dir=/usr/local –with-zlib-dir=/usr/local –enable-mbstring –with-curl=/usr/local/bin/curl –enable-sockets –with-pdo-mysql=shared

make

make install

Done!

About these ads
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: