On Sat, Mar 2, 2013 at 12:57 AM, Trương Hoàng Dũng <revskil...@gmail.com> wrote:
> Hi, i'm using DataMapper with Postgresql on Windows XP for development. Ruby
> 1.9.3 with RubyInstaller. The setup is normal, there is no error in loading
> gems.
> But when i run the same setup on Windows Server 2008 machine, do_postgres
> can't be loaded. The error is here:
>
> E:/dungth/Ruby193/lib/ruby/gems/1.9.1/gems/do_postgres-0.10.12-x86-mingw32/lib/d
> o_postgres.rb:31:in require': 126: The specified module could not be found.
> -
> E:/dungth/Ruby193/lib/ruby/gems/1.9.1/gems/do_postgres-0.10.12-x86-mingw32/lib/
> do_postgres/1.9/do_postgres.so (LoadError)

do_postgres.so depends on postgres DLLs, when you install do_postgres,
you should get a legend stating what library do you need to be added
to the PATH (or copied):


======================================================================================================


   You've installed the binary version of do_postgres.
  It was built using PostgreSQL
  version 8.4.12.
  It's recommended to use the exact same version to avoid potential
  issues.

  At the time of building this gem, the necessary DLL files where available

   in the following download:

  
http://wwwmaster.postgresql.org/redir/107/h/binary/v8.4.12/win32/postgresql-8.4.12-1-windows-binaries.zip


   You can put the following files available in this package in your Ruby bin
  directory,
  for example C:\Ruby\bin

  - lib\libpq.dll
  - bin\ssleay32.dll
  - bin\libeay32.dll

   - bin\libintl-8.dll
  - bin\libiconv-2.dll
  - bin\krb5_32.dll
  - bin\comerr32.dll

   - bin\k5sprt32.dll
  - bin\gssapi32.dll

======================================================================================================

I recommend you don't copy libeay32.dll and ssleay32.dll as
RubyInstaller already provide newer versions of it, so does for
libiconv-2.dll

>
> Do you know why is this error and how to fix it ?
> Thank you very much.
>

Please try the above and let us know.
-- 
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to datamapper+unsubscr...@googlegroups.com.
To post to this group, send email to datamapper@googlegroups.com.
Visit this group at http://groups.google.com/group/datamapper?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to