X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 05863D1B53D for ; Fri, 26 Sep 2003 15:18:11 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 46162-02 for ; Fri, 26 Sep 2003 12:17:39 -0300 (ADT) Received: from mta3.snet.net (mta3.snet.net [204.60.203.69]) by svr1.postgresql.org (Postfix) with ESMTP id 9F8CCD1B52B for ; Fri, 26 Sep 2003 12:17:38 -0300 (ADT) Received: from [192.168.1.203] (167.95.252.64.snet.net [64.252.95.167]) by mta3.snet.net (8.12.3/8.12.3/SNET-smtp-1.2/D-1.1.1.1/O-1.1.1.1) with ESMTP id h8QFHWIJ014020; Fri, 26 Sep 2003 11:17:32 -0400 (EDT) Date: Fri, 26 Sep 2003 11:12:39 -0400 (EDT) From: Wei Weng X-X-Sender: wweng@localhost.localdomain To: Tom Lane Cc: pgsql-sql@postgresql.org Subject: Re: tsearch2 question In-Reply-To: <15816.1064588853@sss.pgh.pa.us> Message-ID: References: <5912.1064536486@sss.pgh.pa.us> <15816.1064588853@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/332 X-Sequence-Number: 15310 When I run psql < tsearch2.sql, is psql going to substitute $libdir internally with what $libdir really is (in my case, it would be /usr/lib/pgsql)? Thanks Wei On Fri, 26 Sep 2003, Tom Lane wrote: > Wei Weng writes: > > But then when I do a psql < tsearch2.sql, it complains: > > bash-2.05a$ psql testdb < tsearch2.sql > > ERROR: stat failed on file '$libdir/tsearch2': No such file or directory > > Where did I do wrong?? > > Did you do "make install" after building tsearch2? > > If you did, maybe it installed tsearch2.so in the wrong place? > ("pg_config --pkglibdir" will tell you what the backend thinks > "$libdir" means.) > > regards, tom lane >