Advertisement
Guest User

Untitled

a guest
Dec 16th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. [root@vdimc04 ~]# gem install pg
  2. /usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
  3. It seems your ruby installation is missing psych (for YAML output).
  4. To eliminate this warning, please install libyaml and reinstall your ruby.
  5. Building native extensions. This could take a while...
  6. ERROR: Error installing pg:
  7. ERROR: Failed to build gem native extension.
  8.  
  9. /usr/local/bin/ruby extconf.rb
  10. checking for pg_config... no
  11. No pg_config... trying anyway. If building fails, please try again with
  12. --with-pg-config=/path/to/pg_config
  13. checking for libpq-fe.h... no
  14. Can't find the 'libpq-fe.h header
  15. *** extconf.rb failed ***
  16. Could not create Makefile due to some reason, probably lack of
  17. necessary libraries and/or headers. Check the mkmf.log file for more
  18. details. You may need configuration options.
  19.  
  20. Provided configuration options:
  21. --with-opt-dir
  22. --without-opt-dir
  23. --with-opt-include
  24. --without-opt-include=${opt-dir}/include
  25. --with-opt-lib
  26. --without-opt-lib=${opt-dir}/lib
  27. --with-make-prog
  28. --without-make-prog
  29. --srcdir=.
  30. --curdir
  31. --ruby=/usr/local/bin/ruby
  32. --with-pg
  33. --without-pg
  34. --with-pg-dir
  35. --without-pg-dir
  36. --with-pg-include
  37. --without-pg-include=${pg-dir}/include
  38. --with-pg-lib
  39. --without-pg-lib=${pg-dir}/lib
  40. --with-pg-config
  41. --without-pg-config
  42. --with-pg_config
  43. --without-pg_config
  44.  
  45.  
  46. Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/pg-0.14.1 for inspection.
  47. Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/pg-0.14.1/ext/gem_make.out
  48.  
  49. gem install pg -- --with-pg-config=/usr/pgsql-9.1/bin/pg_config
  50.  
  51. $ sudo apt-get install libpq-dev
  52. $ sudo apt-get install libdbd-pg-ruby1.8
  53.  
  54. $ sudo apt-get install pg
  55.  
  56. run this commands
  57.  
  58. bundle config build.pg
  59.  
  60. gem install pg -v '0.12.0'
  61.  
  62. [base]
  63. exclude=postgresql*
  64.  
  65. [updates]
  66. exclude=postgresql*
  67.  
  68. curl -O http://yum.postgresql.org/9.2/redhat/rhel-latest-x86_64/pgdg-redhat92-9.2-7.noarch.rpm
  69.  
  70. sudo rpm -ivh pgdg-redhat92-9.2-7.noarch.rpm
  71. sudo yum install -y postgresql92-server postgresql92-devel
  72.  
  73. sudo service postgresql-9.2 initdb
  74.  
  75. sudo service postgresql-9.2 start
  76.  
  77. sudo yum -y groupinstall "Development Tools"
  78. sudo yum -y install zlib zlib-devel sqlite-devel httpd curl-devel httpd-devel apr-devel apr-util-devel mlocate man libxml2-devel libxslt-devel libffi-devel readline-devel
  79.  
  80. curl -L get.rvm.io | sudo bash -s stable
  81.  
  82. rvm install 1.9.3 --with-openssl-dir=/usr
  83. rvm use 1.9.3 --default
  84. gem install rake
  85. gem install rails
  86.  
  87. gem install pg -- --with-pg-config=/usr/pgsql-9.2/bin/pg_config
  88.  
  89. sudo apt-get install libpq-dev
  90.  
  91. sudo apt-get install postgresql postgresql-server-dev-9.1
  92.  
  93. sudo apt-get install libpq-dev
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement