Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

installing missing perl modules

by sibasankar (Initiate)
on Oct 12, 2012 at 05:16 UTC ( #998597=perlquestion: print w/replies, xml ) Need Help??
sibasankar has asked for the wisdom of the Perl Monks concerning the following question:

Hi, My assignment is to install and configure Bugzilla on my system. My OS is windows7. I have already installed the required softwares like Apache Web Server, MySql. They are running. I have installed Strawberry Perl(V5.16.1) on my system. When I check if the installed Perl has all required modules on my system, I get messages that some required modules like Email::SEND, Email::MIME and Math::Random::ISSAC are missing. My next step is to install these missing modules by executing "perl.exe --all." But I get errors like "

LWP failed with code[500] message[Can't connect to cpan.strawberryperl (Bad hostname)] Warning: no success downloading 'C:\strawberry\cpan\source\authors\01m +ailrc.txt.gz.tmp4864'. Giving up on it. Fetching with LWP: LWP failed with code[500] message[Can't connect to (Ba +d hostname)] Warning: no success downloading 'C:\strawberry\cpan\source\authors\01m +ailrc.txt.gz.tmp4864'. Giving up on it. Warning: no success downloading 'C:\strawberry\cpan\source\authors\01m +ailrc.txt.gz.tmp4864'. Giving up on it
" I am not able to proceed from this point. Can you guide me how to solve this.

Replies are listed 'Best First'.
Re: installing missing perl modules
by davido (Archbishop) on Oct 12, 2012 at 05:41 UTC

    Have you tried this?

    $ cpan Math::Random::ISSAC $ cpan Email::MIME $ cpan Email::Send

    Hit enter (accept the defaults) for the questions that come up the first time through, unless you have some idea of why you might not want to accept the default. Oh, and although Windows isn't terribly case-sensitive, the CPAN installers (and Perl) are, so you do need to pay attention to how module names are capitalized.

    Strawberry Perl should be able to use the cpan installer without too much trouble. At least it does for me when I'm working with Windows.

    Individual modules may present challenges of their own. But at least for the ones you've mentioned, I don't believe they present any unusual difficulties for Windows users.


      Thank you for quick reply. I tried the command you have suggested. But I am getting the following error.

      Catching error: "Can't locate object method \"Send\" via package \"Ema +il\" (perhaps you forgot to load \"Email\"?) at C:/strawberry/perl/li +b/ line 376, <IN> line 1.\cJ" at C:/strawberry/perl/lib/CPAN.p +m line 392, <IN> line 1. CPAN::shell() called at C:/strawberry/perl/lib/App/ lin +e 338 App::Cpan::_process_options('App::Cpan') called at C:/strawber +ry/perl/lib/App/ line 421 App::Cpan::run('App::Cpan') called at C:\strawberry\perl\bin/c +pan line 10
Re: installing missing perl modules
by agentorange (Sexton) on Oct 12, 2012 at 09:34 UTC

    Silly and obvious question but can you resolve "" or "" from the command line with nslookup?

    What happens if you go to or via your browser? You say "assignment" so are you behind a proxy/firewall at school/college? If so take a look at using LWP behind a proxy.

    In order of likelihood this looks like either:

    a name resolution issue. ie. /etc/hosts or nslookup
    you're behind a proxy and need to add the proxy server to your code
    or possibly your timing out in which case set $ua->timeout() but don't think that is your problem.

      Thank you for your reply. I am behind the firewall of my company. But If I directly use the URL, I am able to download 01mailrc.txt.gz. So is it possible if I use the downloaded file? If yes, do I need to modify any config file?

        No, do this properly by configuring your cpan client to work from behind your firewall. See CPAN for details or speak to your systems/network administrator.

        Update: fixed typo in link.

        On one hand, you can download the tarballs of modules directly from CPAN and manually install them. The problem comes when modules have prerequisite modules that you don't have. For example, let's say you want to install module #1. However, module #1 needs module #2 & #3, which you don't have. So you download those for install. However, module #2 needs module #4, which you don't have. See how this can easily become a painful process?

        If you use the cpan utility, it will detect and install the needed prerequisite modules, which will make things much easier for you.

        Since you're behind a corporate firewall, you're probably also sitting behind an HTTP proxy and/or an FTP proxy as well. The documentation link in marto's reply should get you started on what you need to do to get the cpan utility working with those proxy and firewall servers.

        As marto said the best/correct fix is to configure cpan with a proxy. Your proxy info should be in your browser or best speak with your network team.

        Firefox. tools-options-advanced-network-settings
        IE. tools-internet options-connections-lan settings
        Chrome... don't have to hand! :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://998597]
Approved by tobyink
and the grasshoppers chirp...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2018-02-21 22:14 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (288 votes). Check out past polls.