Topic : pdo_mysql.so driver Installation

Topic Archived This topic has been archived - replies are not allowed.


This question is not answered. "Helpful" answers available: 2 . "Solved" answers available: 1 .



            Permlink
            Replies : 2 - Pages : 1 - Last Post : Jul 17, 2008 8:00 AM by: Joltguy
greg humphrey


Posts: 67
Registered: Nov 5, 2000
pdo_mysql.so driver Installation
Posted: May 29, 2008 9:56 PM
 

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)    
telluride

Posts: 1
From: Minneapolis
Registered: Jun 11, 2008
Re: pdo_mysql.so driver Installation
Posted: 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/PDO_MYSQL-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.

MacBook Pro   Mac OS X (10.5.3)    
Joltguy

Posts: 8
From: Toronto
Registered: Jan 5, 2005
Re: pdo_mysql.so driver Installation
Posted: Jul 17, 2008 8:00 AM   in response to: telluride
 

I was stumped on this as well, but thanks to your instructions I'm back on track.

Thank you telluride!

MacBook Pro 1.83 GHz :: 2GB RAM :: 250GB HDD   Mac OS X (10.5.4)