I met a problem when using CPAN on cygwin environment today.
---------------------------------------
operations-------------------------------------------------------
$ perl -MCPAN -e shell
CPAN: File::HomeDir loaded ok (v0.80)
cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support enabled
......
cpan[2]> install CPAN
......
Result: PASS
ANDK/CPAN-1.9301.tar.gz
/usr/bin/make test -- OK
Running make install
Prepending /cygdrive/c/Users/chenran/.cpan/build/CPAN-1.9301-SyhUB5/
blib/arch /cygdrive/c/Users/chen
ran/.cpan/build/CPAN-1.9301-SyhUB5/blib/lib to PERL5LIB for 'install'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/bin'
Do not have write permissions on '/usr/bin'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at -e line 1
make: *** [pure_perl_install] Error 2
ANDK/CPAN-1.9301.tar.gz
/usr/bin/make install -- NOT OK
----
---------------------------------------
operations-------------------------------------------------------
it seems that just "make install" isn't successful, what shall I do
next?
also I have enter the build dir "~/.cpan/build/CPAN-1.9301-SyhUB5" and
manually "make install", the error is the same:
chenran@rchen23 ~/.cpan/build/CPAN-1.9301-SyhUB5
$ make install
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/bin'
Do not have write permissions on '/usr/bin'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at -e line 1
make: *** [pure_perl_install] Error 2
--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛"PerlChina 论坛"论坛。
要在此论坛发帖,请发电子邮件到 perlchina@googlegroups.com
要退订此论坛,请发邮件至 perlchina+unsubscribe@googlegroups.com
更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---
没有评论:
发表评论