我想我的本地计算机上安装与Postgres.app使用PG宝石。 我正在小牛队。
Postgres.app安装并运行正常,但我不能让创业板工作。 我已经做了以下情况:
- 使用命令 'ENV ARCHFLAGS = “ - 拱x86_64的” 创业板安装PG - --with-PG-配置= /应用/ Postgres.app /内容/ MacOS的/ bin中/ pg_config' 从Postgres.app文档
- 更新自制并安装了苹果的GCC 4.2
- 安装了Xcode开发工具
- 更新我的$ PATH同时引用了Postgres.app bin和lib目录
所有没有成功。 这是我收到的特定错误消息:
Building native extensions with: '--with-pg-config=/Applications/Postgres.app/Contents/MacOS/bin/pg_config'
This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/Users/Brian/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb --with-pg-config=/Applications/Postgres.app/Contents/MacOS/bin/pg_config
Using config values from /Applications/Postgres.app/Contents/MacOS/bin/pg_config
sh: /Applications/Postgres.app/Contents/MacOS/bin/pg_config: No such file or directory
sh: /Applications/Postgres.app/Contents/MacOS/bin/pg_config: No such file or directory
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/Brian/.rvm/rubies/ruby-2.0.0-p353/bin/ruby
--with-pg
--without-pg
--with-pg-config
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/
我会很感激你能提供任何帮助。 谢谢!