sudo gem install postgres
gives the next error
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
ruby extconf.rb ins postgres
extconf.rb:46: command not found: pg_config --includedir
extconf.rb:53: command not found: pg_config --libdir
checking for main() in -lpq... no
Can be solved by:
sudo apt-get install libpq-dev
sudo gem install postgres-pr
Nice bro, rails rules, greetings from Mexico.
ReplyDeleteTotally agree.
ReplyDeleteCheers.
It worked for me too! Thanks a lot!
ReplyDeleteThanks Juri Timoshin.
ReplyDeleteYeah! Worked for me! There was a similar error before this one that I resolved by installing ruby1.8-dev.
ReplyDeleteThanks!
thanks man. u rock.
ReplyDeleteU re the best man. from great britain
ReplyDeleteIt worked on Lucid. Thank you!
ReplyDelete