安装jugglingdb-postgres时出现错误: `gyp`失败,退出代码为1
我在我的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
1 个回答
0
pg_config
没有在你的 PATH
中。
你需要调整一下你的 PATH
,然后确保运行下面的命令:
pg_config --version
能够正常工作,并且显示正确的 PostgreSQL 版本,然后再试一次。
要找到 pg_config
的位置:
locate */pg_config