You have to add the appropriate SMARTS directory (e.g. /opt/InCharge7/SAM/smarts/perl/5.8.8/lib/InCharge/ if you are using PERL 5.8.8) to your @INC, or you have to copy the modules to your appropriate PERL site mod directory already listed in @INC.
Adding a directory to your @INC:
1. Add the directory to the PERL5LIB environment variable. 2. Add uselib'directory'; in your Perl script.
syntax error at /opt/InCharge72/SAM/smarts/perl/5.8.8/lib/InCharge/session.pm line 942, near "|| ) " Compilation failed in require at perlapitest.pl line 5. BEGIN failed--compilation aborted at perlapitest.pl line 5.
/usr/local/src/perl-5.8.8/lib/InCharge /usr/local/lib/perl5/5.8.8/InCharge find: /proc/15045/task: No such file or directory find: /proc/15045/fd: No such file or directory find: /proc/19700/task: No such file or directory find: /proc/19700/fd: No such file or directory find: /proc/20688/task: No such file or directory find: /proc/20688/fd: No such file or directory find: /proc/20689/task: No such file or directory find: /proc/20689/fd: No such file or directory /opt/InCharge70/NPM/smarts/perl/5.8.0/lib/InCharge /opt/InCharge70/NPM/smarts/perl/5.6.1/lib/InCharge /opt/InCharge70/NPM/smarts/local/perl/5.8.0/lib/InCharge /opt/InCharge70/NPM/smarts/local/perl/5.6.1/lib/InCharge /opt/InCharge70/IP/smarts/perl/5.8.0/lib/InCharge /opt/InCharge70/IP/smarts/perl/5.6.1/lib/InCharge /opt/InCharge70/IP/smarts/local/perl/5.8.0/lib/InCharge /opt/InCharge70/IP/smarts/local/perl/5.6.1/lib/InCharge /opt/InCharge72/SAM/smarts/perl/5.8.8/lib/InCharge /opt/InCharge72/SAM/smarts/perl/5.8.0/lib/InCharge /opt/InCharge72/SAM/smarts/perl/5.6.1/lib/InCharge /opt/InCharge72/SAM/smarts/local/perl/5.8.8/lib/InCharge /opt/InCharge72/SAM/smarts/local/perl/5.8.0/lib/InCharge /opt/InCharge72/SAM/smarts/local/perl/5.6.1/lib/InCharge /opt/InCharge72/SAM.Adapters/smarts/perl/5.8.8/lib/InCharge /opt/InCharge72/SAM.Adapters/smarts/perl/5.8.0/lib/InCharge /opt/InCharge72/SAM.Adapters/smarts/perl/5.6.1/lib/InCharge /opt/InCharge72/SAM.Adapters/smarts/local/perl/5.8.8/lib/InCharge /opt/InCharge72/SAM.Adapters/smarts/local/perl/5.8.0/lib/InCharge /opt/InCharge72/SAM.Adapters/smarts/local/perl/5.6.1/lib/InCharge /opt/InCharge71/MPLS/smarts/perl/5.8.0/lib/InCharge /opt/InCharge71/MPLS/smarts/perl/5.6.1/lib/InCharge /opt/InCharge71/MPLS/smarts/local/perl/5.8.0/lib/InCharge /opt/InCharge71/MPLS/smarts/local/perl/5.6.1/lib/InCharge /opt/InCharge8/SAM/smarts/perl/5.8.8/lib/InCharge /opt/InCharge8/SAM/smarts/perl/5.8.0/lib/InCharge /opt/InCharge8/SAM/smarts/perl/5.6.1/lib/InCharge /opt/InCharge8/SAM/smarts/local/perl/5.8.8/lib/InCharge /opt/InCharge8/SAM/smarts/local/perl/5.8.0/lib/InCharge /opt/InCharge8/SAM/smarts/local/perl/5.6.1/lib/InCharge /opt/InCharge8/CONSOLE/smarts/perl/5.8.8/lib/InCharge /opt/InCharge8/CONSOLE/smarts/perl/5.8.0/lib/InCharge /opt/InCharge8/CONSOLE/smarts/perl/5.6.1/lib/InCharge /opt/InCharge8/CONSOLE/smarts/local/perl/5.8.8/lib/InCharge /opt/InCharge8/CONSOLE/smarts/local/perl/5.8.0/lib/InCharge /opt/InCharge8/CONSOLE/smarts/local/perl/5.6.1/lib/InCharge /opt/InCharge8/NPM/smarts/perl/5.8.8/lib/InCharge /opt/InCharge8/NPM/smarts/perl/5.8.0/lib/InCharge /opt/InCharge8/NPM/smarts/perl/5.6.1/lib/InCharge /opt/InCharge8/NPM/smarts/local/perl/5.8.8/lib/InCharge /opt/InCharge8/NPM/smarts/local/perl/5.8.0/lib/InCharge /opt/InCharge8/NPM/smarts/local/perl/5.6.1/lib/InCharge /opt/InCharge8/IP/smarts/perl/5.8.8/InCharge /opt/InCharge8/IP/smarts/perl/5.8.8/lib/InCharge /opt/InCharge8/IP/smarts/local/perl/5.8.8/InCharge /opt/InCharge8/MPLS/smarts/perl/5.8.8/lib/InCharge /opt/InCharge8/MPLS/smarts/perl/5.8.0/lib/InCharge /opt/InCharge8/MPLS/smarts/perl/5.6.1/lib/InCharge /opt/InCharge8/MPLS/smarts/local/perl/5.8.8/lib/InCharge /opt/InCharge8/MPLS/smarts/local/perl/5.8.0/lib/InCharge /opt/InCharge8/MPLS/smarts/local/perl/5.6.1/lib/InCharge
davemalhotra
3 Posts
957
0
Posted March 27th, 2009 11:00
use sm_perl.