【问题标题】:Error: `gyp` failed with exit code: 1 while installing jugglingdb-postgres错误:`gyp` 在安装 jugglingdb-postgres 时失败,退出代码:1
【发布时间】:2014-10-20 13:35:39
【问题描述】:

在我的 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 

【问题讨论】:

    标签: python postgresql ubuntu npm jugglingdb


    【解决方案1】:

    pg_config 不在您的 PATH 上。

    调整您的PATH,然后确保运行:

    pg_config --version
    

    工作,并报告正确的 PostgreSQL 版本,然后再试一次。

    定位pg_config

    locate */pg_config
    

    【讨论】:

    猜你喜欢
    • 2018-08-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-27
    • 1970-01-01
    • 2013-08-31
    相关资源
    最近更新 更多