【问题标题】:Problem with PostgreSQL and Ruby on WindowsWindows 上 PostgreSQL 和 Ruby 的问题
【发布时间】:2011-06-22 19:41:38
【问题描述】:

当我尝试时

gem 安装 pg

我收到此错误

C:/Ruby192/bin/ruby.exe extconf.rb 检查 pg_config... 是的 使用 C:\Program Files\PostgreSQL\9.0\bin/pg_config.exe 中的配置值 * extconf.rb 失败 * 由于某种原因无法创建 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}/lib --with-make-prog --没有-make-prog --srcdir=。 --curdir --ruby=C:/Ruby192/bin/ruby --with-pg --没有-pg --with-pg-dir --没有-pg-dir --with-pg-include --without-pg-include=${pg-dir}/include --with-pg-lib --without-pg-lib=${pg-dir}/lib --with-pg-config --without-pg-config --with-pg_config --without-pg_config extconf.rb:13:in `': No such file or directory - C:\Program Files\PostgreSQL\9.0\bin/pg_config.exe --includedir (Errno::ENOENT) from extconf.rb:13:in'

有什么建议吗?

【问题讨论】:

  • 您确实安装了 Postgres,对吗?是不是C:\Program Files\PostgreSQL\9.0以外的地方?
  • 是的,它已安装,这就是确切的目录...现在我已经使用 0.9.0 版本 gem install pg -v=0.9.0 解决了这个安装没有问题。

标签: ruby-on-rails postgresql


【解决方案1】:

我已经为这个问题提供了答案here

【讨论】:

    猜你喜欢
    • 2010-10-24
    • 2011-09-13
    • 1970-01-01
    • 1970-01-01
    • 2014-03-23
    • 2015-03-16
    • 2013-02-19
    • 2010-12-06
    • 2019-07-11
    相关资源
    最近更新 更多