2014-04-25 18 views
8

Quando provo a installare il modulo Spreadsheet :: WriteExcel perl utilizzando cpan in ubuntu 12.04, viene visualizzato il seguente errore.Errore di installazione del modulo Perl CPAN

> 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 

Ho provato anche le seguenti modifiche. Non ha funzionato.

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

Quindi ho provato a installare OLE-Storage_Lite, ho lo stesso tipo di errore.

risposta

20

Guardate il messaggio di errore:

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

make manca. Pertanto: installare make.

apt-get install build-essential 

Otterrete la maggior parte di ciò che è necessario per compilare il software.


Ho provato le seguenti modifiche anche

Quelli dicono CPAN che si può trovare a fare al /usr/bin/make, il messaggio di errore è già dicendo che non esiste là.

+0

Grazie per la spiegazione e ha funzionato !!! – Saravanan

1

Un'alternativa più semplice è probabilmente:

$ sudo apt-get install libspreadsheet-writeexcel-perl 
+0

Esiste una lista pubblicata che "traduce" tra i nomi dei pacchetti deb/apt e quelli CPAN? E qualche altro lato negativo nel farlo in questo modo? Che ne dici di mescolare i due? – HansBKK

+1

Non una lista, ma una regola. Converti il ​​nome in minuscolo, metti 'lib' nella parte anteriore del nome e '-perl' alla fine. –

Problemi correlati