From: Sharon L. <lu...@us...> - 2006-02-15 23:57:33
|
You need to use the current STAF source code that's checked into CVS on SourceForge. There were some updates to the Perl service support since STAF 3.1.2 was released. 1. That means you'll need to build core STAF and the Perl support following the directions in the STAF Developer's Guide and then run STAF from this version that you built. These instructions assume the STAF source code is in c:\build\src\staf. 2. You'll need to copy the files in C:/build/rel/<OS_NAME>/staf/retail/lib/perl58 to C:/build/rel/<OS_NAME>/staf/retail/lib (assuming your build directory is C:/build) NOTE: This is probably why you get the error trying to open the PLSTAF library since it can't find it without this step: STAFDynamicLibraryOpen: /usr/lib/libPLSTAF.so: 3. STAFProc needs to have the C:/per583/bin directory in its PATH to register Perl services. (Or whereever you installed Perl 58 to) 3. To register the sample service: STAF local SERVICE ADD SERVICE DEVICE LIBRARY PLSTAF EXECUTE C:/build/src/staf/services/sdg_sample/DeviceService.pl 4. You have to use Task Manager to terminate the perl.exe application after shutting down STAF. This is one of the bugs that will be fixed. 5. Note: The Perl interpreter log is at c:/build/rel/win32/staf/retail/data/STAF/lang/perl/perlInterpreter/device/PerlInterpreterLog.1 -------------------------------------------------------------- Sharon Lucas IBM Austin, lu...@us... (512) 838-8347 or Tieline 678-8347 Martin Kanarr <m.k...@f5...> Sent by: sta...@li... 02/15/2006 05:30 PM To sta...@li... cc Subject [staf-devel] Perl Services I'm attempting to run the sample DeviceService.pl perl service with STAF 3.1.2. This is the error I'm getting. Name : STAFException Location : /opt/dev/autobuild/build/src/staf/stafif/STAFDynamicLibraryInlImpl.cpp(29) Text : STAFDynamicLibraryOpen: /usr/lib/libPLSTAF.so: undefined symbol: Perl_croak Error code: 10 Error reading config file This is the config entry: SERVICE Sample LIBRARY PLSTAF EXECUTE C:\STAF\services\DeviceService.pl Let me know if more information is needed. Thanks for the help! Martin ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ staf-devel mailing list sta...@li... https://lists.sourceforge.net/lists/listinfo/staf-devel |