postgres API problems

N

Nick Black

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:

# irb1.8
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'postgres'
LoadError: no such file to load -- postgres
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from (irb):2

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.
 
T

Tom Copeland

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

I bet it didn't compile properly. Try going into the postgres gem build
directory (on my computer
it's /usr/local/lib/ruby/gems/1.8/gems/postgres-0.7.1/) and run make
and see if that fixes it.

Yours,

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,096
Latest member
ThurmanCre

Latest Threads

Top