How can I install Perl module without using CPAN.pm?

后端 未结 10 1582
庸人自扰
庸人自扰 2021-02-01 21:27

Is it possible?

10条回答
  •  星月不相逢
    2021-02-01 21:36

    If you're asking this because you're having problems with CPAN... you're probably running out of RAM that's why you can't use CPAN.

    Maybe you don't have a swap file. Try this:

    $ sudo su
    # dd if=/dev/zero of=/swap bs=1M count=1k # create a 1GB file
    # mkswap /swap
    # swapon /swap
    

    Otherwise... stop some services.

    $ sudo service mysql stop
    $ sudo service nginx stop
    

    ...And try again

    $ cpan install CPAN
    $ cpan install MIME::Lite::TT::HTML
    

提交回复
热议问题