Problemas para instalar postgres

  1. Problemas para instalar postgres (silvana moyano)
  2. Re: Como crear reportes con RoR? (William F.)
  3. Re: ActiveRecord: deferir save’s en una transaccion
    (Jean D.)
  4. application error en produccion (alarkspur)
  5. Re: youtube videos (Javi J.)
  6. Re: youtube videos (Edgar J. Suarez)
  7. Re: Aprender RoR (Aitor)
  8. Re: Aprender RoR (Aitor Alzola)

Silvana
Me olvide de aclarar que:
Al intentar de ejecutar la linea de comando
gem install postgres

Me aparece esto:

Building native extensions. This could take a while…
ERROR: Error installing postgres:
ERROR: Failed to build gem native extension.

c:/ruby/bin/ruby.exe extconf.rb install postgres
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-0.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

y no se, si es porque debería haber instalar algo antes o cual es mi
error…
Desde ya… muchas Gracias

silvana

Hola,

2008/3/11, silvana moyano [email protected]:

c:/ruby/bin/ruby.exe extconf.rb install postgres
checking for main() in /ms/libpq.lib… no

Esto es porque no tienes instaladas las librerias y cabeceras de
desarrollo
libpq[1].
Debes instalarlas antes de construir la gema para postgres. Busca
aquí[2]
como descargarla para windows.

[1] PostgreSQL: Documentation: 8.1: libpq - C Library
[2] libpqxx: the official C++ language binding for PostgreSQL