Enabling PostgreSQL support in PHP on Mac OS X

前端 未结 10 1467
执念已碎
执念已碎 2020-11-28 20:28

I\'m having a terribly difficult time getting the command \"pg_connect()\" to work properly on my Mac. I\'m currently writing a PHP script (to be executed from console) to r

10条回答
  •  情话喂你
    2020-11-28 20:48

    PostgreSQL by default is installed in a unusual place on MAC OS X:

    /Library/PostgreSQL/9.3
    

    Given the location above you can type this:

    ./configure --with-pgsql=/Library/PostgreSQL/9.3
    

提交回复
热议问题