Quote:
PS C:\Documents and Settings\cote> gem install postgres > toto.txt
ERROR: Error installing postgres:
ERROR: Failed to build gem native extension.
C:/Ruby/bin/ruby.exe extconf.rb
checking for main() in /ms/libpq.lib... no
*** 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
--srcdir=.
--curdir
--ruby=C:/Ruby/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-/ms/libpqlib
--without-/ms/libpqlib
Could not find PostgreSQL build environment (libraries & headers): Makefile not created
Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/postgres-.7.9.2008.01.28 for inspection.
Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/postgres-0.7.9.2008.01.28
ext/gem_make.out
apres quelque recherche sur google j'ai vu qu'on conseillait d'utiliser le gem ruby-postgres il s'installe sans probleme mais en lançant mongrel j'obtiens :
Quote:
PS D:\projet\pnmlweb> ruby D:\projet\pnmlweb\script\server
=> Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record
connection_adapters/abstract/connection_specificatio
n.rb:76:in `establish_connection': Please install the postgresql adapter: `gem install activerecord-postgresql-adapter`
(182: Le systÞme d'exploitation ne peut pas exÚcuter %1. - C:/Ruby/lib/ruby/gems/1.8/gems/pg-0.8.0-x86-mswin32-60/lib/
pg.so) (RuntimeError)
from C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/connection
_specification.rb:60:in `establish_connection'
from C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/connection
_specification.rb:55:in `establish_connection'
from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:417:in `initialize_database'
from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:141:in `process'
from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `send'
from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
from D:/projet/pnmlweb/config/environment.rb:13
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants
_in'
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:84
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from D:/projet/pnmlweb/script/server:3
il y a 1 semaine 1 jour
il y a 2 semaines 1 jour
il y a 2 semaines 1 jour
il y a 2 semaines 2 jours
il y a 2 semaines 2 jours
il y a 3 semaines 3 heures
il y a 3 semaines 21 heures
il y a 3 semaines 3 jours
il y a 4 semaines 13 heures
il y a 4 semaines 1 jour