4
votes

When iam trying to install Ruby Rails on my centos server .When i enter Bundle install i got the error

An error occurred while installing pg (0.14.1), and Bundler cannot continue. Make sure that gem install pg -v '0.14.1' succeeds before bundling.

When i try `gem install pg -v '0.14.1 got the below error

Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/pg-0.14.1 for inspection. Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/pg-0.14.1/ext/gem_make.out

Anybody know why i get this error? Help is highly appreciated.

1
You are probably missing some libraries/dependencies. "Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/pg-0.14.1/ext/gem_make.out" - have you tried looking there?Jakob S
Can you also post all (or only the relevant parts) of /usr/local/lib/ruby/gems/1.9.1/gems/pg-0.14.1/ext/gem_make.out?Christoph Petschnig

1 Answers

4
votes

This should help you --

$ sudo yum install postgresql-devel
Setting up Install Process
...
Complete!
$ sudo gem install pg
Building native extensions.  This could take a while...
Successfully installed pg-0.14.1
1 gem installed
Installing ri documentation for pg-0.14.1...
Installing RDoc documentation for pg-0.14.1...