2013-04-09 39 views
0

我嘗試從cpan安裝SimpleDB :: Class作爲sudo cpan SimpleDB :: Class。它需要一個依賴Memcached :: libmemcached。所以我嘗試安裝它,但它有以下錯誤。安裝SimpleDB時出錯:: Class

CCLD clients/memstat 
CC  tests/atomsmasher.o 
CCLD tests/atomsmasher 
CXX tests/tests_hashplus-hash_plus.o 
./config/depcomp: line 611: exec: g++: not found 
make[2]: *** [tests/tests_hashplus-hash_plus.o] Error 127 
make[2]: Leaving directory `/home/vanitha/.cpan/build/Memcached-libmemcached-0.4406- Oq4Z_m/src/libmemcached' 
make[1]: *** [install-recursive] Error 1 
make[1]: Leaving directory `/home/vanitha/.cpan/build/Memcached-libmemcached-0.4406- Oq4Z_m/src/libmemcached' 
make: *** [install] Error 2 
Unable to build libmemcached: Error running cd src/libmemcached && make install 

Aborted. 
No 'Makefile' created TIMB/Memcached-libmemcached-0.4406.tar.gz 
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK 
Running make test 
Make had some problems, won't test 
Running make install 
Make had some problems, won't install 
could not read metadata file. Falling back to other methods to determine prerequisites 

回答

1

exec: g++: not found - 這是錯誤

試試這首先:sudo apt-get install g++

+0

謝謝你的工作 – 2013-04-12 04:39:51