[英]Install problems with Spreadsheet::ParseExcel
我試圖從CPAN安裝Spreadsheet :: ParseExcel並遇到一些問題。 我之前安裝了其他軟件包沒有問題。
我首先嘗試了cpanm Spreadsheet::ParseExcel
,但它最終在構建和測試階段失敗了。
然后我下載了源代碼並做了perl Makefile.PL
但后來告訴我找不到Crypt :: RC4 0並且找不到Digest :: Perl :: MD5 0。
我已經安裝了這兩個,以及ParseExcel所有其他列出的必需模塊,但我仍然繼續得到關於這兩個包的錯誤。
我可能安裝了兩個Perl版本。 我在嘗試安裝這個軟件包之前昨天用cpanm安裝了最新的5.14.1,但是當我運行perl -v
我發現它仍然是5.10.0。
以下是cpanm Spreadsheet::ParseExcel
的輸出
N01-0053-__MB:Spreadsheet-ParseExcel-0.59 jerickson$ cpanm Spreadsheet::ParseExcel ! ! Can't write to /Library/Perl/5.10.0 and /usr/local/bin: Installing modules to /Users/jerickson/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 /Library/Perl/5.10.0 and /usr/local/bin) | - run me with --local-lib option e.g. cpanm --local-lib=~/perl5 ! - Set PERL_CPANM_OPT="--local-lib=~/perl5" environment variable (in your shell rc file) ! - Configure local::lib in your shell to set PERL_MM_OPT etc. ! --> Working on Spreadsheet::ParseExcel Fetching http://search.cpan.org/CPAN/authors/id/J/JM/JMCNAMARA/Spreadsheet-ParseExcel-0.59.tar.gz ... OK Configuring Spreadsheet-ParseExcel-0.59 ... OK ==> Found dependencies: Crypt::RC4, Digest::Perl::MD5 --> Working on Crypt::RC4 Fetching http://search.cpan.org/CPAN/authors/id/S/SI/SIFUKURT/Crypt-RC4-2.02.tar.gz ... OK Configuring Crypt-RC4-2.02 ... OK Building and testing Crypt-RC4-2.02 ... OK Successfully installed Crypt-RC4-2.02 --> Working on Digest::Perl::MD5 Fetching http://search.cpan.org/CPAN/authors/id/D/DE/DELTA/Digest-Perl-MD5-1.8.tar.gz ... OK Configuring Digest-Perl-MD5-1.8 ... OK Building and testing Digest-Perl-MD5-1.8 ... OK Successfully installed Digest-Perl-MD5-1.8 Building and testing Spreadsheet-ParseExcel-0.59 ... FAIL ! Installing Spreadsheet::ParseExcel failed. See /Users/jerickson/.cpanm/build.log for details. 2 distributions installed
任何幫助或建議表示贊賞! 謝謝!
傑夫
由於路徑設置, perl -v
顯示5.10.0。 例如,如果您鍵入which perl
它將顯示Perl 5.10安裝的路徑。
cpanm也嘗試使用perl 5.10安裝:
Can't write to /Library/Perl/5.10.0
這意味着權限問題,我猜你的jerickson用戶沒有對/Library/Perl/5.10.0的寫訪問權。
快速解決方法是使用完整路徑調用cpan以進行perl 5.14.1安裝,因此無論你安裝perl / bin / cpan還是安裝Spreadsheet :: ParseExcel。
+10做正確的事情,不要亂用系統Perl。 明智的選擇先生。
解決此問題的更長時間是調查PerlBrew和cpanm:
http://qa.celogeek.com/programming/perl/for/developer/overview
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.