Created
June 23, 2009 04:21
Adding new PHP extensions to Mac OS X as well as building pdo_mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OS X PHP Extensions directory (Useful for installing addons) | |
/usr/lib/php/extensions/no-debug-non-zts-20060613 | |
Installing PDO Mysql on OS X | |
1. Download and install MySQL 5.0 Downloads | |
2. cd /usr/local/mysql/lib | |
3. sudo ln -s . mysql | |
4. cd | |
5. Download PDO_MYSQL-1.0.2.tgz | |
6. gunzip PDO_MYSQL-1.0.2.tgz | |
7. tar -xvf PDO_MYSQL-1.0.2.tar | |
8. cd PDO_MYSQL-1.0.2 | |
9. phpize | |
10. LDFLAGS='-arch x86_64' ./configure --with-pdo-mysql=shared,/usr/local/mysql | |
11. make | |
12. sudo make install | |
13. In /etc/php.ini, add “extension=pdo_mysql.so”. You might have to copy php.ini.default to php.ini first. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment