One I finally know the answer to!
In our situation this was a two part problem
1.) The db2profile was not correctly setting the DB2_HOME variable.
2.) In the CAVEATS File is the following note:
Special Notes re: Linux
-----------------------
Some versions of gcc have problems with optimization. This
can cause Contants.C to take a long time to compile. Please
be patient, it will probably finish eventually. If it
doesn't, or the resulting build causes a 'Total
Environment allocation failure!' error when you try to
connect, you will have to edit the Makefile (after running
perl Makefile.PL) and change:
OPTIMIZE = -O2
to
OPTIMIZE = -O0
Make this change, recompile and all is well with the universe.
Jeremy
"Greger Norrman (GIS)" <[EMAIL PROTECTED]>@VM.MARIST.EDU> on
03/13/2002 11:12:52
Please respond to Linux on 390 Port <[EMAIL PROTECTED]>
Sent by: Linux on 390 Port <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: Problem installing perl interface to DB2
I tried to install the PERL interface to DB2.
I have Suse 7.2 kernel 2.4.7
and for the perl installation I used:
Free Personal Developer's Edition of DB2
DB1-1.21
DBD-DB2-076
Running the make test step I got this problem:
make[1]: Entering directory `/mnt/IBM/DBD/DBD-DB2-0.76/Constants'
make[1]: Leaving directory `/mnt/IBM/DBD/DBD-DB2-0.76/Constants'
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl5/5.6.0/s390-linux -I/usr/lib/perl5/5.6.0 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............install_driver(DB2) failed: Can't locate
auto/DBD/DB2/Constants/SQL_PARAM_I.al in @INC (@INC contains: blib/arch
blib/lib /usr/lib/perl5/5.6.0/s390-linux /usr/lib/perl5/5.6.0/s390-linux
/usr/lib/perl5/5.6.0/s390-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/5.6.0/s390-linux /usr/lib/perl5/5.6.0/s390-linux
/usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/s390-linux
/usr/lib/perl5/site_perl/5.6.0/s390-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl/5.6.0/s390-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl . /usr/lib/perl5/5.6.0/s390-linux
/usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/s390-linux
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at
blib/lib/DBD/DB2.pm line 40
Compilation failed in require at (eval 1) line 3.
Perhaps a module that DBD::DB2 requires hasn't been fully installed
at t/base.t line 16
t/base..............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 4-5
Failed 2/5 tests, 60.00% okay
t/main..............ok
Failed Test Status Wstat Total Fail Failed List of failed
-------------------------------------------------------------------------------
t/base.t 255 65280 5 2 40.00% 4-5
Failed 1/2 test scripts, 50.00% okay. 2/6 subtests failed, 66.67% okay.
make: *** [test_dynamic] Error 29
What can be the problem?
Thank you for any help!
Best Regards,
Greger Norrman