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

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

Is it possible?

10条回答
  •  迷失自我
    2021-02-01 21:45

    See here: How to install perl modules using CPAN without root

    I have just set this up on a server without root access and CPAN does everything automatically.

    But if you really wanna install a module without CPAN and you don't have root (assuming this since you don't wanna use CPAN), you can do it as follows

    perl Makefile.PL PREFIX=$HOME
    make
    make install
    

    You're gonna have to hunt down dependencies yourself so it's better to use CPAN.

提交回复
热议问题