Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^3: Missing module perl

by Corion (Pope)
on Aug 21, 2019 at 08:19 UTC ( #11104786=note: print w/replies, xml ) Need Help??

in reply to Re^2: Missing module perl
in thread Missing module perl

And how exactly does this fail for you? It is hard to diagnose your situation if you don't tell us what it is.

Replies are listed 'Best First'.
Re^4: Missing module perl
by ridwan (Initiate) on Aug 21, 2019 at 08:48 UTC

    I'm sorry don't tell u detail problem. I try tell u more.

    Condition :

    I have a development machine(and this is virtualmachine and linux, i access it with putty and winscp) and in this machine i want to i install perl. problem is, in this machine doesn't have connection internet. and there's some module perl doesn't install

    I make a vbox, and wanna become a repo cpan for a development machine

    In vbox, I make file "minicpanrc" "minicpanmirror" and directory (/root/minicpanrc)

    local: /minicpanmirror
    remote: http://mirror.0x.sq/CPAN/
    exact_mirror: 1

    and i make a folder "minicpanmirror" and directory and (/var/www/html/minicpanmirror)

    in the folder that contains CPANMINI

    and in development machine, i set cpan urllist like this(in shell cpan):

    urllist :
    [0] http://MY IP ADDRRESS REPO/minicpanmirror

    and i set virtual host(httpd.conf) in dev machine like this :

    <VirtualHost localhost:80>
    DocumentRoot "/var/www/html/minicpanmirror"
    <Directory "/var/www/html/minicpanmirror">
    AllowOverride All

    but i try install depedency cpan in development machine is doesn't work
    Can u help me ? :"(

      Yes, but without seeing the error messages of cpanm or however you are trying to install things, I don't know how to better help you.

      <Directory "/var/www/html/minicpanmirror">

      This looks wrong if your cpan mirror lives in /root/minicpanmirror or /minicpanmirror (as your other configuration claims.

      Also, your web server listens on localhost:80, but your urllist lists http://my ip address/. It should be http://localhost:80.

      Again, without the error messages, it is really hard for us to tell where exactly things go wrong.

      Personally, I would avoid using a web server. CPAN and cpanminus can use a local file system just as well, and you won't have to fight with a web server in between. But we've already shown you the suggested configuration and documentation on how to do that, so I don't know how to help you better here.

        I'm sorry don't tell u error. I've been change to : http://localhost:80

        and error is :

        cpan7> install Email::Sender
        Fetching with LWP:
        LWP failed with code500 messageCan't connect to localhost:80 (Connection refused)
        Trying with
        /bin/curl -L -f -s -S --netrc-optional
        to get
        curl: (7) Failed connect to localhost:80; Connection refused
        Function system("/bin/curl -L -f -s -S --netrc-optional "http://localhost:80/authors/01mailrc.txt.gz" >
        returned status 7 (wstat 1792), left
        .cpan/authors/01mailrc.txt.gz.tmp14740 with size 0

        Do you any idea to install missing module ? :"(

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11104786]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2020-02-21 03:54 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (93 votes). Check out past polls.