Trouble installing ADL4.2 - A Perl Issue

Issues related to installation of ADL
Post Reply
sudipta
Posts: 8
Joined: Wed Jan 08, 2014 10:37 am

Trouble installing ADL4.2 - A Perl Issue

Post by sudipta »

Hi All
I am trying to install ADL4.2 on a CentOS 64 bit machine. I downloaded and installed all ADL 4.2 required COTS using the SSEC Cots installation script. But for Perl 5.19.2 which is the required version for ADL4.2 I could not use SSEC Perl installation script which uses Perlbrew as it was giving me a Patchperl error. However I managed to install Perl-5.19.2 by replicating the Perlbrew command line and ignoring call to Patchperl. I also managed to symlink all Perl executables and set all the required ENV variables given in the envSetup.ksh/csh file.
Everything looks good but still whenever I try to install ADL4.2 using the buildAdl.ksh script I get the following error:

Code: Select all

BUILD SUCCESSFUL
Total time: 0 seconds
Building clean in ./JNISupport/src/...
make[2]: Entering directory `/NPPdata/ssarkar/CSPP/ADL42/java/JNISupport/src'
/bin/rm -f /NPPdata/ssarkar/CSPP/ADL42/lib/libDmJniSupport.a  DmJNIApiClient.o DmJNICoreFile.o DmJNICoreInfInterface.o DmJNICoreStringTools.o DmJNIUtility.o
/bin/rm -f /NPPdata/ssarkar/CSPP/ADL42/lib/libDmJniSupport.so DmJNIApiClient.o DmJNICoreFile.o DmJNICoreInfInterface.o DmJNICoreStringTools.o DmJNIUtility.o
/bin/rm -f /NPPdata/ssarkar/CSPP/ADL42/lib/libDmDmsApi.mt.a  dms_core_library_UnixServices.o
/bin/rm -f /NPPdata/ssarkar/CSPP/ADL42/lib/libDmDmsApi.mt.so dms_core_library_UnixServices.o
make[2]: Leaving directory `/NPPdata/ssarkar/CSPP/ADL42/java/JNISupport/src'
make[1]: Leaving directory `/NPPdata/ssarkar/CSPP/ADL42/java'
Building src in ./xml...
make[1]: Entering directory `/NPPdata/ssarkar/CSPP/ADL42/xml'
Building src in ./SCIENCE...
make[2]: Entering directory `/NPPdata/ssarkar/CSPP/ADL42/xml/SCIENCE'
/NPPdata/ssarkar/CSPP/ADL42/perl/src/generateSourceFiles.pl /NPPdata/ssarkar/CSPP/ADL42/xml/SCIENCE ADL -h /NPPdata/ssarkar/CSPP/ADL42/include -o /NPPdata/ssarkar/CSPP/ADL42/CMN/Utilities/Dictionary/Entries/SCIENCE/src -e AutoDerivedScienceDictionaryEntries -g AutoGeneratedScienceProductsGbl.h -d /NPPdata/ssarkar/CSPP/ADL42/CMN/ProcessingIO/src -f AutoGeneratedScienceProductsGbl.f
Search pattern not terminated at /NPPdata/ssarkar/CSPP/common/COTS/perl/perls/perl-5.19.2/lib/5.19.2/warnings.pm line 508.
Compilation failed in require at /NPPdata/ssarkar/CSPP/common/COTS/perl/perls/perl-5.19.2/lib/5.19.2/Carp.pm line 5.
BEGIN failed--compilation aborted at /NPPdata/ssarkar/CSPP/common/COTS/perl/perls/perl-5.19.2/lib/5.19.2/Carp.pm line 5.
Compilation failed in require at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Data/Dumper.pm line 20.
BEGIN failed--compilation aborted at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Data/Dumper.pm line 20.
Compilation failed in require at /NPPdata/ssarkar/CSPP/ADL42/perl/src/generateSourceFiles.pl line 88.
BEGIN failed--compilation aborted at /NPPdata/ssarkar/CSPP/ADL42/perl/src/generateSourceFiles.pl line 88.
make[2]: *** [/NPPdata/ssarkar/CSPP/ADL42/include/AutoDerivedScienceDictionaryEntries.h] Error 9
make[2]: Leaving directory `/NPPdata/ssarkar/CSPP/ADL42/xml/SCIENCE'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/NPPdata/ssarkar/CSPP/ADL42/xml'
make: *** [src] Error 2
is there any other Perl setting that I am ignoring that Perlbrew probably automatically handles and since I did the Perl installation manually, i forgot? Any help will be very helpful.
houchin
Posts: 128
Joined: Mon Jan 10, 2011 6:20 am

