Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 111E79FA4CD for ; Wed, 10 Jan 2007 06:23:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 49250-06-2 for ; Wed, 10 Jan 2007 06:22:54 -0400 (AST) X-Greylist: delayed 00:33:15.725584 by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 6E8A89FB276 for ; Wed, 10 Jan 2007 06:22:34 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from correo2.acens.net (correo2.acens.net [217.116.0.34]) by svr4.postgresql.org (Postfix) with ESMTP id E23885AFB02 for ; Wed, 10 Jan 2007 09:29:45 +0000 (GMT) Received: (qmail 30571 invoked from network); 10 Jan 2007 09:28:43 -0000 Received: from unknown (HELO [192.168.0.16]) ([80.59.213.55]) (envelope-sender ) by correo2.acens.net (qmail-ldap-1.03) with SMTP for ; 10 Jan 2007 09:28:43 -0000 Message-ID: <45A4B46A.10106@f1-connecting.com> Date: Wed, 10 Jan 2007 10:39:54 +0100 From: =?ISO-8859-2?Q?Jorge_Serv=E1n?= Reply-To: jorge.servan@f1-connecting.com User-Agent: Thunderbird 1.5.0.9 (X11/20061219) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: What library uses postmaster when lib postgres files References: <45A42A77.5000701@informatyka.gdansk.pl> In-Reply-To: <45A42A77.5000701@informatyka.gdansk.pl> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/82 X-Sequence-Number: 24238 The Libraries used are solved by the liker. Try ldd to show the paths of the library that needs. You can say to the linker where it can find your libraries (man ld). Example 1: default paths from a default paths PostgreSQL installation. $ ldd /usr/bin/psql libpq.so.3 => /usr/lib/libpq.so.3 (0x40029000) libpam.so.0 => /lib/libpam.so.0 (0x40044000) libssl.so.2 => /lib/libssl.so.2 (0x4004c000) libcrypto.so.2 => /lib/libcrypto.so.2 (0x40079000) libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x4013c000) libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x40194000) libz.so.1 => /usr/lib/libz.so.1 (0x40198000) libreadline.so.4 => /usr/lib/libreadline.so.4 (0x401a6000) libtermcap.so.2 => /lib/libtermcap.so.2 (0x401cc000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x401d0000) libresolv.so.2 => /lib/libresolv.so.2 (0x401fd000) libnsl.so.1 => /lib/libnsl.so.1 (0x4020f000) libdl.so.2 => /lib/libdl.so.2 (0x40225000) libm.so.6 => /lib/i686/libm.so.6 (0x4022a000) libc.so.6 => /lib/i686/libc.so.6 (0x4024d000) libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40388000) libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x4039d000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) Example 2: modified paths from a not default paths PostgreSQL installation. Sitefdevel:~$ ldd $HOME/opt/postgres-8.1.5/bin/psql $ echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" LD_LIBRARY_PATH=/home/cvsitef/opt/postgres-8.1.5/lib libpq.so.4 => /home/cvsitef/opt/postgres-8.1.5/lib/libpq.so.4 (0x40018000) libz.so.1 => /usr/lib/libz.so.1 (0x40042000) libreadline.so.4 => /usr/lib/libreadline.so.4 (0x40050000) libtermcap.so.2 => /lib/libtermcap.so.2 (0x40076000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x4007a000) libresolv.so.2 => /lib/libresolv.so.2 (0x400a7000) libnsl.so.1 => /lib/libnsl.so.1 (0x400b9000) libdl.so.2 => /lib/libdl.so.2 (0x400d0000) libm.so.6 => /lib/i686/libm.so.6 (0x400d4000) libc.so.6 => /lib/i686/libc.so.6 (0x400f7000) libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40232000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) Best regards Jorge Serván. Adam Rad³owski wrote: > I'm testing 8.1.3 and 8.1.6 of FC3 2.6.12 . > I have installed (compiled from source) two copies of PostgreSQL: > 8.1.3 - typically in /usr/local/pgsql and I have configured path to > these libs (in ld.so.conf): /usr/local/pgsql/lib > 8.1.6 - not typically in /usr/local/pgsql816 (I edited before > installing with "make install" src/Makefile.global and I changed > "prefix" for install after "configure" and "make") > I never use this two versions of postmaster parallel, so I use for > them this same database cluster. > > What libraries uses postmaster 8.1.6 in this situation ? Their own > libs or taken from 8.1.3 ? > > Best regards > Adam > > ---------------------------(end of broadcast)--------------------------- > TIP 7: You can help support the PostgreSQL project by donating at > > http://www.postgresql.org/about/donate > >