Hi all, I have just installed a fresh copy of mac OS X Server 10.1.3 and I have some Perl scripts which I would like to run using a Cron job on this machine.
I must confess, that I don't have that much experience yet using Perl, but maybe You can help me out here, and I might geet more experience... When I run my Perl script from the Terminal, I get the following error... ---- Can't locate LWP/Simple.pm in @INC (@INC contains: /Applications/4DWebSTAR/WebServer/perle /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl .) at /Applications/4DWebSTAR/WebServer/perle/stockpoint.pl line 7. BEGIN failed--compilation aborted at /Applications/4DWebSTAR/WebServer/perle/stockpoint.pl line 7. logout ---- It seem like it can't find the LWP/Simple.pm package, which probably isn't installed per default on Mac OS X Server. So what I thought was... A) Do I need to install a fresh copy of Perl from CPAN ? B) Do I only need to install the LWP/Simple.pm from CPAN ? If so, how can I find it at CPAN ? This might generate more questions, but I hope You can help me out here... I have already tried to make a fresh install from CPAN using (perl -MCPAN -e shell), but I get this error from the Terminal... --- Error: Unable to locate installed Perl libraries or Perl source code. It is recommended that you install perl in a standard location before building extensions. Some precompiled versions of perl do not contain these header files, so you cannot build extensions. In such a case, please build and install your perl from a fresh perl distribution. It usually solves this kind of problem. ---
