[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 465
  • Last Modified:

can't run socket connection script on sco unix

   I've written a socket connection script.  It runs on solaris but it won't work on SCO Unix .  It gives me error message:

Can't locate Socket.pm in @INC (@INC contains: /usr/local/lib/perl5/5.005/i486-p
c-sco3.2v5.0 /usr/local/lib/perl5/5.005 /usr/local/lib/perl5/site_perl/5.005/i48
6-pc-sco3.2v5.0 /usr/local/lib/perl5/site_perl/5.005 .) at ./client2.pl line 5.
BEGIN failed--compilation aborted at ./client2.pl line 5.              

Can somebody help me with this or is there any documantation for perl on sco?          
1 Solution
This means that your instalation of perl does not include the module necessary (Socket.pm)  Use the Cpan module and install it or ask your sys admin to do it.  At worst give this a try...(no gurantees):

Locate the module socket.pm on the server where this script works.  Copy it to the server which doesn't work and leave it in the same folder as other modules that is -

c-sco3.2v5.0 /usr/local/lib/perl5/5.005 /usr/local/lib/perl5/site_perl/5.005/i48
6-pc-sco3.2v5.0 /usr/local/lib/perl5/site_perl/5.005 .

I that still fails copy it to the folder where your script that you are running is located.  Then add this line of code:

push(@INC, "./");

BEFORE the line

use socket.pm

If all this fails you have to have the module instaled.
fareezaaAuthor Commented:
Thanks for the reply.  I've installed cgi.pm and now it runs!

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now