Note that there are some explanatory texts on larger screens.

plurals
  1. POSequel not working with postgres
    primarykey
    data
    text
    <p>I'm trying to migrate my Rails apps to PostGreSql in order to work in the same environnement as on heroku...</p> <p>I installed postgres, pg, and postgres-pr fine on my mac but I can't get Taps to pull my databases off from Heroku to my postgresql server.</p> <p>My Rails Apps connect seamlessly to the database.</p> <p>When I run into the irb this is what I get:</p> <pre><code>&gt;&gt; require "rubygems" =&gt; false &gt;&gt; require "sequel" =&gt; true &gt;&gt; DB = Sequel.postgres NameError: uninitialized constant Sequel::Postgres::PGError from /Library/Ruby/Gems/1.8/gems/sequel-3.17.0/lib/sequel/adapters/postgres.rb:89 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `k_require' from /Library/Ruby/Gems/1.8/gems/sequel-3.17.0/lib/sequel/core.rb:249:in `tsk_require' from /Library/Ruby/Gems/1.8/gems/sequel-3.17.0/lib/sequel/core.rb:72:in `check_requiring_thread' from /Library/Ruby/Gems/1.8/gems/sequel-3.17.0/lib/sequel/core.rb:69:in `synchronize' from /Library/Ruby/Gems/1.8/gems/sequel-3.17.0/lib/sequel/core.rb:69:in `check_requiring_thread' from /Library/Ruby/Gems/1.8/gems/sequel-3.17.0/lib/sequel/core.rb:249:in `tsk_require' from /Library/Ruby/Gems/1.8/gems/sequel-3.17.0/lib/sequel/database/connecting.rb:25:in `adapter_class' from /Library/Ruby/Gems/1.8/gems/sequel-3.17.0/lib/sequel/database/connecting.rb:63:in `connect' from /Library/Ruby/Gems/1.8/gems/sequel-3.17.0/lib/sequel/core.rb:119:in `connect' from /Library/Ruby/Gems/1.8/gems/sequel-3.17.0/lib/sequel/core.rb:282:in `adapter_method' from /Library/Ruby/Gems/1.8/gems/sequel-3.17.0/lib/sequel/core.rb:289:in `postgres' from (irb):3 &gt;&gt; </code></pre> <p>I don't understand what's going wrong.</p> <p>Does anybody have an idea?</p> <hr> <p>This is what I get Jeremy</p> <pre><code>BigMac:~ jp$ ruby -rubygems -rpg -e "p PGError" ruby: no such file to load -- pg (LoadError) BigMac:~ jp$ ruby -rubygems -rpostgres -e "p PGError" ruby: no such file to load -- postgres (LoadError) </code></pre> <p>I'm not sure to understand what you mean by "Check for a pg.rb or postgres.rb somewhere in your path"</p> <p>Should I scan all the directories in my $PATH and look for an unwanted pg.rb or postgres.rb file?</p> <hr> <p>That's weird because I did install pg and postgre</p> <p>Here is what I just ran</p> <pre><code>BigMac:/ jp$ sudo gem install pg Password: Building native extensions. This could take a while... Successfully installed pg-0.10.0 1 gem installed Installing ri documentation for pg-0.10.0... Installing RDoc documentation for pg-0.10.0... BigMac:/ jp$ ruby -rubygems -rpg -e "p PGError" ruby: no such file to load -- pg (LoadError) BigMac:/ jp$ </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload