My system is Windows Server 2008 SP2

Ruby and gem versions:
----------------------
C:\Windows\system32>ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]

C:\Windows\system32>gem -v
1.3.5

When I try to install the ruby-postgres gem, here is what it says:
------------------------------------------------------------------

C:\Windows\system32>gem install ruby-postgres
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-postgres:
        ERROR: Failed to build gem native extension.

C:/Ruby19/bin/ruby.exe extconf.rb
checking for main() in -lpq... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/Ruby19/bin/ruby
        --with-pgsql-dir
        --without-pgsql-dir
        --with-pgsql-include
        --without-pgsql-include=${pgsql-dir}/include
        --with-pgsql-lib
        --without-pgsql-lib=${pgsql-dir}/lib
        --with-pqlib
        --without-pqlib
C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:364:in `try_do': The complier failed to
generat
e an executable file. (RuntimeError)
You have to install development tools first.
        from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:417:in `try_link0'
        from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:421:in `try_link'
        from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:529:in `try_func'
        from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:725:in `block in
have_library'
        from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:670:in `block in
checking_for'
        from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block (2 levels)
in postpo
ne'
        from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open'
        from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block in postpone'
        from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open'
        from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:272:in `postpone'
        from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:669:in `checking_for'
        from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:720:in `have_library'
        from extconf.rb:17:in `have_build_env'
        from extconf.rb:26:in `<main>'


Gem files will remain installed in
C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-postg
res-0.7.1.2006.04.06 for inspection.
Results logged to
C:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-postgres-0.7.1.2006.04
.06/gem_make.out

Any help very welcome.
Sébastien
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to