Advertisement
theillien

activerecord-postgresql-adapter-error

Sep 18th, 2013
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. [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
  2. Building native extensions. This could take a while...
  3. ERROR: Error installing activerecord-postgresql-adapter:
  4. ERROR: Failed to build gem native extension.
  5.  
  6. /opt/puppet/bin/ruby extconf.rb --verbose --with-pg-config=/opt/puppet/bin/pg_config --with-pg-lib=/opt/puppet/include/libpq-fe.h
  7. Using config values from /opt/puppet/bin/pg_config
  8. checking for libpq-fe.h... *** extconf.rb failed ***
  9. Could not create Makefile due to some reason, probably lack of
  10. necessary libraries and/or headers. Check the mkmf.log file for more
  11. details. You may need configuration options.
  12.  
  13. Provided configuration options:
  14. --with-opt-dir
  15. --without-opt-dir
  16. --with-opt-include
  17. --without-opt-include=${opt-dir}/include
  18. --with-opt-lib
  19. --without-opt-lib=${opt-dir}/lib
  20. --with-make-prog
  21. --without-make-prog
  22. --srcdir=.
  23. --curdir
  24. --ruby=/opt/puppet/bin/ruby
  25. --with-pg
  26. --without-pg
  27. --with-pg-config
  28. --with-pg-dir
  29. --without-pg-dir
  30. --with-pg-include
  31. --without-pg-include=${pg-dir}/include
  32. --with-pg-lib=${pg-dir}/lib
  33. /opt/puppet/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
  34. You have to install development tools first.
  35. from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:506:in `try_cpp'
  36. from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:970:in `block in find_header'
  37. from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
  38. from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
  39. from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:254:in `open'
  40. from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
  41. from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:254:in `open'
  42. from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
  43. from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
  44. from /opt/puppet/lib/ruby/1.9.1/mkmf.rb:969:in `find_header'
  45. from extconf.rb:48:in `<main>'
  46.  
  47.  
  48. Gem files will remain installed in /opt/puppet/lib/ruby/gems/1.9.1/gems/pg-0.17.0 for inspection.
  49. 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