加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

Perl模块安装错误CPAN

发布时间:2020-12-15 21:41:40 所属栏目:大数据 来源:网络整理
导读:当我尝试在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 /
当我尝试在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

我也尝试了以下更改.它没用.

o conf make /usr/bin/make
o conf commit

然后我尝试安装OLE-Storage_Lite,我得到了同样的错误.

解决方法

查看错误消息:
Can't exec "/usr/bin/make": No such file or directory at /usr/share/perl/5.14/CPAN/Distribution.pm line 2078.

make缺失.因此:安装make.

apt-get install build-essential

将为您提供编译软件所需的大部分内容.

I tried the following changes also

那些告诉CPAN它可以在/usr/bin/make找到make,错误信息已经告诉你它在那里不存在.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读