[ruby-it] [Ubuntu] Problema installazione gemma Postgres
Yuri Redaelli
y.redaelli a gmail.com
Sab 20 Feb 2010 13:18:30 CET
Roberto Canella wrote:
> Ciao,
>
> immagino che tu stia utilizzando un sistema Linux o *x; hai provato a
> lanciare
> il comando come utente di root (sudo od affini...) ?
>
> Roberto
Se provo con sudo gem install postgres ottengo:
Building native extensions. This could take a while...
ERROR: Error installing postgres:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
extconf.rb:46: command not found: pg_config --includedir
extconf.rb:53: command not found: pg_config --libdir
checking for main() in -lpq... 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
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8
--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
Could not find PostgreSQL build environment (libraries & headers):
Makefile not created
Gem files will remain installed in
/var/lib/gems/1.8/gems/postgres-0.7.9.2008.01.28 for inspection.
Results logged to
/var/lib/gems/1.8/gems/postgres-0.7.9.2008.01.28/ext/gem_make.out
--
Posted via http://www.ruby-forum.com/.
More information about the Ml
mailing list