Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Prerequisites on Linux
The Perl support of JobScheduler engine should be switched to the latest Perl release (currently 5.18.2) (http://www.sos-berlin.com/jira/browse/JS-1096).
...
This library works with Perl versions 5.12.x, 5.14.x, 5.16.x too.
32Bit JobScheduler
- You have to install a 32Bit Perl or a 64Bit Perl with a additional 32Bit Perl interpreter
- Create 2 symlinks in the ./lib directory of the JobScheduler installation
- The first symlink with the name libperl.so have to point to the 32Bit Perl interpreter libperl.so of the Perl installation
- The second symlink with the name libsosperlscript.so have to point to the ./lib/libsosperlscript.<perl-version>.so.
...
Code Block |
---|
[ERROR] COM-80020009 DISP_E_EXCEPTION [begin] [] [COM-800401F8 CO_E_DLLNOTFOUND [CoGetClassObject] [perlScript], in Remote_module_instance_server::begin], method=call [info] dlopen("libsosperlscript.so"): /install/path/of/jobscheduler/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /install/path/of/jobscheduler/lib/libsosperlscript.so) |
64Bit JobScheduler
- You have to install a 64Bit Perl
- Create 2 symlinks in the ./lib directory of the JobScheduler installation
- The first symlink with the name libperl.so have to point to the 64Bit Perl interpreter libperl.so of the Perl installation
- The second symlink with the name libsosperlscript.so have to point to the ./lib/libsosperlscript.<perl-version>.so.
...
Code Block |
---|
> ln -s /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi/CORE/libperl.so libperl.so > test -f libsosperlscript.so && rm libsosperlscript.so > ln -s libsosperlscript.5.18.2.so libsosperlscript.so |
Set $PERL5LIB
The libsosperlscript.<perl-version>.so set the @INC variable from the environment where libsosperlscript.<perl-version>.so was compiled.
It can be different from your own Perl environment.
Type
...
Look at the article How I add_environment variables for more information how you change the environment of the JobScheduler.
Prerequisites on Windows
You have to install an current ActivePerl with the same number of bits like the JobScheduler.
Job Example
Now you can test the JobScheduler-Perl-API with e.g. the following job.
...