Received: from trade-india.com (mail.trade-india.com [130.94.20.28] (may be forged)) by postgresql.org (8.11.3/8.11.4) with SMTP id g1JH5sE31349 for ; Tue, 19 Feb 2002 12:05:54 -0500 (EST) (envelope-from mallah@trade-india.com) Received: (qmail 23130 invoked from network); 19 Feb 2002 17:10:11 -0000 Received: from ptil-235-129-del.primus-india.net (HELO trade-india.com) (203.196.129.235) by 130.94.22.209 with SMTP; 19 Feb 2002 17:10:11 -0000 Message-ID: <3C7286B2.2F08457D@trade-india.com> Date: Tue, 19 Feb 2002 22:39:06 +0530 From: Rajesh Kumar Mallah X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: correct way to install contrib packages Content-Type: multipart/alternative; boundary="------------12ABB10EE2CE633E196064F5" X-Archive-Number: 200202/226 X-Sequence-Number: 3382 --------------12ABB10EE2CE633E196064F5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit How is one supposed to install the postgresql contrib packages in an RPM based system? (sorry for starting with a question ) I did the following. 1. Built the binary rpms from source rpms as described in README(s) 2. rpm -Uvh *.rpm (for all the binary rpms , including postgresql-contrib) 3. cd /usr/lib/pgsql/contrib/ 4. psql -U postgres template1 -f package.sql The problem is in the .sql file there is a $libdir variable , which unless changed to value of `pwd` refuses to load becoz it cant find the .so files! was it the proper way ?? also in case ot tsearch contrib module i had to manually link libtsearch.so to tsearch.so to load the contrib package. regds Rajesh Kumar Mallah. --------------12ABB10EE2CE633E196064F5 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit How is one supposed to install the  postgresql
contrib packages in an RPM based system? (sorry for starting with a question )

I did the following.
1.  Built the binary rpms from source rpms as described in README(s)
2.   rpm -Uvh *.rpm   (for all the binary rpms , including postgresql-contrib)
3. cd /usr/lib/pgsql/contrib/<somepackage>
4. psql -U postgres template1  -f  package.sql

The problem is in the <package>.sql file there is a $libdir variable  ,
which unless changed to  value of `pwd`
refuses to load becoz it cant find the .so files!
was it the proper way ??

also in case ot tsearch contrib module i had to manually link
libtsearch.so to tsearch.so  to load the contrib package.

regds
Rajesh Kumar Mallah.
  --------------12ABB10EE2CE633E196064F5--