Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: PostgreSQL/Perl

by ColtsFoot (Chaplain)
on Nov 02, 2001 at 20:57 UTC ( [id://122848]=note: print w/replies, xml ) Need Help??


in reply to PostgreSQL/Perl

You need to set the two environment variables to point at
the postgres lib and include directory
POSTGRES_INCLUDE=/usr/include/pgsql POSTGRESQL_LIB=/usr/lib export POSTGRES_INCLUDE POSTGRES_LIB or setenv POSTGRES_INCLUDE /usr/include/pgsql setenv POSTGRESQL_LIB /usr/lib depending on your shell
The location of these directories will vary depending on how
you installed postgresql
Hope this helps

Replies are listed 'Best First'.
Re: Re: PostgreSQL/Perl
by Hanamaki (Chaplain) on Nov 02, 2001 at 21:45 UTC
    In my case it looks like:
    export POSTGRES_HOME=/usr/local/pgsql export PGLIB=$POSTGRES_HOME/lib export PGDATA=$POSTGRES_HOME/data export LD_LIBRARY_PATH=$PGLIB export PATH=/usr/bin:/usr/local/pgsql/bin:$PATH
    inside .bashrc.

    Hanamaki
Re: Re: PostgreSQL/Perl
by Anonymous Monk on Nov 02, 2001 at 21:30 UTC
    Can do those commands from anywhere or do they have to be done from inside the directories?
      Usually you put these commands into .bashrc, .bash_profile or wherever your systems looks for Environmental variables. Of course you can type these command all the time you reboot your system, but that doesn't seem very comfortable.

      Hanamaki
        Do these variables have to be set before
        I do make test and make install?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://122848]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-04-24 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found