I'm having trouble here too. I want to use LWP and GD.pm but neither are
included in OSX's perl :(

I tried to use cpan to install LWP as part of the CPAN bundle but had
trouble there too. It said it was already installed and asked if I wanted to
update or modify it. I chose "yes" and then proceeded on.

I then ran this simple perl script which runs fine in OS9 with macperl:
______________________________________
#!/usr/bin/perl

print "Content-type: text/html\n\n";

use LWP::Simple;

$url = "http://www.ams.usda.gov/mnreports/JC_LS758.txt";

getprint($url);

exit;
______________________________________

and got this error:
______________________________________

Can't locate LWP/Simple.pm in @INC (@INC contains:
/System/Library/Perl/darwin /
System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl
/Network/Li
brary/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at
/Library/Web
Server/CGI-Executables/get3.cgi line 8.
BEGIN failed--compilation aborted at
/Library/WebServer/CGI-Executables/get3.cgi
 line 8.
[Wed Mar 28 11:48:18 2001] [error] [client 192.168.1.103] Premature end of
scrip
t headers: /Library/WebServer/CGI-Executables/get3.cgi
^C
[localhost:var/log/httpd] bill%
______________________________________


So, I reinstalled OSX this morning using the "Unix File System" and without
OS9.

Ran the script again and got the same error.

I'm going to try and install LWP again and see what happens. If anyone has
some clues or tips on installing modules, Please, please, post them!!

-- 

Bill Stephenson


on 3/27/01 4:45 PM, Charles Albrecht at [EMAIL PROTECTED] wrote:

> The easiest approach (in general) is to start with CPAN.
> 
> % perl -MCPAN -e shell
> 
> That may not solve the problem, though. Have you installed the developer's
> tools?



Reply via email to