Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > missing perl module?

missing perl module?
Thread Tools
Grizzled Veteran
Join Date: Sep 2000
Location: The Basement
Status: Offline
Reply With Quote
Aug 21, 2003, 05:47 AM
 
I have a script that gives this error on mac os x:

Can't locate Socket.pm in @INC (@INC contains: /sw/lib/perl5 /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl .) at /Users/ckizer/Desktop/blq-1.23 line 19.


It works fine on other bsd systems, anyway i can set this up or install it? i don't know where to start.

I use the script to check if domains are blacklisted in SPAM databases.
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Aug 21, 2003, 09:20 AM
 
My system has it:

Code:
[dshaw@flybook ~] locate Socket.pm /System/Library/Perl/darwin-thread-multi/IO/Socket.pm /System/Library/Perl/darwin-thread-multi/Socket.pm /System/Library/Perl/darwin/IO/Socket.pm /System/Library/Perl/darwin/Socket.pm
Which perl are you running? (look at the path in your script, or if you are specifying it as simply "perl" do a "which perl" on the command line). Here is what I get:

Code:
[dshaw@flybook ~] which perl /usr/bin/perl [dshaw@flybook ~] /usr/bin/perl --version This is perl, v5.8.0 built for darwin-thread-multi
I'm running OSX 10.2.6 BTW.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Aug 21, 2003, 09:22 AM
 
there's always cpan, but i'm sure someone else might be able to actually tell you why it's giving you an error. maybe if you show some code?
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Aug 21, 2003, 09:24 AM
 
Originally posted by Arkham_c:
Which perl are you running?
his original post says /System/Library/Perl/5.8.1 in it. isn't that different from the standard install on OS X? isn't 5.8.0 the default install?
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Grizzled Veteran
Join Date: Sep 2000
Location: The Basement
Status: Offline
Reply With Quote
Aug 21, 2003, 10:15 AM
 
wierd, i'm running 10.3 beta on this copy and it appears it didn't copy over kernel stuff.

I'll look at it later.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:22 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2