Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@puppet-server bin]# ./gem install activerecord-postgresql-adapter -- --verbose --with-pg-config=/opt/puppet/bin/pg_config --with-pg-lib=/opt/puppet/include/libpq-fe.h
- Building native extensions. This could take a while...
- ERROR: Error installing activerecord-postgresql-adapter:
- ERROR: Failed to build gem native extension.
- /opt/puppet/bin/ruby extconf.rb --verbose --with-pg-config=/opt/puppet/bin/pg_config --with-pg-lib=/opt/puppet/include/libpq-fe.h
- Using config values from /opt/puppet/bin/pg_config
- checking for libpq-fe.h... *** 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=/opt/puppet/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=${pg-dir}/lib
- /opt/puppet/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
- You have to install development tools first.
- from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:506:in `try_cpp'
- from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:970:in `block in find_header'
- from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
- from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
- from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:254:in `open'
- from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
- from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:254:in `open'
- from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
- from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
- from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:969:in `find_header'
- from extconf.rb:48:in `<main>'
- Gem files will remain installed in /opt/puppet/lib/ruby/gems/1.9.1/gems/pg-0.17.0 for inspection.
- Results logged to /opt/puppet/lib/ruby/gems/1.9.1/gems/pg-0.17.0/ext/gem_make.out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement