Error installing Perl CPAN module

When I try to install Spreadsheet :: WriteExcel perl module using cpan in ubuntu 12.04, I get the following error.

> 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 also tried the following changes. This did not work.

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

Then I tried to set OLE-Storage_Lite, I got the same error.

+8
perl cpan
source share
2 answers

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 missing. Therefore: install make .

 apt-get install build-essential 

You will get most of what you need to compile the software.


I also tried the following changes:

Those tell CPAN that it can find make in /usr/bin/make , the error message already tells you that it does not exist there.

+20
source share

A simpler alternative is possible:

 $ sudo apt-get install libspreadsheet-writeexcel-perl 
+1
source share

All Articles