more useful options | |
PerlMonks |
PAR::Packer, trouble to include specific external librariesby HJO (Acolyte) |
on Oct 01, 2012 at 15:18 UTC ( [id://996674]=perlquestion: print w/replies, xml ) | Need Help?? |
HJO has asked for the wisdom of the Perl Monks concerning the following question: Hi, I'm trying to use PAR::Packer to package a perl script in a standalone binary file. My script is based on a module called sapnwrfc (http://search.cpan.org/~piers/sapnwrfc-0.36/sapnwrfc.pm), which purpose is to create external RFC connections to SAP systems. I use two different systems to test my scripts and my binary files : one(RHEL) which possess the module correctly installed so I can test my scripts and package them, and another(CentOS) which doesn't have the module so I can test the binary files that I made on the first system. Here is my problem : This module works with a few lib files that I must add on the system I want to use the module for it to work, and I must specify in a environment variable the directory I placed them in... (the variable is called LD_LIBRARY_PATH) Here is the command line I use to create the binary file : pp -o test --lib=/usr/sap/nwrfcsdk/lib/ -M Carp -M sapnwrfc SAP-NW-RFC_test.pl At first I had an error because the lib weren't recognized by in the system :
Then I added the files in the usual directory on the system for the module to recognise them : /usr/sap/nwrfcsdk. But when I relaunched my binary file, I had another error : So I've got two questions :
Regards
Back to
Seekers of Perl Wisdom
|
|