Yes, the /usr/local/staf/lib/perl518 directory only contains the 
libPLSTAF.so library for STAF support for Perl 5.18.

# ls -l /usr/local/staf/lib/perl518
total 80
-rwxrwxr-x 1 root root 70745 Jun  7  2016 libPLSTAF.so

I was trying to tell you that the PERLLIB environment variable needs to 
contain the /usr/local/staf/bin directory as it contains the PLSTAF.pm 
module that STAF Perl suport also requires (in addition to setting PERLLIB 
to contain /usr/local/staf/lib/perl518).    export 
PERLLIB=/usr/local/staf/bin:/usr/local/staf/lib/perl518

# ls -l /usr/local/staf/bin/*.pm
-rwxrwxr-x 1 root root 48322 Jun  7  2016 /usr/local/staf/bin/PLSTAF.pm
-rwxrwxr-x 1 root root  6991 Jun  7  2016 
/usr/local/staf/bin/PLSTAFService.pm
-rwxrwxr-x 1 root root  5173 Jun  7  2016 /usr/local/staf/bin/STAFLog.pm
-rwxrwxr-x 1 root root  2735 Jun  7  2016 /usr/local/staf/bin/STAFMon.pm

Yes, you must have Perl installed in order to build STAF Perl support for 
that Perl version.  Note you have to set environment variables like 
PERL_V518_ROOT to where you installed Perl 5.18.  For example:

 export PERL_V518_ROOT=/opt/ActivePerl-5.18

See section "Building STAF Perl Support" in the STAF Developer's Guide at 
http://staf.sourceforge.net/current/stafdg.html#Header_buildPerl for more 
information.

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




From:   Girija Brahme <girija.bra...@gmail.com>
To:     Sharon Lucas/Austin/IBM@IBMUS
Cc:     staf-users@lists.sourceforge.net
Date:   12/30/2016 11:58 AM
Subject:        Re: [staf-users] Error while loading STAF module




Thank  you Sharon Lucas. Really appreciate your response and right now I 
badly need some guideline for this issue.
When the bundle downloaded for staf,  
http://prdownloads.sourceforge.net/staf/STAF3425-linux-amd64.tar.gz?download
I am only seeing .so file. in /usr/local/staf/lib/perl518. Did I missed 
something ?

I have installed perl myself to version 5.18.4. I had to do this as latest 
active perl available is much higher than supported .so for STAF. That 
might be the problem?

At this point I am attempting to build staf from source. I could build 
staf core successfully. Now trying to build perl support.
Using active perl is a mandatory even building from source?

Thanks,
Girija


On Fri, Dec 30, 2016 at 11:18 PM, Sharon Lucas <luc...@us.ibm.com> wrote:
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_Installto 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.plline 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.plline 1.
BEGIN failed--compilation aborted at test.plline 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




------------------------------------------------------------------------------
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