modules/pdo_pgsql.so: No such file or directoryĮxtension=/usr/local/lib/php/extensions/pdo_pgsql.so To reinstall 2.69, run `brew reinstall autoconf` Warning: autoconf 2.69 is already installed and up-to-date
Xcode-select: error: command line tools are already installed, use "Software Update" to install updates PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/pgsql.so' - dlopen(/usr/local/lib/php/extensions/pgsql.so, 9): image not found in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/pdo_pgsql.so' - dlopen(/usr/local/lib/php/extensions/pdo_pgsql.so, 9): image not found in Unknown on line 0 modules/pgsql.so: No such file or directoryĮxtension=/usr/local/lib/php/extensions/pgsql.so var/root/src/php-5.5.29/ext/pgsql/pgsql.c:35:10: fatal error: 'php.h' file not found include "php.h" ^Ĭp. I/var/root/src/php-5.5.29/ext/pgsql -DPHP_ATOM_INC -I/var/root/src/php-5.5.29/ext/pgsql/include -I/var/root/src/php-5.5.29/ext/pgsql/main -I/var/root/src/php-5.5.29/ext/pgsql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/Applications/Postgres.app/Contents/Versions/9.5/include -DHAVE_CONFIG_H -g -O2 -c /var/root/src/php-5.5.29/ext/pgsql/pgsql.c -fno-common -DPIC -o. I also tried to install manually, but could never 'make' due to errors. Install_psql_php.sh: line 39: /private/etc/php.ini: Permission denied Install_psql_php.sh: line 29: cd: /Users/torlarse/src/php-5.5.24/ext/pgsql/: No such file or directory Install_psql_php.sh: line 26: /private/etc/php.ini: Permission denied
Make: *** No rule to make target `install'. Make: *** No targets specified and no makefile found. Make sure that you run '/usr/bin/phpize' in the top level source directory of the module Install_psql_php.sh: line 16: cd: php-5.5.24/ext/pdo_pgsql/: No such file or directory Tar: Error exit delayed from previous errors. Sorry, but I can't make this shell script work in Yosemite, brew installed Postgre 9.4.4 running.
PHP_VER= $(php -v | head -1 | awk 'pgsql.so " | sudo tee -a /private/etc/php.ini # Install Xcode Command Line Tools first (required)