Unix Technical Forum

tsearch2 installation problem

This is a discussion on tsearch2 installation problem within the pgsql Admins forums, part of the PostgreSQL category; --> Hi Everyone, I have installed postgresql 8.1.3.tar.gz. After compiling and installing the postgresql is running fine but Im not ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 07:01 AM
Danish
 
Posts: n/a
Default tsearch2 installation problem

Hi Everyone,
I have installed postgresql 8.1.3.tar.gz. After compiling and
installing the postgresql is running fine but Im not able to install
tsearch2. I went under the postgresql source directory
/usr/local/postgresql8.1.3/contrib and then did a
#gmake all
#gmake install

After issuing these commands, a contrib directory was created under
/usr/local/pgsql/share

Going under the /usr/local/pgsql/share/contrib directory i ran the
command as user postgres

$psql -d dbname -f tsearch2.sql
SET
BEGIN
psql:tsearch2.sql:13: NOTICE: CREATE TABLE / PRIMARY KEY will create
implicit index "pg_ts_dict_pkey" for table "pg_ts_dict"
CREATE TABLE
psql:tsearch2.sql:20: ERROR: could not access file "$libdir/tsearch2":
No suchfile or directory
psql:tsearch2.sql:26: ERROR: current transaction is aborted, commands
ignored until end of transaction block

then i got the above errors..
Can anyone please help me out as to what is going wrong
Thanks
Danish

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 07:01 AM
Shoaib Mir
 
Posts: n/a
Default Re: tsearch2 installation problem

I just tried it going to contrib/tsearch2 folder and then did the following:

make
make install

It created a tsearch2.so file in the lib directory of pgsql which is used
while registering the tsearch2 functions. Make sure you have that .so file
created under the lib folder of pgsql.

Hope this helps...

/Shoaib


and then it create

On 17 Apr 2006 01:16:09 -0700, Danish <me.linuxadmin@gmail.com> wrote:
>
> Hi Everyone,
> I have installed postgresql 8.1.3.tar.gz. After compiling and
> installing the postgresql is running fine but Im not able to install
> tsearch2. I went under the postgresql source directory
> /usr/local/postgresql8.1.3/contrib and then did a
> #gmake all
> #gmake install
>
> After issuing these commands, a contrib directory was created under
> /usr/local/pgsql/share
>
> Going under the /usr/local/pgsql/share/contrib directory i ran the
> command as user postgres
>
> $psql -d dbname -f tsearch2.sql
> SET
> BEGIN
> psql:tsearch2.sql:13: NOTICE: CREATE TABLE / PRIMARY KEY will create
> implicit index "pg_ts_dict_pkey" for table "pg_ts_dict"
> CREATE TABLE
> psql:tsearch2.sql:20: ERROR: could not access file "$libdir/tsearch2":
> No suchfile or directory
> psql:tsearch2.sql:26: ERROR: current transaction is aborted, commands
> ignored until end of transaction block
>
> then i got the above errors..
> Can anyone please help me out as to what is going wrong
> Thanks
> Danish
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 07:01 AM
Danish
 
Posts: n/a
Default Re: tsearch2 installation problem


"Shoaib Mir" wrote:
> I just tried it going to contrib/tsearch2 folder and then did the following:
>
> make
> make install
>
> It created a tsearch2.so file in the lib directory of pgsql which is used
> while registering the tsearch2 functions. Make sure you have that .so file
> created under the lib folder of pgsql.
>
> Hope this helps...
>
> /Shoaib
>
>
> and then it create
>
> On 17 Apr 2006 01:16:09 -0700, Danish <me.linuxadmin@gmail.com> wrote:
> >
> > Hi Everyone,
> > I have installed postgresql 8.1.3.tar.gz. After compiling and
> > installing the postgresql is running fine but Im not able to install
> > tsearch2. I went under the postgresql source directory
> > /usr/local/postgresql8.1.3/contrib and then did a
> > #gmake all
> > #gmake install
> >
> > After issuing these commands, a contrib directory was created under
> > /usr/local/pgsql/share
> >
> > Going under the /usr/local/pgsql/share/contrib directory i ran the
> > command as user postgres
> >
> > $psql -d dbname -f tsearch2.sql
> > SET
> > BEGIN
> > psql:tsearch2.sql:13: NOTICE: CREATE TABLE / PRIMARY KEY will create
> > implicit index "pg_ts_dict_pkey" for table "pg_ts_dict"
> > CREATE TABLE
> > psql:tsearch2.sql:20: ERROR: could not access file "$libdir/tsearch2":
> > No suchfile or directory
> > psql:tsearch2.sql:26: ERROR: current transaction is aborted, commands
> > ignored until end of transaction block
> >
> > then i got the above errors..
> > Can anyone please help me out as to what is going wrong
> > Thanks
> > Danish
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 2: Don't 'kill -9' the postmaster
> >

>
> ------=_Part_16490_19174761.1145275606419
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> X-Google-AttachSize: 2007
>
> I just tried it going to contrib/tsearch2 folder and then did the following:<br><br>make<br>make install<br><br>It created a tsearch2.so file in the lib directory of pgsql which is used while registering the tsearch2 functions. Make sure you have that .so file created under the lib folder of pgsql.
> <br><br>Hope this helps...<br><br>/Shoaib<br><br><br>and then it create<br><br><div><span class="gmail_quote">On 17 Apr 2006 01:16:09 -0700, <b class="gmail_sendername">Danish</b> &lt;<a href="mailto:me.linuxadmin@gmail.com">
> me.linuxadmin@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Everyone,<br>I have installed postgresql 8.1.3.tar.gz
> . After compiling and<br>installing the postgresql is running fine but Im not able to install<br>tsearch2. I went under the postgresql source directory<br>/usr/local/postgresql8.1.3/contrib and then did a<br>#gmake all<br>
> #gmake install<br><br>After issuing these commands, a contrib directory was created under<br>/usr/local/pgsql/share<br><br>Going under the /usr/local/pgsql/share/contrib directory i ran the<br>command as user postgres<br>
> <br>$psql -d dbname -f tsearch2.sql<br>SET<br>BEGIN<br>psql:tsearch2.sql: 13: NOTICE:&nbsp;&nbsp;CREATE TABLE / PRIMARY KEY will create<br>implicit index &quot;pg_ts_dict_pkey&quot; for table &quot;pg_ts_dict&quot;<br>CREATE TABLE<br>
> psql:tsearch2.sql:20: ERROR:&nbsp;&nbsp;could not access file &quot;$libdir/tsearch2&quot;:<br>No suchfile or directory<br>psql:tsearch2.sql:26: ERROR:&nbsp;&nbsp;current transaction is aborted, commands<br>ignored until end of transaction block
> <br><br>then i got the above errors..<br>Can anyone please help me out as to what is going wrong<br>Thanks<br>Danish<br><br><br>---------------------------(end of broadcast)---------------------------<br>TIP 2: Don't 'kill -9' the postmaster
> <br></blockquote></div><br>
>
> ------=_Part_16490_19174761.1145275606419--


Thanks, I think it worked...tsearch.sql file created a lot of functions
and I could see lot of CREATE FUNCTION INSERT statements roll by.....

Danish

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:27 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com