【发布时间】:2013-06-12 17:43:38
【问题描述】:
我想在cloudbees dev cloud中使用postgres,我看了这篇文章: http://wiki.cloudbees.com/bin/view/DEV/PostgreSQL
但是,我运行bundle,我得到了错误:
正在安装 pg (0.15.1) .......
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native 扩展名。
/usr/bin/ruby extconf.rb checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with--with-pg-config=/path/to/pg_config 检查 libpq-fe.h... 否 找不到 'libpq-fe.h 标头 * extconf.rb failed * 由于某种原因无法创建 Makefile,可能缺少必要的库和/或头文件。查看 mkmf.log 文件以获取更多详细信息。您可能需要配置 选项。
提供的配置选项:--with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/ --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/ruby --with-pg --without-pg --with-pg-dir --without-pg-dir --with-pg-include --without-pg-include=${pg-dir}/include --with-pg-lib --without-pg-lib=${pg-dir}/ --with-pg-config --without-pg-config --with-pg_config --without-pg_config
Gem 文件将继续安装在 /home/jenkins/.gem/ruby/1.9.1/gems/pg-0.15.1 进行检查。结果 登录到 /home/jenkins/.gem/ruby/1.9.1/gems/pg-0.15.1/ext/gem_make.out 一个错误 安装 pg (0.15.1) 时发生,并且 Bundler 无法继续。 在捆绑之前确保
gem install pg -v '0.15.1'成功。
接下来我该怎么做?
【问题讨论】:
标签: postgresql cloudbees pg