image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old September 18th, 2002, 03:46 PM
Registered User
 
Join Date: Mar 2002
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
ksignorini is on a distinguished road
Perl question - need LWP.pm

I am trying to run a small Perl script that requires LWP.pm to be installed (which I don't think it is) on Jaguar.

How would I got about installing this module? Can I install all of the libwww-perl stuff from here (http://www.linpro.no/lwp/) and if so, which version?

I am new to Perl so I don't know anything about what I have to do to get this running. Please be specific with instructions if you can help me.

Thanks so much,
Kent!
Reply With Quote
  #2  
Old September 18th, 2002, 04:55 PM
vvvvjvvvyvvtvv
 
Join Date: Nov 2000
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
kwalker is on a distinguished road
Use CPAN module

It's probably easiest to use the CPAN module to install LWP and other modules. Start by typing 'sudo perl -MCPAN -eshell' in the terminal. Then 'install LWP' at the CPAN prompt. You might want to read the CPAN section of http://developer.apple.com/internet/macosx/perl.html first.
Reply With Quote
  #3  
Old September 18th, 2002, 05:04 PM
Registered User
 
Join Date: Mar 2002
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
ksignorini is on a distinguished road
Thanks so much.

I will try that.

Kent!
Reply With Quote
  #4  
Old September 18th, 2002, 05:18 PM
Registered User
 
Join Date: Mar 2002
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
ksignorini is on a distinguished road
I get an error that MIRRORED.BY cannot be downloaded and then the CPAN access stops.

The final few lines of the ftp for finding the MIRRORED.BY file looks like this:

230-
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
usage: lcd [local-directory]
250 CWD command successful.
250 CWD command successful.
250-Please read the file README
250- it was last modified on Sun May 26 14:04:56 2002 - 115 days ago
250-Please read the file README.html
250- it was last modified on Fri Aug 30 13:52:18 2002 - 19 days ago
250 CWD command successful.
200 Type set to I.
local: MIRRORED.BY remote: MIRRORED.BY
500 'EPSV': command not understood.
227 Entering Passive Mode (142,132,1,82,181,76)
150 Opening BINARY mode data connection for MIRRORED.BY (119296 bytes).
100% |*************************************| 116 KB 71.16 KB/s 00:00 ETA
226 Transfer complete.
119296 bytes received in 00:01 (67.89 KB/s)
221-You have transferred 119296 bytes in 1 files.
221-Total traffic for this session was 121660 bytes in 1 transfers.
221-Thank you for using the FTP service on theoryx5.uwinnipeg.ca.
221 Goodbye.
Bad luck... Still failed!
Can't access URL ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.

Please check, if the URLs I found in your configuration file () are valid.
The urllist can be edited. E.g. with ``o conf urllist push ftp://myurl/''

Cannot fetch MIRRORED.BY

You have no
I'm trying to fetch one
Usage: ->localize(cpan_file,as_local_file[,3]) at /System/Library/Perl/CPAN/FirstTime.pm line 369


I just used the default answers for the questions about accessing CPAN.

Any idea how to fix this?

Thanks,
Kent!
Reply With Quote
Reply

Thread Tools

Posting 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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch create a phpBB smilies .pak by filenames in "./" (AppleScript or Perl question) michaelsanford Mac OS X System & Mac Software 0 September 27th, 2003 07:30 PM
Great PERL book. michaelsanford Software Programming & Web Scripting 2 March 13th, 2003 08:24 AM
perl question holmBrew Software Programming & Web Scripting 1 October 9th, 2002 10:18 AM
Anyone know Perl? Help me with HTML templates? Jasoco Design & Media 2 March 18th, 2002 05:42 PM
Dumb perl question karavite Software Programming & Web Scripting 2 February 11th, 2002 11:05 AM


All times are GMT -5. The time now is 01:43 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.