Tôi chưa quen với Ubuntu và vì một số lý do tôi không thể cài đặt bất kỳ mô-đun Perl nào. Đây là lần thử cài đặt mô-đun đầu tiên của tôi, tôi tin rằng, đã sửa lỗi này và nó sửa phần còn lại. Hy vọng!
$ cpanm AnyEvent
Can't write to /usr/local/share/perl/5.26.1 and /usr/local/bin: Installing modules to /home/cougar/perl5
To turn off this warning, you have to do one of the following:
- run me as a root or with --sudo option (to install to /usr/local/share/perl/5.26.1 and /usr/local/bin)
- Configure local::lib in your existing shell to set PERL_MM_OPT etc.
- Install local::lib by running the following commands
cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
--> Working on AnyEvent
Fetching http://www.cpan.org/authors/id/M/ML/MLEHMANN/AnyEvent-7.15.tar.gz ... OK
==> Found dependencies: Canary::Stability
--> Working on Canary::Stability
Fetching http://www.cpan.org/authors/id/M/ML/MLEHMANN/Canary-Stability-2013.tar.gz ... OK
Configuring Canary-Stability-2013 ... OK
Can't configure the distribution. You probably need to have 'make'. See /home/cougar/.cpanm/work/1559943124.9523/build.log for details.
Installing the dependencies failed: Module 'Canary::Stability' is not installed
Bailing out the installation for AnyEvent-7.15.
Xin vui lòng giúp đỡ!
libanyevent-perl
)?