ld.so failed

Поиск
Список
Период
Сортировка
Искать

ld.so failed

От:
"Carsten Huettl" <CHUETTL@ahorn.sgh.uunet.de>
Дата:
Hello,

after installation of postgresql 6.4.2 on my Freebsd machine I can 
not create a database

bash-2.03$ createdb mydb
ld.so failed: Can't find shared library "libpq.so.2.0"
createdb: database creation failed on mydb.

I have checked the permissons and the PATH env. Everything 
seems to be ok.

I checked the lib/ dir for pqlib.so.2.0 and it is there.

So wath can I do?
Any hints?

TIA
C.


-- 
Carsten Huettl - 
pgp-key on request

Re: [GENERAL] ld.so failed

От:
Hitesh Patel <hitesh@presys.com>
Дата:
Carsten Huettl wrote:
> 
> Hello,
> 
> after installation of postgresql 6.4.2 on my Freebsd machine I can
> not create a database
> 
> bash-2.03$ createdb mydb
> ld.so failed: Can't find shared library "libpq.so.2.0"
> createdb: database creation failed on mydb.
> 
> I have checked the permissons and the PATH env. Everything
> seems to be ok.
> 
> I checked the lib/ dir for pqlib.so.2.0 and it is there.
> 
> So wath can I do?
> Any hints?
> 
> TIA
> C.
> 
> --
> Carsten Huettl - 
> pgp-key on request
> 
> ************
Did you add your pg libraries path into /etc/ld.so.conf  
(/usr/local/postgres/libs is mine) and run ldconfig?
-- 
|---------------------------------|----------------------------|
| Hitesh Patel			  |  Voice: (541) 759-3126     |
| Facilities Development Manager  |  Fax:   (541) 759-3214     |
| Preferred Systems		  |  Email: hitesh@presys.com  |
|---------------------------------|----------------------------|

Re: [GENERAL] ld.so failed

От:
"Shawn T. Walker" <shawn@netcrafters.com>
Дата:
From the command line as root run the following:

/sbin/ldconfig -m /usr/local/pgsql/lib/

Do not just run ldconfig by itself on FreeBSD or you are in for a surprise
because it resets your library paths incorrectly.  See the freebsd.org
website for a detailed explanation.

On Thu, 14 Oct 1999, Carsten Huettl wrote:

Shawn

> Hello,
> 
> after installation of postgresql 6.4.2 on my Freebsd machine I can 
> not create a database
> 
> bash-2.03$ createdb mydb
> ld.so failed: Can't find shared library "libpq.so.2.0"
> createdb: database creation failed on mydb.
> 
> I have checked the permissons and the PATH env. Everything 
> seems to be ok.
> 
> I checked the lib/ dir for pqlib.so.2.0 and it is there.
> 
> So wath can I do?
> Any hints?
> 
> TIA
> C.
> 
> 
> -- 
> Carsten Huettl - 
> pgp-key on request
> 
> ************
> 

-------
Shawn T. Walker      <--->   shawn@netcrafters.com
Netcrafters Design   <--->   http://www.netcrafters.com



Re: [GENERAL] ld.so failed

От:
jim@reptiles.org (Jim Mercer)
Дата:
> after installation of postgresql 6.4.2 on my Freebsd machine I can 
> not create a database
> 
> bash-2.03$ createdb mydb
> ld.so failed: Can't find shared library "libpq.so.2.0"
> createdb: database creation failed on mydb.
> 
> I have checked the permissons and the PATH env. Everything 
> seems to be ok.
> 
> I checked the lib/ dir for pqlib.so.2.0 and it is there.
> 
> So wath can I do?
> Any hints?

likely you need to (as root):

# ldconfig -R /usr/local/pgsql/lib
(or whereever you installed the libraries)



-- 
[ Jim Mercer    Reptilian Research      jim@reptiles.org   +1 416 410-5633 ]
[ The telephone, for those of you who  have forgotten, was a commonly used ]
[ communications technology in the days before electronic mail.            ]
[ They're still easy to find in most large cities. -- Nathaniel Borenstein ]
FAQ