![](/img/trans.png)
[英]cpanm perl module installation failed on 'make' and 'make test'
[英]Error while installing perl module using cpanm
我正在使用perlbrew和cpanm。 做cpanm Test::More
我得到以下內容:
--> Working on Test::More
Fetching http://10.64.0.7:8002/authors/id/L/LO/LOCAL/Test-Simple-1.001003.tar.gz ... OK
Configuring Test-Simple-1.001003 ... OK
Building and testing Test-Simple-1.001003 ... OK
Successfully installed Test-Simple-1.001003 (upgraded from 0.98)
cannot unlink file for /home/hamid/.cpanm/work/1406642140.19670/build.log: Permission denied at /loader/0x1bdc0a8/App/cpanminus/script.pm line 99
cannot restore permissions to 0100644 for /home/hamid/.cpanm/work/1406642140.19670/build.log: Permission denied at /loader/0x1bdc0a8/App/cpanminus/script.pm line 99
cannot remove directory for /home/hamid/.cpanm/work/1406642140.19670: Directory not empty at /loader/0x1bdc0a8/App/cpanminus/script.pm line 99
1 distribution installed
任何人都可以告訴我為什么我得到了; cannot unlink file, cannot restore permissions and cannot remove directory
錯誤?
更改/home/hamid/.cpanm/work
上的權限/home/hamid/.cpanm/work
是解決問題的明智解決方案?
謝謝
您可能在某個時間以root身份運行cpanm
並通過這樣做更改了本地目錄中的權限。 你可以解決這個問題:
sudo chown -R hamid:hamid ~/.cpanm
然后它應該再次正常工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.