Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl 5.003.0 on Solaris 8

Status
Not open for further replies.

danie11e

IS-IT--Management
Sep 19, 2002
3
US
Hi All,

I'm having a problem executing a script that uses Perl 5.003.0 binary and libraries on a Solaris 8 system. I tested the script on it's original Solaris 5.5 system and works fine. This is the error message I get when I run it on the Solaris 8 system: Can't locate lib.pm in @INC. Is there a compatibility issue between Solaris 8 and 5.003.0/Solaris 5.5? I'd appreciate any and all help. Thanks.
 
This sounds like a problem with the Perl installation on the Solaris 8 machine. Try the following:

Run 'which perl' to find out the path to Perl. This path will be used in the first line of the script below.

Put the following in a script script (your first line may be different):
#!/usr/bin/perl
print "@INC\n";

This script should print out something like this:
/usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/su
n4-solaris /usr/perl5/site_perl/5.005 .

The "lib.pm" file should be in one of these directories. On my SunOS system, lib.pm is in /usr/perl5/5.00503
 
Thanks Raider...but, the script specifies a different version of perl than the default Solaris 8 install.

In my script, I've specified the binary and the library.
#!/home/sunos-5.5/local/bin/perl
use lib "/home/sunos-5.5/local/lib/perl5";

When I run this script on a Solaris 5.5 system, it runs fine.

However on the Solaris 8 system, I get: Can't locate lib.pm in @INC message. "lib.pm" is in the /home/sunos-5.5/local/lib/perl5 directory though...hmmmm

Let me know what you think about this.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top