I keep having similar problems with the ruby postgres API (the c api,
not postgres-pr). I have now installed it on three different machines
- two running Ubuntu server 6.06 and most recently on Xubuntu Edgy.
I have libpq-dev and ruby1.8-dev installed. I only have one version
of ruby 1.8 installed - from the Xubuntu repository.
gem install postgres
leads to a lot of terminal output, ending with:
Successfully installed postgres-0.7.1
But if I try:
irb(main):001:0> require ‘rubygems’
irb(main):002:0> require ‘postgres’
LoadError: no such file to load – postgres
gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
I have also tried:
POSTGRES_INCLUDE=/usr/include/postgresql gem install postgres
I just can’t figure out what the difference is between the different
boxes I’m trying to do this on.
Any help appreciated.