2013-04-09 133 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