i've tried to install dm-postgres-adapter but I've a problem with do_postgres, it compiles fine but i can't load it, it compiles that it can't load /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/lib/do_postgres/do_postgres.so even though it's there. I've dumped the install log and the stack trace of the error..
i'm using cygwin 1.7.9 and have tested with both ruby 1.8.7 and 1.9.2. [master] Carl@~/code/dm-migrations: gem install -V do_postgres GET http://rubygems.org/latest_specs.4.8.gz 302 Found GET http://production.s3.rubygems.org/latest_specs.4.8.gz 304 Not Modified GET http://rubygems.org/specs.4.8.gz 302 Found GET http://production.s3.rubygems.org/specs.4.8.gz 304 Not Modified Installing gem do_postgres-0.10.3 Downloading gem do_postgres-0.10.3.gem GET http://rubygems.org/gems/do_postgres-0.10.3.gem 302 Found GET http://production.cf.rubygems.org/gems/do_postgres-0.10.3.gem Fetching: do_postgres-0.10.3.gem (100%) 200 OK /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/ChangeLog.markdown /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/LICENSE /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/README.markdown /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/Rakefile /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/ext/do_postgres/compat.h /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/ext/do_postgres/do_postgres.c /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/ext/do_postgres/error.h /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/ext/do_postgres/extconf.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/ext/do_postgres/pg_config.h /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/lib/do_postgres.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/lib/do_postgres/encoding.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/lib/do_postgres/transaction.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/lib/do_postgres/version.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/command_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/connection_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/encoding_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/error/sql_error_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/reader_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/result_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/spec_helper.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/typecast/array_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/typecast/bigdecimal_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/typecast/boolean_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/typecast/byte_array_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/typecast/class_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/typecast/date_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/typecast/datetime_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/typecast/float_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/typecast/integer_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/typecast/nil_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/typecast/other_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/typecast/range_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/typecast/string_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/spec/typecast/time_spec.rb /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/tasks/compile.rake /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/tasks/release.rake /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/tasks/retrieve.rake /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/tasks/spec.rake Building native extensions. This could take a while... /usr/bin/ruby.exe extconf.rb checking for main() in -lpq... yes checking for libpq-fe.h... yes checking for libpq/libpq-fs.h... yes checking for postgres.h... yes checking for mb/pg_wchar.h... yes checking for catalog/pg_type.h... yes checking for localtime_r()... yes checking for gmtime_r()... yes checking for PQsetClientEncoding()... yes checking for pg_encoding_to_char()... yes checking for PQfreemem()... yes creating Makefile make gcc -I. -I. -I/usr/lib/ruby/1.8/i386-cygwin -I. -DHAVE_LIBPQ_FE_H -DHAVE_LIBPQ_LIBPQ_FS_H -DHAVE_POSTGRES_H -DHAVE_MB_PG_WCHAR_H -DHAVE_CATALOG_PG_TYPE_H -DHAVE_LOCALTIME_R -DHAVE_GMTIME_R -DHAVE_PQSETCLIENTENCODING -DHAVE_PG_ENCODING_TO_CHAR -DHAVE_PQFREEMEM -I/usr/include -I/usr/include/postgresql/server -g -O2 -Wall -c do_postgres.c do_postgres.c: In function 'typecast': do_postgres.c:375: warning: unused variable 'internal_encoding' gcc -shared -s -o do_postgres.so do_postgres.o -L. -L/usr/lib -L/usr/lib -L. -Wl,--enable-auto-image-base,--enable-auto-import,--export-all -lruby -lpq -ldl -lcrypt make install /usr/bin/install -c -m 0755 do_postgres.so /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/lib/do_postgres Successfully installed do_postgres-0.10.3 1 gem installed [master] Carl@~/code/dm-migrations: ls /usr/lib/ruby/gems/1.8/gems/do_postgres- 0.10.3/lib/do_postgres/ do_postgres.so encoding.rb transaction.rb version.rb [master] Carl@~/code/dm-migrations: irb irb(main):001:0> irb(main):002:0> require 'dm-postgres-adapter' LoadError: No such file or directory - /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/lib/do_postgres/do_postgres.so from /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/lib/do_postgres/do_postgres.so from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from /usr/lib/ruby/gems/1.8/gems/do_postgres-0.10.3/lib/do_postgres.rb:21 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from /usr/lib/ruby/gems/1.8/gems/dm-postgres-adapter-1.1.0/lib/dm-postgres-adapter/adapter.rb:1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from /usr/lib/ruby/gems/1.8/gems/dm-postgres-adapter-1.1.0/lib/dm-postgres-adapter.rb:1 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:58:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:58:in `require' from (irb):2 -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
