Hi Girija,

Did you follow the instructions in section "3.0 Installation" in the STAF 
Perl User's Guide at 
http://staf.sourceforge.net/current/STAFPerl.htm#Header_Install to install 
and configure STAF Perl support for Perl 5.18?

In order to have your Perl script find the specified module, you may need 
to set environment variable PERLLIB to the directory containing the STAF 
Perl modules (PLSTAF.pm, STAFMon.pm, STAFLog.pm), e.g. /usr/local/staf/bin 
for Linux. Also, set PERLLIB to the directory containing the PLSTAF 
library file (libPLSTAF.so on Linux) for Perl 5.18. For example: 

export PERLLIB=/usr/local/staf/bin:/usr/local/staf/lib/perl518

Since you are getting the following error message, it would appear that 
the PERLLIB environment variable does not contain /usr/local/staf/bin 
(which contains the PLSTAF module):

Can't locate PLSTAF.pm in @INC (you may need to install the PLSTAF module) 
(@INC contains: /usr/local/staf/lib/perl518/ 
/usr/lib/perl5/site_perl/5.18.4/x86_64-linux-thread-multi 
/usr/lib/perl5/site_perl/5.18.4 
/usr/lib/perl5/5.18.4/x86_64-linux-thread-multi /usr/lib/perl5/5.18.4 .) 
at test.pl line 1.

Are you using ActivePerl 5.18 ?  Or are you trying to use perl 5.18 
provided by the operating system.  Often it is easier to use ActivePerl 
with STAF so you may want to try that.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   Girija Brahme <girija.bra...@gmail.com>
To:     staf-users@lists.sourceforge.net
Date:   12/28/2016 01:10 AM
Subject:        [staf-users] Error while loading STAF module



I am trying to setup staf on centos 7. I have installed perl 18 
multithreaded. 
I am new perl and so to staf. Using STAF3425-linux-amd64.tar.gz to install 
staf.

I am definitely making some mistake in setting it up.
Tried to debug but couldn't pin the mistake. Need help from to figure out 
what is
going wrong. Here are details
$perl -v

This is perl 5, version 18, subversion 4 (v5.18.4) built for 
x86_64-linux-thread-multi

Copyright 1987-2013, Larry Wall

Perl may be copied only under the terms of either the Artistic License or 
the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.



$/usr/local/staf/bin/staf local misc list properties
Response
--------
version     : 3.4.25
platform    : linux-amd64
architecture: 64-bit
installer   : STAFInst
file        : STAF3425-linux-amd64.tar
osname      : Linux
osversion   : 2.6.18-406+
osarch      : amd64


$cat test.pl
use PLSTAF;


$perl test.pl
Can't locate PLSTAF.pm in @INC (you may need to install the PLSTAF module) 
(@INC contains: /usr/local/staf/lib/perl518/ 
/usr/lib/perl5/site_perl/5.18.4/x86_64-linux-thread-multi 
/usr/lib/perl5/site_perl/5.18.4 
/usr/lib/perl5/5.18.4/x86_64-linux-thread-multi /usr/lib/perl5/5.18.4 .) 
at test.pl line 1.
BEGIN failed--compilation aborted at test.pl line 1.

And when I attempt to run from framework which uses staf, I am hitting 
following error-
/usr/bin/perl: symbol lookup error: /usr/local/staf/lib/libPLSTAF.so: 
undefined symbol: Perl_Tstack_sp_ptr

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to