Setting up Postgres on Linux

From: phil campaigne <pcampaigne(at)charter(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Setting up Postgres on Linux
Date: 2004-03-05 14:29:12
Message-ID: 40488EB8.5060801@charter.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

scott.marlowe wrote:

> On Thu, 4 Mar 2004, phil campaigne wrote:
>
>
>
>> Hello,
>> when I login to linux and check the env's I see:
>> PATH=/usr/local/pgsql/bin:/bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin:/home/postgres/bin:/opt/IBMJava2-14/bin:/opt/IBMJava2-14/jre/bin:/usr/local/pgsql/bin
>>
>> LD_LIBRARY_PATH=/usr/local/pgsql/lib
>>
>> However after I successfully start postgresql using
>> /etc/init.d/postgres start
>> /etc/init.d/postgres status
>>
>> I cannot execute the following:
>> psql testdb
>> psql: relocation error: psql: undefined symbol: PQgetssl
>>
>> Then if I execute from the command line:
>> LD_LIBRARY_PATH=/usr/local/pgsql/lib
>> export LD_LIBRARY_PATH
>>
>> PATH=/usr/local/pgsql/bin:$PATH
>> export PATH
>>
>> then psql testdb works!
>>
>> What's going on???
>>
>
>
> Are you exporting those same settings in your .bash_profile or
> whatever is setting up your environ?
>
>
>
>
Yes Scott,
I tried exporting from /root/.bash_profile and /postgres/.bash_profile.
I also added the line

/usr/local/pgsql/lib

to /etc/ld.so.conf

I don't get it.
Phil

Browse pgsql-general by date

  From Date Subject
Next Message phil campaigne 2004-03-05 14:30:16 Setting up Postgresql on Linux
Previous Message beer 2004-03-05 14:00:51 Trigger Update Issue