Questions tagged «pg»

30
尝试安装pg gem时找不到'libpq-fe.h标头
我正在使用Ruby on Rails 3.1预版本。我喜欢使用PostgreSQL,但问题是安装pggem。它给了我以下错误: $ gem install pg Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /home/u/.rvm/rubies/ruby-1.9.2-p0/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 checking for libpq-fe.h... no Can't …

18
如何在Ubuntu上安装PostgreSQL的pg gem?
我正在尝试为Ruby安装PostgreSQL的pg gem。 我发出了以下命令: gem install pg 我使用RVM安装了Ruby 1.9.2。 上面的命令向我显示了以下错误。 错误是: Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /home/User/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby extconf.rb checking for pg_config... yes checking for libpq-fe.h... yes checking for libpq/libpq-fs.h... yes checking for PQconnectdb() in -lpq... no checking …
292 ruby  postgresql  pg 

30
PG :: ConnectionBad-无法连接到服务器:连接被拒绝
每次运行rails 4.0服务器时,都会得到此输出。 Started GET "/" for 127.0.0.1 at 2013-11-06 23:56:36 -0500 PG::ConnectionBad - could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) …

16
Rails 3-无法安装pg gem
当我尝试运行捆绑软件(捆绑安装)时,我一直都在 Installing pg (0.13.2) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/ryan/.rvm/rubies/ruby-1.9.2-p290/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 checking for libpq-fe.h... no Can't find the 'libpq-fe.h header *** extconf.rb failed *** Could not create Makefile …

15
rails install pg-找不到'libpq-fe.h标头
$ sudo bundle install 结果 Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/.. Using rake (0.9.2.2) Using i18n (0.6.1) Using multi_json (1.3.6) Using activesupport (3.2.8) Using builder (3.0.4) Using activemodel (3.2.8) Using erubis (2.7.0) Using journey (1.0.4) Using rack (1.4.1) Using rack-cache (1.2) Using rack-test (0.6.2) Using hike …

8
无法使用Postgres.app在小牛中安装pg gem
我正在尝试在本地计算机上安装pg gem与Postgres.app一起使用。我在跑小牛队。 Postgres.app已安装并运行良好,但是我无法运行该gem。我已经完成以下工作: 使用了来自Postgres.app文档的命令'env ARCHFLAGS =“-arch x86_64” gem install pg---with-pg-config = / Applications / Postgres.app / Contents / MacOS / bin / pg_config 更新了Homebrew并安装了Apple 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 …


18
gem install pg --with-pg-config有效,捆绑失败
当我运行时(以root用户身份) gem install pg -v '0.12.0' -- --with-pg-config=/usr/pgsql-9.1/bin/pg_config 我得到以下输出: #-> gem instal pg -v '0.12.0' -- --with-pg-config=/usr/pgsql-9.1/bin/pg_config Building native extensions. This could take a while... Successfully installed pg-0.12.0 1 gem installed Installing ri documentation for pg-0.12.0... Installing RDoc documentation for pg-0.12.0... #-> 当我运行捆绑安装时: Installing pg (0.12.0) with native extensions Gem::Installer::ExtensionBuildError: …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.