Re: Trouble installing ADL4.2 - A Perl Issue

Post by houchin »

Do you really need that new a version of perl? I have successfully build ADL 4.2.2 on GRAVITE, using the system provided version of perl, which is 5.8.8.
Scott Houchin, Senior Engineering Specialist, The Aerospace Corporation
15049 Conference Center Dr CH3/310, Chantilly, VA 20151; 571-307-3914; scott.houchin@aero.org
sudipta
Posts: 8
Joined: Wed Jan 08, 2014 10:37 am

Re: Trouble installing ADL4.2 - A Perl Issue

Post by sudipta »

Hi Houchin
We also have Perl 5.8.8 installed in our system but using that produces the following error:

Code: Select all

Can't load '/usr/local/lib/perl/auto/Data/Dumper/Dumper.so' for module Data::Dumper: /usr/local/lib/perl/auto/Data/Dumper/Dumper.so: undefined symbol: PL_unitcheckav at /usr/local/lib/perl/XSLoader.pm line 70.
 at /usr/local/lib/perl/Data/Dumper.pm line 36.
Compilation failed in require at /NPPdata/ssarkar/CSPP/ADL42/perl/src/generateSourceFiles.pl line 88.
BEGIN failed--compilation aborted at /NPPdata/ssarkar/CSPP/ADL42/perl/src/generateSourceFiles.pl line 88.
make[2]: *** [/NPPdata/ssarkar/CSPP/ADL42/include/AutoDerivedScienceDictionaryEntries.h] Error 9
make[2]: Leaving directory `/NPPdata/ssarkar/CSPP/ADL42/xml/SCIENCE'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/NPPdata/ssarkar/CSPP/ADL42/xml'
make: *** [src] Error 2
So it seems that it cannot find the library module Dumper.so
Did you have to make any changes to your system installation of perl in anyway to make it compatible with ADL4.2.2? Can you please share with me any scrip etc that shows how and what environment variables you are setting. By the way I do not have admin privilege in the system i am trying to install ADL on.
houchin
Posts: 128
Joined: Mon Jan 10, 2011 6:20 am

Re: Trouble installing ADL4.2 - A Perl Issue

Post by houchin »

Did you have to make any changes to your system installation of perl in anyway to make it compatible with ADL4.2.2? Can you please share with me any scrip etc that shows how and what environment variables you are setting. By the way I do not have admin privilege in the system i am trying to install ADL on.
The only perl environment variable I set is "PERL_HOME", which on GRAVITE is set to /usr.

I do not know if someone else from the program asked for any additional perl modules to be installed on GRAVITE, but on all of the systems on which I've installed ADL, all of the perl modules that are required have already been there. I am pretty sure that everything that's required is pretty standard.

Try the following: Remove any perl environment variables from your environment, getting back to a "default shell state". Then type the following command:

Code: Select all

/usr/bin/perl -e "use Data::Dumper"
This should immediately exit without an error, meaning that the standard perl installation does have that module. If you get an error, it means that the module isn't present.
Scott Houchin, Senior Engineering Specialist, The Aerospace Corporation
15049 Conference Center Dr CH3/310, Chantilly, VA 20151; 571-307-3914; scott.houchin@aero.org
scottm

Re: Trouble installing ADL4.2 - A Perl Issue

Post by scottm »

The only perl modifications made are for the splat line.
Not all linux distributions function properly if perl is just added to the path. The ADL install script patches the splat lines

install_perl_patch()
{
cd $ADL_HOME

adl_perl="path to perl"

perl_files=`find . -iname *.pl`
for perl_file in $perl_files;
do
echo "Perl file" $perl_file
chmod 775 $perl_file
mv $perl_file ${perl_file}.tmp

cat ${perl_file}.tmp | sed s#/usr/bin/perl#$adl_perl# > $perl_file
rm ${perl_file}.tmp
chmod 775 $perl_file
done

}
sudipta
Posts: 8
Joined: Wed Jan 08, 2014 10:37 am

Re: Trouble installing ADL4.2 - A Perl Issue

Post by sudipta »

Houchin
Thanks a lot!! I reverted back to system Perl. Used cpanminus to install the extra XML::Simple module in my local folder and added the PERL5LIB to point to my local perl5 lib and that seems to be working finally. Though I am keeping my fingers crossed!!
Post Reply