Re: [HACKERS] Perl library (was Building Postgres) - Mailing list pgsql-hackers

From Edmund Mergl
Subject Re: [HACKERS] Perl library (was Building Postgres)
Date
Msg-id 3777CB3D.196245F1@bawue.de
Whole thread Raw
In response to Re: [HACKERS] Perl library (was Building Postgres)  ("Oliver Elphick" <olly@lfix.co.uk>)
List pgsql-hackers
Oliver Elphick wrote:
> 
> Maarten Boekhold wrote:
>   >
>   >> I'm now trying to package the perl (and next, python) interfaces. Can
>   >> someone with perl installation experience give me some hints on what
>   >> actually needs to be installed and how it has to happen?
>   >
>   >Me thinks the guy who's building the Debian packages should have some
>   >experience with these. IIRC that'd be Oliver Elphick (?).
> 
> The Perl package gave me the most trouble; the more so since I rarely
> use Perl and only have the vaguest notion of what's going on in the pgperl
> build!
> 


I don't know the peculiarities of every distribution, but the following
will work in any case:

tar xvzf postgres-6.5.tar.gz
cd $POSTGRES_HOME/src
./configure
make install
initdb --pgdata=/usr/local/pgsql/data --pglib=/usr/local/pgsql/lib
postmaster -S -D /usr/local/pgsql/data
createuser my_userid

make sure, the dynamic linker can find libpq.so
eg: export LD_LIBRARY_PATH=/usr/local/pgsql/lib

cd interfaces/pgsql_perl5
perl Makefile.PL
make test
su
make install


Edmund

-- 
Edmund Mergl
mailto:E.Mergl@bawue.de
http://www.bawue.de/~mergl


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Severe SUBSELECT bug in 6.5 CVS
Next
From: "Hub.Org News Admin"
Date:
Subject: ...