0

ubuntu に jugglingdb-postgres をインストールしているときにこのエラーが発生します。この問題を解決するのに役立ちます。ubuntu で Python 2.7.4 を使用しています。

gyp: Call to 'pg_config --libdir' returned exit status 1.
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.8.0-35-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/satyam/project/node_modules/jugglingdb-postgres/node_modules/pg
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
4

1 に答える 1

0

pg_configにありませんPATH

調整してから、次のPATHことが実行されていることを確認します。

pg_config --version

動作し、正しい PostgreSQL バージョンを報告してから、再試行してください。

見つけるにはpg_config:

locate */pg_config
于 2014-08-27T05:03:56.147 に答える