Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

pdo_mysql.so driver Installation

Ive been diggin around on this and not seen a coherent answer yet. Im trying to install Zend framework, which wants to use the pdo_mysql.so driver in php5. Natch this driver does'nt come installed with the leopard version of PHP 5. So i install Pear, then PDO but when I compile the pdo_mysql in the terminal with the command "pecl install pdo" I get the error

" running: make INSTALL_ROOT="/var/tmp/pear-build-root/install-PDO-1.0.3" install
Installing shared extensions: /var/tmp/pear-build-root/install-PDO-1.0.3/usr/lib/php/extensions/no-debug-non- zts-20060613/
cp: modules/*: No such file or directory
make: * [install-modules] Error 1
ERROR: `make INSTALL_ROOT="/var/tmp/pear-build-root/install-PDO-1.0.3" install' failed"

Can anyone shed any light on the cause/fix to this?
thanks!

G5 PPC, Mac OS X (10.5.3)

Posted on May 29, 2008 9:56 PM

Reply
2 replies

Jun 11, 2008 3:37 PM in response to greg humphrey

There appears to be a build bug in PECL. http://pecl.php.net/bugs/bug.php?id=3232

Below is a fix.

PDO_MYSQL

1. Download PDO_MYSQL / http://pecl.php.net/package/PDO_MYSQL
2. cd ~/Downloads/PDO MYSQL-x.x.x/PDOMYSQL-x.x.x
3. phpize
4. ./configure '--with-pdo-mysql=shared,/opt/local/lib/mysql5'
5. make
6. sudo make install

php.ini

1. sudo cp /private/etc/php.ini.default /private/etc/apache2/php.ini
2. extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20060613"
3. extension=pdo_mysql.so

Courtesy of http://log.metatype.jp/?p=27. I don't know Japanese, but it did the trick for me.

pdo_mysql.so driver Installation

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.