Note that there are some explanatory texts on larger screens.

plurals
  1. POruby postgreSQL adapter on AMD64
    primarykey
    data
    text
    <p>When I try to run a simple code like </p> <pre><code># A Postgres connection: DataMapper.setup(:default, 'postgres://localhost/the_database_name') </code></pre> <p>on an win7 x86-64 machine, I get the following error : </p> <pre><code>D:/dev/Ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': 193: %1 n?est pas une application Win32 valide. - D:/dev/Ruby/lib/ruby/gems/1.9.1/gems/do_postgres-0.10.8-x86-mingw32/lib/do_postgres/1.9/do_postgres.so (LoadError) from D:/dev/Ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from D:/dev/Ruby/lib/ruby/gems/1.9.1/gems/do_postgres-0.10.8-x86-mingw32/lib/do_postgres.rb:30:in `rescue in &lt;top (required)&gt;' from D:/dev/Ruby/lib/ruby/gems/1.9.1/gems/do_postgres-0.10.8-x86-mingw32/lib/do_postgres.rb:25:in `&lt;top (required)&gt;' from D:/dev/Ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from D:/dev/Ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from D:/dev/Ruby/lib/ruby/gems/1.9.1/gems/dm-postgres-adapter-1.2.0/lib/dm-postgres-adapter/adapter.rb:1:in `&lt;top (required)&gt;' from D:/dev/Ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from D:/dev/Ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from D:/dev/Ruby/lib/ruby/gems/1.9.1/gems/dm-postgres-adapter-1.2.0/lib/dm-postgres-adapter.rb:1:in `&lt;top (required)&gt;' from D:/dev/Ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `require' from D:/dev/Ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require' from D:/dev/Ruby/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require' from D:/dev/Ruby/lib/ruby/gems/1.9.1/gems/dm-core-1.2.0/lib/dm-core/adapters.rb:163:in `load_adapter' from D:/dev/Ruby/lib/ruby/gems/1.9.1/gems/dm-core-1.2.0/lib/dm-core/adapters.rb:133:in `adapter_class' from D:/dev/Ruby/lib/ruby/gems/1.9.1/gems/dm-core-1.2.0/lib/dm-core/adapters.rb:13:in `new' from D:/dev/Ruby/lib/ruby/gems/1.9.1/gems/dm-core-1.2.0/lib/dm-core.rb:228:in `setup' from D:/dev/workspace/ruby/training/bin/pg/main.rb:8:in `&lt;top (required)&gt;' from -e:1:in `load' from -e:1:in `&lt;main&gt;' </code></pre> <p>I have every gem dependency installed and a binary version of postgreSQL (the one-click installer found on their site) I suspect the x86-64 architecture to be the cause of the error, because same install on x86 machine works great.</p> <p>Some ideas ? thanks</p> <p>PS: That's a question following <a href="https://stackoverflow.com/questions/9472556/ruby-postgresql-on-amd64%20">this one</a> (not really answered), but since the error it's another one I've asked a new question.</p>
    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