[英]Perl Module install error CPAN
When i try to install Spreadsheet::WriteExcel perl module using cpan in ubuntu 12.04, i get this following error. 当我尝试在ubuntu 12.04中使用cpan安装Spreadsheet :: WriteExcel perl模块时,我收到以下错误。
> Can't exec "/usr/bin/make": No such file or directory at
> /usr/share/perl/5.14/CPAN/Distribution.pm line 2078.
> JMCNAMARA/OLE-Storage_Lite-0.19.tar.gz /usr/bin/make -- NOT OK
> 'YAML' not installed, will not store persistent state Running make
> test Can't test without successful make Running make install Make
> had returned bad status, install seems impossible Running make for
> J/JM/JMCNAMARA/Spreadsheet-WriteExcel-2.40.tar.gz Has already been
> unwrapped into directory
> /root/.cpan/build/Spreadsheet-WriteExcel-2.40-gJaT_A
>
> CPAN.pm: Going to build
> J/JM/JMCNAMARA/Spreadsheet-WriteExcel-2.40.tar.gz
>
> Warning: Prerequisite 'OLE::Storage_Lite => 0.19' for
> 'JMCNAMARA/Spreadsheet-WriteExcel-2.40.tar.gz' failed when processing
> 'JMCNAMARA/OLE-Storage_Lite-0.19.tar. 'make => NO'. Continuing, but
> chances to succeed are limited. Can't exec "/usr/bin/make": No such
> file or directory at /usr/share/perl/5.14/CPAN/Distribution.pm line
> 2078. JMCNAMARA/Spreadsheet-WriteExcel-2.40.tar.gz /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems
> impossible Failed during this command:
> JMCNAMARA/OLE-Storage_Lite-0.19.tar.gz : make NO
> JMCNAMARA/Spreadsheet-WriteExcel-2.40.tar.gz : make NO
I tried the following changes also. 我也尝试了以下更改。 It didn't work.
它没用。
o conf make /usr/bin/make
o conf commit
Then i tried installing OLE-Storage_Lite, i got the same kind of error. 然后我尝试安装OLE-Storage_Lite,我得到了同样的错误。
Look at the error message: 查看错误消息:
Can't exec "/usr/bin/make": No such file or directory at /usr/share/perl/5.14/CPAN/Distribution.pm line 2078.
make
is missing. make
缺失了。 Therefore: install make
. 因此:安装
make
。
apt-get install build-essential
Will get you most of what you need to compile software. 将为您提供编译软件所需的大部分内容。
I tried the following changes also
我也尝试了以下更改
Those tell CPAN that it can find make at /usr/bin/make
, the error message is already telling you that it doesn't exist there. 那些告诉CPAN它可以在
/usr/bin/make
找到make,错误信息已经告诉你它在那里不存在。
更容易的替代方案可能是:
$ sudo apt-get install libspreadsheet-writeexcel-perl
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.