Download and install the Perl modules that the Sybase CEP SDK relies on.
Use the commands shown below:
1 $ perl -MCPAN -e shell 2 > install URI::URL LWP::UserAgent Text::CSV \ SOAP::Lite XML::DOM XML::XPath Error 3 > quit
Due to formatting constraints, this is shown as 4 lines rather than 3; the 2nd and 3rd lines should be a single line without a backslash.
Line 1: Execute a command that goes to CPAN (Comprehensive Perl Archive Network).
Line 2: When prompted, enter the names of the libraries to be downloaded from CPAN.
Line 3: Exit the perl interpreter.
Note that these commands should be entered when you are prompted to enter commands. Depending on how your system is initially configured, you may be asked various questions before you are shown the prompts for these two commands.
To use the Sybase CEP Perl API, the directories that contain the Sybase CEP Perl modules must be in the Perl #include path. The Sybase CEP Perl modules are in the subdirectories:
server/sdk/perl/SybaseC8 server/sdk/perl/SybaseC8/SybaseC8
under the directory in which you installed the Sybase CEP product.
On Microsoft Windows, these are typically:
C:\Program Files\SybaseC8\Server\sdk\perl\SybaseC8 C:\Program Files\SybaseC8\Server\sdk\perl\SybaseC8\SybaseC8
On UNIX-like operating systems, these are typically:
/home/<userID>/sybasec8/server/sdk/perl/SybaseC8 /home/<userID>/sybasec8/server/sdk/perl/SybaseC8/SybaseC8
Prior to loading the module, you will need to do at least one of the following:
Execute the command:
use lib "/my/dir/perllib"
Set the PERL5LIB env variable.
Use perl's -I switch.