Después de la actualización postgresql 8.1 a 9.0 he notado problemas con la dependencia de las bibliotecas. Postgresql funciona bien (conexión, consultas).pg_config, ruby pg, postgresql 9.0 problema después de la actualización, centos 5
yum list postgresql*
Installed Packages
postgresql.i386 9.0.0-1PGDG.el5 installed
postgresql-debuginfo.i386 9.0.0-1PGDG.el5 installed
postgresql-devel.i386 9.0.0-1PGDG.el5 installed
postgresql-libs.i386 9.0.0-1PGDG.el5 installed
postgresql-odbcng.i386 0.90.101-2.el5 installed
postgresql-plruby.i386 0.5.1-5.el5 installed
postgresql-server.i386 9.0.0-1PGDG.el5 install
pero cuando estoy tratando de instalar 'pg' de rubí, que he recibido
gem install pg
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for pg_config... no
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** 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.
Al tratar con otro conductor rubí-postgres, ive consiguió
yum install ruby-postgres
ruby-postgres-0.7.1-5.el5.i386 from epel has depsolving problems
--> Missing Dependency: libpq.so.4 is needed by package ruby-postgres-0.7.1-5.el5.i386 (epel)
y
locate libpq.so.4
/usr/lib/libpq.so.4
/usr/lib/libpq.so.4.1
también ruta exportada
LD_LIBRARY_PATH=/usr/pgsql-9.0/lib
export LD_LIBRARY_PATH
después de ejecutar script de rubí con "requerir pg" (funciona en 8.1), ive consiguió:
/usr/local/lib/ruby/site_ruby/1.8/i686-linux/pg_ext.so: libpq.so.4: cannot open shared object file: No such file or directory - /usr/local/lib/ruby/site_ruby/1.8/i686-linux/pg_ext.so (LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from /usr/local/lib/ruby/site_ruby/1.8/pg.rb:12
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
Cualquier sugerencia qué hacer más?
joya instalar pg - --with-pgsql-lib =/usr/pgsql-9,0/lib de configuración --with-PG-=/usr/pgsql-9,0/bin/pg_config, que resuelve la instalación pg , ¡gracias! Pero aún después de ejecutar las secuencias de comandos, me faltaba libpq.so.4 ... – objah
¿Hay algún progreso en esto? Tal vez actualice su pregunta para que podamos ayudarlo mejor. –