I get this error message after setting the PERLLIB environment for STAF on Linux.
export PERLLIB=/usr/local/staf/bin:/usr/local/staf/lib/perl58
and when i try to use the Perl Module it gives me the following error:
perl -e "use PLSTAF;"
Can't load '/usr/local/staf/lib/perl58/libPLSTAF.so' for module PLSTAF: libperl.so: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i486-linux-thread-multi/DynaLoader.pm line 230.
at -e line 1
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
Logged In: YES
user_id=285070
Originator: NO
1) What kind of Linux machine are you running on and which STAF installer file did you use to install STAF V3.3.0? Note that STAF Perl support is only provided for Linux Intel 32-bit (e.g. STAF330-setup-linux.bin, STAF330-setup-linux-NoJVM.bin, or STAF330-linux.tar.gz). There is no STAF Perl support provided for Linux AMD64, Linux IA64, Linux PPC64, or Linux on zSeries. The STAF Perl User's Guide at http://staf.sourceforge.net/current/STAFPerl.htm says:
"STAF Perl support is only provided in the STAF installer files for Windows 32-bit, Linux 32-bit, or Mac OS X. STAF Perl support is not provided in the STAF installer files for other operating systems."
For more information see the "Introduction" and "Installation" sections in the STAF Perl User's Guide.
2) What version of Perl are you using?
3) If you did install STAF for Linux Intel 32-bit, then during the install process, did you do a "typical" installation of STAF which installs "Perl support". During the install you can choose to install STAF Perl support for Perl 5.8 or 5.6 (5.8 is the default). Verify that the following files exist:
{STAF/Config/STAFRoot}/bin/PLSTAF.pm
{STAF/Config/STAFRoot}/bin/STAF.pl
{STAF/Config/STAFRoot}/bin/STAF2.pl
{STAF/Config/STAFRoot}/bin/STAFMon.pm
{STAF/Config/STAFRoot}/bin/STAFLog.pm
{STAF/Config/STAFRoot}/docs/STAFPerl.htm
{STAF/Config/STAFRoot}/lib/perl56/libPLSTAF.so
{STAF/Config/STAFRoot}/lib/perl58/libPLSTAF.so
Install STAF's Perl support by selecting to install "Perl support" during the install. It is installed by default for a "typical" install of STAF if using a STAF installer for Windows 32-bit, Linux 32-bit, or Mac OS X. Currently, STAF Perl support is not provided in the STAF installer files for other operating systems (though you can build STAF Perl support yourself).
Logged In: YES
user_id=285070
Originator: NO
Also, please post the contents of the install.properties in your /usr/local/staf directory (or whatever directory you installed STAF 3.3.0 to).
Logged In: YES
user_id=1143083
Originator: YES
I am running perl 5.8.8 on a Linux 32-bit machine.
There is no {STAF/Config/STAFRoot}/docs/STAFPerl.htm
The contents of /usr/local/staf/install.properties are below:
version=3.3.0
platform=linux
architecture=32-bit
installer=STAFInst
file=STAF330-linux.tar
osname=Linux
osversion=*
osarch=x86
Logged In: YES
user_id=285070
Originator: NO
What is the syntax that you used when you ran STAFInst to install STAF?
e.g. Did you specify any options for STAFInst?
Logged In: YES
user_id=1143083
Originator: YES
I did not specify any options for STAFInst. I just run './STAFInst' without quotes after 'cd' into extracted 'staf' directory.
Logged In: YES
user_id=1143083
Originator: YES
Installing STAF 3.2.5 worked. Does this mean a regression?
Logged In: YES
user_id=285070
Originator: NO
I installed STAF 3.3.0 on Linux using STAFInst and set PERLLIB=/usr/local/staf/bin:/usr/local/staf/lib/perl58 and STAF Perl support works just fine so it doesn't appear to be a regression to me.
Nothing really changed in the STAF Perl support from 3.2.5 to 3.3.0.
Does STAF Perl support work if you install STAF V3.3.0 using the InstallAnywhere installer file (e.g. STAF330-setup-linux.bin) instead of using the tar.gz file with STAFInst?
Logged In: YES
user_id=1143083
Originator: YES
STAF Perl support does not work even when I install it on other distribution of Linux. I installed STAF 3.2.0 and the configuration worked fine. I was mistaken in the previous comment about 3.2.5. STAF 3.2.5 does not work for me either and I get the same error message as stated earlier. What configurations have you set on your machine? That would be helpful to know.
Thanks.
Logged In: YES
user_id=1143083
Originator: YES
I had to compile STAF 3.3.0 on my linux machine for it to work. I am using
Slackware linux. Don't know if it has anything to do with the
distribution.
STAF Perl and Python support work now. Should I close the bug?
Logged In: YES
user_id=285070
Originator: NO
I'm glad it's working now for you by building it yourself. The STAF Perl support we provide for the STAF Linux 32-bit installer file was built using Perl 5.8.0 and was built on a Red Hat Linux release 8.0.
Yes, since it's working now, let's close the bug.