Tag: pg

用'gem pq'安装PostgreSQL gem失败,出现错误:无法构buildgem原生扩展

我正在学习Ruby on Rails,并试图开发一个应用程序。 在我的应用程序中,我试图在生产模式下使用开发模式和PostgreSQL中的默认SQLite数据库 。 但是当我试图安装pg gem时,出现以下错误: gem install pg Building native extensions. This could take a while… ERROR: Error installing pg: ERROR: Failed to build gem native extension. /home/tusharkhatiwada/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb checking for pg_config… yes Using config values from /usr/bin/pg_config You need to install postgresql-server-dev-XY for building a server-side extension or libpq-dev for building a […]

错误:无法在小牛上构buildgem原生扩展

我试图在OSX 10.9的Rails项目中运行bundle 。 当遇到这个错误时,它失败了: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/kyledecot/.rvm/rubies/ruby-2.0.0-p247/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… yes checking for libpq/libpq-fs.h… yes checking for pg_config_manual.h… yes checking for PQconnectdb() in -lpq… yes checking for PQconnectionUsedPassword()… yes checking for PQisthreadsafe()… […]

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 due to some reason, probably […]

PG :: ConnectionBad – 无法连接到服务器:连接被拒绝

每当我运行我的轨道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) and accepting TCP/IP connections on port […]

尝试安装pg gem时找不到'libpq-fe.h头文件

我正在使用Ruby on Rails 3.1之前的版本。 我喜欢使用PostgreSQL,但问题是安装pg gem。 它给了我以下错误: demonchand@system-001:~/exercise/personal/pro$ gem install pg Building native extensions. This could take a while… ERROR: Error installing pg: ERROR: Failed to build gem native extension. /home/demonchand/.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 find the […]