code_junkie

PDO MySQL Driver on Mac

Nov 13th, 2011
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. checking for mysql_config... not found
  2. configure: error: Cannot find MySQL header files under
  3. ERROR: `/private/tmp/pear/temp/PDO_MYSQL/configure' failed
  4.  
  5. $ pecl download pdo_mysql
  6. $ tar xzf PDO_MYSQL-1.0.2.tgz
  7. $ cd PDO_MYSQL-1.0.2
  8. $ phpize
  9. $ ./configure --with-pdo-mysql=/usr/local/mysql
  10. $ make && sudo make install
  11.  
  12. Sams-Laptop:PDO_MYSQL-1.0.2 sam$ ./configure --with-pdo-mysql=/usr/local/mysql
  13.  
  14. ...
  15.  
  16. checking for mysql_query in -lmysqlclient... no
  17. configure: error: mysql_query missing!?
  18. Sams-Laptop:PDO_MYSQL-1.0.2 sam$
Add Comment
Please, Sign In to add comment