pgsql_perl 模块安装过程

postgres

[root@KOCweb02 pgsql_perl5-1.9.0]# perl Makefile.PL
Configuring Pg
Remember to actually read the README file !
please set environment variables POSTGRES_INCLUDE and POSTGRES_LIB !
[root@KOCweb02 pgsql_perl5-1.9.0]# export POSTGRES_INCLUDE=/usr/local/pgsql/include
[root@KOCweb02 pgsql_perl5-1.9.0]# export POSTGRES_LIB=/usr/local/pgsql/lib
[root@KOCweb02 pgsql_perl5-1.9.0]# Makefile.PL
bash: Makefile.PL: command not found
[root@KOCweb02 pgsql_perl5-1.9.0]# perl Makefile.PL
Configuring Pg
Remember to actually read the README file !
OS: linux
Checking if your kit is complete...
Looks good
Writing Makefile for Pg
[root@KOCweb02 pgsql_perl5-1.9.0]# make
cp Pg.pm blib/lib/Pg.pm
AutoSplitting blib/lib/Pg.pm (blib/lib/auto/Pg)
/usr/bin/perl -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 /usr/lib/perl5/5.6.1/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.6.1/ExtUtils/typemap -typemap typemap Pg.xs > Pg.xsc && mv Pg.xsc Pg.c
gcc -c -I/usr/local/pgsql/include -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686   -DVERSION=/"1.9.0/" -DXS_VERSION=/"1.9.0/" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE  Pg.c
Running Mkbootstrap for Pg ()
chmod 644 Pg.bs
rm -f blib/arch/auto/Pg/Pg.so
LD_RUN_PATH="/usr/local/pgsql/lib" gcc  -shared -L/usr/local/lib Pg.o  -o blib/arch/auto/Pg/Pg.so   -L/usr/local/pgsql/lib -lpq 
chmod 755 blib/arch/auto/Pg/Pg.so
cp Pg.bs blib/arch/auto/Pg/Pg.bs
chmod 644 blib/arch/auto/Pg/Pg.bs
Manifying blib/man3/Pg.3pm
[root@KOCweb02 pgsql_perl5-1.9.0]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 test.pl
Pg::conndefaults ........ ok
Pg::connectdb ........... not ok: FATAL 1:  user "root" does not exist
make: *** [test_dynamic] Error 255
[root@KOCweb02 pgsql_perl5-1.9.0]# su postgres
[postgres@KOCweb02 pgsql_perl5-1.9.0]$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 test.pl
Pg::conndefaults ........ ok
Pg::connectdb ........... ok
$conn->exec ............. ok
$conn->errorMessage ..... ok
$conn->db ............... ok
$conn->user ............. ok
$conn->port ............. ok
$conn->cmdStatus ........ ok
$conn->oidStatus ........ ok
$conn->getline .......... ok
$conn->endcopy .......... ok
$result->cmdTuples ...... ok
$result->fname .......... ok
$result->ftype .......... ok
$result->fsize .......... ok
$result->fnumber ........ ok
$result->fetchrow ....... ok
test sequence finished.
[postgres@KOCweb02 pgsql_perl5-1.9.0]$ make install
Warning: You do not have permissions to install into /usr/lib/perl5/site_perl/5.6.1/i386-linux at /usr/lib/perl5/5.6.1/ExtUtils/Install.pm line 85.
mkdir /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto: Permission denied at /usr/lib/perl5/5.6.1/ExtUtils/Install.pm line 139
make: *** [pure_site_install] Error 255
[postgres@KOCweb02 pgsql_perl5-1.9.0]$ exit
exit
[root@KOCweb02 pgsql_perl5-1.9.0]# make install
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Pg/Pg.so
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Pg/Pg.bs
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/Pg.pm
Installing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Pg/autosplit.ix
Installing /usr/share/man/man3/Pg.3pm
Writing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Pg/.packlist
Appending installation info to /usr/lib/perl5/5.6.1/i386-linux/perllocal.pod
[root@KOCweb02 pgsql_perl5-1.9.0]#

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值