ubuntu: Error installing pg解决办法
来源:互联网 发布:西门子仿真软件 编辑:程序博客网 时间:2024/06/05 03:57
This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
current directory: /home/liu/.rvm/gems/ruby-2.3.0/gems/pg-0.21.0/ext
/home/liu/.rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20170716-21248-1miib9y.rb extconf.rb --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config
Using config values from /Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config
sh: 1: /Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config: not found
sh: 1: /Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config: not found
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
--without-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=/home/liu/.rvm/rubies/ruby-2.3.0/bin/$(RUBY_BASE_NAME)
--with-pg
--without-pg
--enable-windows-cross
--disable-windows-cross
--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}/lib
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/liu/.rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/pg-0.21.0/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/liu/.rvm/gems/ruby-2.3.0/gems/pg-0.21.0 for inspection.
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
current directory: /home/liu/.rvm/gems/ruby-2.3.0/gems/pg-0.21.0/ext
/home/liu/.rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20170716-21248-1miib9y.rb extconf.rb --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config
Using config values from /Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config
sh: 1: /Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config: not found
sh: 1: /Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config: not found
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
--without-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=/home/liu/.rvm/rubies/ruby-2.3.0/bin/$(RUBY_BASE_NAME)
--with-pg
--without-pg
--enable-windows-cross
--disable-windows-cross
--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}/lib
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/liu/.rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/pg-0.21.0/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/liu/.rvm/gems/ruby-2.3.0/gems/pg-0.21.0 for inspection.
Results logged to /home/liu/.rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/pg-0.21.0/gem_make.out
=================解决==========================
sudo apt-get install libpq-dev
gem install pg
阅读全文
1 0
- ubuntu: Error installing pg解决办法
- An error occurred while installing pg (0.18.4), and Bundler cannot continue.
- Error encountered during installing R in Ubuntu
- Error Installing APK
- Error while Installing APKs
- Error installing libwebp
- Error Installing APKs
- Error while Installing APK
- error installing apk
- 在Android Studio中遇到seesion App Error installing APK解决办法
- ubuntu gem安装pg错误
- Installing Software in Ubuntu
- Ubuntu installing Cacti
- Installing maven2 in ubuntu
- Postgresql installing in ubuntu
- Installing MapServer on Ubuntu
- Installing bitcoin in ubuntu
- installing chkconfig on ubuntu
- 字典树模板 hdu1251统计难题
- Eclipse调试器和debug视图
- 【shell】find命令及常见用法
- 51单片机学习之路
- 批处理自动填写密码
- ubuntu: Error installing pg解决办法
- 数据结构封装之《LinkQueue链式队列》
- UVa1112
- java提高篇(四)-----抽象类与接口
- ECShop短信插件(2.7.3 UTF-8版)高级版V2
- Scala的join算子
- MyEclipse 2017 优化技巧
- ZigBee_CC2530_0CH_终端动态切换信道
- 几种排序算法的python实现