Question

I'd like to install Google::Chart module for perl, on ubuntu 12.10. If I try to install the module with the following command

cpanm Google::Chart

Error message:

--> Working on Google::Chart                                                                                                                                            
Fetching http://www.cpan.org/authors/id/D/DM/DMAKI/Google-Chart-0.05014.tar.gz ... OK                                                                                   
Configuring Google-Chart-0.05014 ... OK                                                                                                                                 
Building and testing Google-Chart-0.05014 ... FAIL                                                                                                                      
! Installing Google::Chart failed. See /root/.cpanm/work/1380032137.15804/build.log for details. Retry with --force to force install it.  

Log file:

#   Failed test 'use Google::Chart;'
#   at /root/.cpanm/work/1380031926.15351/Google-Chart-0.05014/inc/Test/UseAllModules.pm line 69.
#     Tried to use 'Google::Chart'.
#     Error:  Attempt to reload Google/Chart/Color.pm aborted.
# Compilation failed in require at lib/Google/Chart.pm line 9.
# BEGIN failed--compilation aborted at lib/Google/Chart.pm line 9.
# Compilation failed in require at (eval 350) line 2.
# BEGIN failed--compilation aborted at (eval 350) line 2.

#   Failed test 'use Google::Chart::Marker;'
#   at /root/.cpanm/work/1380031926.15351/Google-Chart-0.05014/inc/Test/UseAllModules.pm line 69.
#     Tried to use 'Google::Chart::Marker'.
#     Error:  Attempt to reload Google/Chart/Color.pm aborted.
# Compilation failed in require at lib/Google/Chart/Marker.pm line 68.
# BEGIN failed--compilation aborted at lib/Google/Chart/Marker.pm line 68.
# Compilation failed in require at (eval 378) line 2.
# BEGIN failed--compilation aborted at (eval 378) line 2.
Bailout called.  Further testing stopped:  failed: Google::Chart::Color,Google::Chart,Google::Chart::Marker
FAILED--Further testing stopped: failed: Google::Chart::Color,Google::Chart,Google::Chart::Marker
make: *** [test_dynamic] Error 255
-> FAIL Installing Google::Chart failed. See /root/.cpanm/work/1380031926.15351/build.log for details. Retry with --force to force install it.
Was it helpful?

Solution

Try:

cd /root/.cpanm/work/1380031926.15351/Google-Chart-0.05014/ (or wherever it's been unwrapped)
perl Makefile.PL
make && make install
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top