Benches macOS

3

Installing Perl modules, LWP module

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Is there a list of Perl modules installed by default (Mac OS X Server 10.4.10, PowerPC) ?

I ask because it seems that at least LWP module isn't installed completely - it tells me this:

fatal error: Can't locate LWP/UserAgent.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .) at /Users/starenterprise/website/mailings/nph-grab.cgi line 361.

What is the easiest way to check existence of LWP (and other modules) ?

How can I (re-)install LWP and other modules fool-proof ? Using "cpan" utility from command line ?

3 replies

Sign in or join Beachball Help to reply.

  1. 0

    Camelot

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    LWP may be installed. That's not what it's complaining about. It's complaining about UserAgent.pm, a subcomponent.

    You can install this via CPAN, but you may need the developer tools installed to get the compilers, etc. You can get the developer tools from
    Apple's Developer Site after free registration.

    To install UserAgent, try:

    <pre class=command>sudo perl -MCPAN -e 'install LWP::UserAgent'</pre>

  2. 0

    tobias Eichner

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for your reply. I will give it a try.

    Do you know if there is a way to list all installed Perl modules (and their versions) ?

  3. 0

    tobias Eichner

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Finally, success 🙂

    However I needed to install (via CPAN) LWP::Bundle since Apple seems to have forgot the entire LWP module (can't it be considered as a default module in every Perl installation ?).

    I first tried to just install LWP, but this ended up in an error (as far as I understood, the test script used a non-existing module and so I either had to install it completely or force install).

    Maybe it helps somebody dealing with the same issue 🙂