daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2018 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. gem install pg -v '0.12.0' -- --with-pg-config=/usr/pgsql-9.1/bin/pg_config
  2.    
  3. #-> gem instal pg -v '0.12.0' -- --with-pg-config=/usr/pgsql-9.1/bin/pg_config
  4. Building native extensions.  This could take a while...
  5. Successfully installed pg-0.12.0
  6. 1 gem installed
  7. Installing ri documentation for pg-0.12.0...
  8. Installing RDoc documentation for pg-0.12.0...
  9. #->
  10.    
  11. Installing pg (0.12.0) with native extensions
  12. Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
  13.  
  14.     /usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
  15. checking for pg_config... no
  16. No pg_config... trying anyway. If building fails, please try again with
  17. --with-pg-config=/path/to/pg_config
  18. checking for libpq-fe.h... no
  19. Can't find the 'libpq-fe.h header
  20. *** extconf.rb failed ***
  21. Could not create Makefile due to some reason, probably lack of
  22. necessary libraries and/or headers.  Check the mkmf.log file for more
  23. details.  You may need configuration options.
  24.  
  25. Provided configuration options:
  26. --with-opt-dir
  27. --with-opt-include
  28. --without-opt-include=${opt-dir}/include
  29. --with-opt-lib
  30. --without-opt-lib=${opt-dir}/lib
  31. --with-make-prog
  32. --without-make-prog
  33. --srcdir=.
  34. --curdir
  35. --ruby=/usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby
  36. --with-pg
  37. --without-pg
  38. --with-pg-dir
  39. --without-pg-dir
  40. --with-pg-include
  41. --without-pg-include=${pg-dir}/include
  42. --with-pg-lib
  43. --without-pg-lib=${pg-dir}/lib
  44. --with-pg-config
  45. --without-pg-config
  46. --with-pg_config
  47. --without-pg_config
  48.  
  49.  
  50. Gem files will remain installed in /var/www/simpletrac/vendor/cache/ruby/1.9.1/gems/pg-    0.12.0 for inspection.
  51. Results logged to /var/www/simpletrac/vendor/cache/ruby/1.9.1/gems/pg-0.12.0/ext/gem_make.out
  52. An error occured while installing pg (0.12.0), and Bundler cannot continue.
  53. Make sure that `gem install pg -v '0.12.0'` succeeds before bundling.
  54.    
  55. 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.
  56.    
  57. bundle config build.pg --with-pg-config=/usr/pgsql-9.1/bin/pg_config
  58.    
  59. bundle config build.pg --with-pg-config=/opt/local/lib/postgresql91/bin/pg_config
  60.    
  61. which pg_config
  62.    
  63. bundle config build.pg --with-pg-config=/usr/pgsql-9.1/bin/pg_config
  64.    
  65. export PATH=${PATH}:/usr/pgsql-9.2/bin
  66.    
  67. brew install postgresql
  68.    
  69. export PATH=/opt/local/lib/postgresql84/bin/:$PATH
  70.    
  71. [user@foo ~] which psql84
  72. /opt/local/bin/psql84
  73.  
  74. [user@foo ~] ls -altrh /opt/local/bin/psql84
  75. lrwxr-xr-x  1 root  admin    36B Dec  7 02:15 /opt/local/bin/psql84 ->  /opt/local/lib/postgresql84/bin/psql
  76.    
  77. PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"
  78.    
  79. gem install pg
  80.    
  81. yum install libpqxx-devel
  82.    
  83. gem install pg --pre
  84.    
  85. gem install pg -v '0.17.1'
  86.    
  87. brew install postgresql
  88.    
  89. bundle install
  90.    
  91. sudo apt-get install postgresql
  92. sudo apt-get install pgadmin3
  93. bundle install
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top