postgresql – gem install pg –with-pg-config工作,捆绑失败
发布时间:2020-12-13 16:51:37 所属栏目:百科 来源:网络整理
导读:当我运行(作为根) 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_configBuilding native extensions. This could take a while.
当我运行(作为根)
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: ERROR: Failed to build gem native extension. /usr/local/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 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=/usr/local/rvm/rubies/ruby-1.9.2-p290/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}/lib --with-pg-config --without-pg-config --with-pg_config --without-pg_config Gem files will remain installed in /var/www/simpletrac/vendor/cache/ruby/1.9.1/gems/pg- 0.12.0 for inspection. Results logged to /var/www/simpletrac/vendor/cache/ruby/1.9.1/gems/pg-0.12.0/ext/gem_make.out An error occured while installing pg (0.12.0),and Bundler cannot continue. Make sure that `gem install pg -v '0.12.0'` succeeds before bundling. 我有libpq-fe.h安装在/usr/pgsql-9.1/include/libpq-fe.h。所以,我试过 gem install pg -v '0.12.0' -- --with-pg-config=/usr/pgsql-9.1/bin/pg_config --with-pg-lib=/usr/pgsql-9.1/include/libpq-fe.h but still no go. 任何帮助将不胜感激。 此外,我已经安装了postgresql91-devel和ruby-devel。运行CentOS 6。
你试过运行这之前运行捆绑安装?
bundle config build.pg --with-pg-config=/usr/pgsql-9.1/bin/pg_config 见http://bundler.io/v1.3/bundle_config.html (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- vue滚动轴插件better-scroll使用详解
- ruby-on-rails-3 – Rails 3验证一个值与列的唯一性?
- PostgreSQL成新贵 号称世上最先进的开源数据库
- Oracle 调整SGA、PGA大小
- difference between updateDisplaylist() and CommitProper
- PostgreSQL – 在多列上创建索引时,Smallint溢出.这是一个错
- Calling Flex / Actionscript functions from Javascript
- Flash,Silverlight,Win32:2011三大垂死平台
- c# – VB.NET和sizeof
- xml--include用法--xml文件模块化