我想在我的Mac(的Mac OS 10.6.8 Snow Leopard)上安裝PostgreSQL,我不斷收到此錯誤:爲什麼我無法在Mac上安裝PostGreSQL?
$ npm install pg
npm http GET https://registry.npmjs.org/pg
npm http 304 https://registry.npmjs.org/pg
npm http GET https://registry.npmjs.org/generic-pool/1.0.7
npm http 304 https://registry.npmjs.org/generic-pool/1.0.7
> [email protected] install /Users/omegatai/node_modules/pg
> node-waf configure build || (exit 0)
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /usr/local/lib/node
Checking for node prefix : ok /usr/local
Checking for program pg_config : not found
/Users/omegatai/node_modules/pg/wscript:16: error: The program ['pg_config'] is required
[email protected] ./node_modules/pg
└── [email protected]
什麼是pg_config?我該如何解決這個問題?謝謝!
這個我應該搬到ServerFault嗎? – jmort253