Thread: installation problems

installation problems

From
danish
Date:
Hi,
Im trying to install network administration visulalized 
http://metanav.ntnu.no/moin.cgi/FrontPage . In their installation page 
they have mentioned to install pgsql_perl5-1.9.0 from CPAN by doing
#perl -MCPAN -e 'install Pg'
but I get the following errors
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Mon, 27 Jun 2005 05:58:10 GMT
Running install for module Pg
Running make for M/ME/MERGL/pgsql_perl5-1.9.0.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for 
/root/.cpan/sources/authors/id/M/ME/MERGL/pgsql_perl5-1.9.0.tar.gz ok
Scanning cache /root/.cpan/build for sizes
pgsql_perl5-1.9.0/
pgsql_perl5-1.9.0/eg/
pgsql_perl5-1.9.0/eg/ApachePg.pl
pgsql_perl5-1.9.0/eg/example.pl
pgsql_perl5-1.9.0/eg/lo_demo.pl
pgsql_perl5-1.9.0/Changes
pgsql_perl5-1.9.0/MANIFEST
pgsql_perl5-1.9.0/Makefile.PL
pgsql_perl5-1.9.0/Pg.pm
pgsql_perl5-1.9.0/Pg.xs
pgsql_perl5-1.9.0/README
pgsql_perl5-1.9.0/test.pl
pgsql_perl5-1.9.0/typemap
Removing previously used /root/.cpan/build/pgsql_perl5-1.9.0

CPAN.pm: Going to build M/ME/MERGL/pgsql_perl5-1.9.0.tar.gz

Configuring Pg
Remember to actually read the README file !
OS: linux
Checking if your kit is complete...
Looks good
Writing Makefile for Pg
cp Pg.pm blib/lib/Pg.pm
AutoSplitting blib/lib/Pg.pm (blib/lib/auto/Pg)
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap 
/usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap Pg.xs > Pg.xsc && 
mv Pg.xsc Pg.c
gcc -c -I/usr/local/pgsql/include -D_REENTRANT -D_GNU_SOURCE 
-fno-strict-aliasing -pipe -Wdeclaration-after-statement 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 
-march=i386 -mtune=generic -fasynchronous-unwind-tables 
-DVERSION=\"1.9.0\" -DXS_VERSION=\"1.9.0\" -fPIC 
"-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" Pg.c
Pg.xs: In function ‘constant’:
Pg.xs:76: warning: label ‘not_there’ defined but not used
Pg.xs: In function ‘XS_Pg_conndefaults’:
Pg.xs:162: warning: suggest parentheses around assignment used as truth 
value
Running Mkbootstrap for Pg ()
chmod 644 Pg.bs
rm -f blib/arch/auto/Pg/Pg.so
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
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
Can't call method "errorMessage" on an undefined value at test.pl line 99.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force

Please advise as to what to do....

Thanks
Danish


Re: installation problems

From
Keary Suska
Date:
on 5/13/06 7:04 AM, danish.siddiqui@hovservices.com purportedly said:

> Can't call method "errorMessage" on an undefined value at test.pl line 99.
> make: *** [test_dynamic] Error 255
> /usr/bin/make test -- NOT OK
> Running make install
> make test had returned bad status, won't install without force
> 
> Please advise as to what to do....

The error message is being generated by Perl, and could simply be a problem
with the test script. It doesn't necessarily mean there is a problem with
your build, or any problem with Postgres.

You could try a force install and see if it works as expected afterward, or
try to contact the developer of the module.

In any case, it probably doesn't have anything to do with Postgres or libpq,
so you may need to seek your answer elsewhere.

Best regards,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"



Re: installation problems

From
Frank Finner
Date:
Hi,

README of this Perl module says:
---
Run 'make test'.
Note, that the user running this script must have been created with the access 
rights to create databases. Do not run this script as root ! 
---

AFAIK Pg is quite old and no longer maintained since long (README is from 2000/04/04). Instead, DBD::Pg is the
preferredperl interface to PostgreSQL. Maybe the actual PostgreSQL protocol isn__t even supported:
 

---
REQUIREMENTS:
-------------
 - build, test and install Perl5          (at least 5.003) - build, test and install PostgreSQL     (at least 6.5)
---

And if I read the installation list correctly, they refer to DBD::Pg and not to the Pg module (eg. CentOS,
http://metanav.ntnu.no/moin.cgi/InstallingOnRHEL4):

---
yum -y install perl-DBI # Checked out, AlertEngine needs it [Engine.pm]
yum -y install perl-DBD-Pg # Checked out, AlertEngine needs it
---

So better you check the metanav installation page again, maybe you can use DBD::Pg (which is usually quite
straightforwardto install, if you installed PostgreSQL correctly).
 

Regards, Frank.


On Sat, 13 May 2006 18:34:10 +0530 danish <danish.siddiqui@hovservices.com> thought long, then sat down and wrote:

> Hi,
> Im trying to install network administration visulalized 
> http://metanav.ntnu.no/moin.cgi/FrontPage . In their installation page 
> they have mentioned to install pgsql_perl5-1.9.0 from CPAN by doing
> #perl -MCPAN -e 'install Pg'

...

> Running make test
> PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
> Can't call method "errorMessage" on an undefined value at test.pl line 99.
> make: *** [test_dynamic] Error 255
> /usr/bin/make test -- NOT OK
> Running make install
> make test had returned bad status, won't install without force
> 
> Please advise as to what to do....
> 
> Thanks
> Danish
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
> 
>                http://archives.postgresql.org


-- 
Frank Finner

Invenius - Lösungen mit Linux
Köpfchenstraße 36
57072 Siegen
Telefon: 0271 231 8606    Mail: frank.finner@invenius.de
Telefax: 0271 231 8608    Web:  http://www.invenius.de
Key fingerprint = 90DF FF40 582E 6D6B BADF  6E6A A74E 67E4 E788 2651