簡體   English   中英

需要安裝Spreadsheet :: ParseExcel的幫助

[英]Need help installing Spreadsheet::ParseExcel

我正在嘗試安裝Spreadsheet :: ParseExcel以與ExcelLatex一起使用。 這就是我做的:安裝Active Perl,然后通過perl -MCPAN -e shell安裝CPAN.pm我被要求配置和鏡像站點,我讓perl進行auoconfoguration。 最后,我收到以下消息: Autoconfiguration complete. 然后我試過: perl -MCPAN -e 'install "Spreadsheet::WriteExcel"'它試圖安裝它但最后我得到了以下錯誤:

ERROR: Can't create '/Library/Perl/5.12/Spreadsheet'
mkdir /Library/Perl/5.12/Spreadsheet: Permission denied at     /System/Library/Perl/5.12/ExtUtils/Install.pm line 494

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at -e line 1
make: *** [pure_site_install] Error 13
  JMCNAMARA/Spreadsheet-WriteExcel-2.37.tar.gz
  /usr/bin/make install  -- NOT OK

我真的很感激,請幫助我如何解決問題

它試圖在根目錄中創建一個目錄(mkdir /Library/Perl/5.12/Spreadsheet)

你必須是root才能做到這一點。

您可以使用PerlBrewlocal :: lib將perl庫安裝到您的主目錄中。

  # Install Spreadsheet::WriteExcel and its missing dependencies to the '~/perl5' directory
  perl -MCPAN -Mlocal::lib -e 'CPAN::install(Spreadsheet::WriteExcel)'

  # Just print out useful shell commands
  $ perl -Mlocal::lib
  export PERL_MB_OPT='--install_base /home/username/perl5'
  export PERL_MM_OPT='INSTALL_BASE=/home/username/perl5'
  export PERL5LIB='/home/username/perl5/lib/perl5/i386-linux:/home/username/perl5/lib/perl5'
  export PATH="/home/username/perl5/bin:$PATH"
  #create a environment setting script and execute it.
  perl -Mlocal::lib > ~/.setenv && . ~/.setenv

問候,

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM