Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: Missing module perl

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


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

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.

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

    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:
    http://localhost:80/authors/01mailrc.txt.gz
    LWP failed with code500 messageCan't connect to localhost:80 (Connection refused)
    Trying with
    /bin/curl -L -f -s -S --netrc-optional
    to get
    http://localhost:80/authors/01mailrc.txt.gz
    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" >
    ".cpan/authors/01mailrc.txt.gz.tmp14740"")
    returned status 7 (wstat 1792), left
    .cpan/authors/01mailrc.txt.gz.tmp14740 with size 0

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

      Can't connect to localhost:80 (Connection refused)

      This means that there is no web server listening on localhost:80. Have you checked with your browser that you can connect to http://localhost:80? Is the web server process running?

      My suggestion is to eliminate the web server from the problem, by using file:// URLs instead of http:// URLs. If you want to make your local mirror available to more than one machine, using http as protocol is better, but then you will first need to configure the HTTP server appropriately.

      Configuring your HTTP server is not really a Perl problem.

      Maybe you can use CPAN::Mini::Webserver as your CPAN web server, but I have never done that.

        if i access http://localhost:80 isn't connect, but if i set http://my-ip-addres-vbox is work.

        I set file:// in urllist in cpan development ?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2019-09-23 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (278 votes). Check out past polls.

    Notices?