[Rails] Re: pg gem error

2012-09-21 Thread Federico Ruby
Just for your information, the solution posted on stacked overflow fixed my problem... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@goog

[Rails] Re: pg gem error

2012-09-20 Thread Federico Ruby
This was my exact same problem: http://stackoverflow.com/questions/8814924/gem-install-pg-can-not-bind-to-libpq -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email

[Rails] Re: pg gem error

2012-09-20 Thread Federico Ruby
My error wasn't related to any missing headers, pg was being linked with the wrong libraries. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-ta

[Rails] Re: pg gem error

2012-09-20 Thread chico
Instead of compiling it by hand, you specify the missing headers in the gem command: rvmsudo gem install pg -- --with-pg-lib=/usr/pgsql/lib/ --with-pg-config=/usr/pgsql/bin/pg_config If you need to bundle install pg (or other gem that uses it), you could use a bundle config file: bundle conf

[Rails] Re: pg gem error

2012-09-20 Thread Federico Ruby
1.9.3, I fixed it... I had to rename a "lib" folder inside the .rvm directory, compile the gem separately and then re-rename the folder... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To po

Re: [Rails] Re: pg gem error

2012-09-19 Thread Colin Law
On 19 September 2012 12:04, Federico R. wrote: > I am getting crazy about this problem... Basically pg compiles for my > system ruby (installed via apt-get), also compiles for my RVM ruby 1.8 > BUT when I try to compile it for RVM ruby 1.9 it will fail!!! Why?? Which 1.9? Is it the same version

[Rails] Re: pg gem error

2012-09-19 Thread Federico R.
I am getting crazy about this problem... Basically pg compiles for my system ruby (installed via apt-get), also compiles for my RVM ruby 1.8 BUT when I try to compile it for RVM ruby 1.9 it will fail!!! Why?? Error is always: Can't find the PostgreSQL client library (libpq) -- Posted via http

[Rails] Re: pg gem error

2012-09-19 Thread Federico R.
Did you find a solution? I have the same problem since days! :( Saravanan P wrote in post #1076481: > Thanks > > I already installed libpq-dev package and now only i > installed postgresql-server-dev-9.1 package. But no luck still same > error :( > > any help! -- Posted via http://www.ruby-f