![]() The second step, if you're on a 64-bit Intel Mac, involves making Apache run in 32-bit mode. For example, my extension_dir directive looks like: extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20060613" First, in php.ini, find the extension_dir directive (under "Paths and Directories"), and change it to the directory that the pdo_pgsql.so file was installed in. Now, assuming this is the first time you've installed PHP extensions, there are two additional steps you need to take in order to get this working. Find the section labeled "Dynamic Extensions", and underneath the list of (probably commented out) extensions, add this line: extension=pdo_pgsql.so To finalize the installation, you'll need to edit your php.ini file. If all goes well, you should have a file called " pdo_pgsql.so" sitting in a directory that should look something like " /usr/lib/php/extensions/no-debug-non-zts-20060613/" (the PECL installation should have outputted the directory it installed the extension to). configure -with-pdo-pgsql=/path/to/your/PostgreSQL/installation #Install postgresql for mac installsudo pecl.)Īfter that, since the PECL installer can't install the extension directly, you'll need to build and install it yourself: $ cd PDO_PGSQL-1.0.2 (Note: you may have to run pecl as the superuser, i.e. Once you do that, use the PECL installer to download the PDO_PGSQL package: $ pecl download pdo_pgsql The first thing you'll need to do is install PEAR, if you haven't done so already, since it doesn't come installed on Leopard by default. ![]() Now I have it successfully installed, and so, even though this question is quite old, I hope that what I've found can help others (like myself) who will undoubtedly run into similar problems. ![]() ![]() In my search for answers, I stumbled across this question. I had to install the PDO_PGSQL driver recently on Leopard, and I ran across a multitude of problems. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |