0

我尝试从 cpan 安装 SimpleDB::Class 作为 sudo cpan SimpleDB::Class。它需要一个依赖 Memcached::libmemcached。所以我尝试安装它,但它有以下错误。

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
4

1 回答 1

1

exec: g++: not found- 这是错误

首先试试这个:sudo apt-get install g++

于 2013-04-09T05:04:11.300 回答