Using ruby-pg in Rails3 app leads to 'symbol not found'

Issue #21 invalid
Former user created an issue

I've just finished installing the latest ruby-pg and Rails3, and so far I'm unable to get the server started. When trying to start the Rails3 server, I'm getting an error that Init_pg can't be found.

A backlog is shown below:

{{{ /Users/jury/.rvm/gems/ruby-1.8.7-p249/gems/pg-0.8.0/lib/pg.bundle: dlsym(0x1026ef2e0, Init_pg): symbol not found - /Users/jury/.rvm/gems/ruby-1.8.7-p249/gems/pg-0.8.0/lib/pg.bundle (LoadError) from /Users/jury/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.3/lib/bundler/runtime.rb:26:in require' from /Users/jury/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.3/lib/bundler/runtime.rb:25:ineach' from /Users/jury/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.3/lib/bundler/runtime.rb:25:in require' from /Users/jury/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.3/lib/bundler/runtime.rb:24:ineach' from /Users/jury/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.3/lib/bundler/runtime.rb:24:in require' from /Users/jury/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.3/lib/bundler.rb:70:inrequire' from /Volumes/Khronos/Leopard/jury/Documents/rails3/postApp/config/application.rb:6 from /Users/jury/.rvm/gems/ruby-1.8.7-p249/gems/railties-3.0.0.beta/lib/rails/commands.rb:36:in require' from /Users/jury/.rvm/gems/ruby-1.8.7-p249/gems/railties-3.0.0.beta/lib/rails/commands.rb:36 from /Volumes/Khronos/Leopard/jury/Documents/rails3/postApp/script/rails:10:inrequire' from /Volumes/Khronos/Leopard/jury/Documents/rails3/postApp/script/rails:10 }}}

Comments (3)

  1. Michael Granger repo owner

    Thanks for your report. I'm not sure how to troubleshoot this problem, however, as Init_pg is the extension initializer. Were there any errors when you installed the 'pg' gem?

    Also, I can't imagine this to be the case, but would you mind just trying to load the 'pg' gem like this to eliminate Rails and Bundler as potential causes of the problem?

      ruby -rubygems -e "require 'pg'; p PGconn.conndefaults"
    

    If it still errors, can you attach /Users/jury/.rvm/gems/ruby-1.8.7-p249/gems/pg-0.8.0/ext/gem_make.out?

  2. Michael Granger repo owner

    Since the reporter is anonymous, there hasn't been a reply yet, and the problem appears to be a bundler problem, I'm closing this issue.

  3. Log in to comment