下面这个错误是因为没有安装g++

 
$ ./configure --prefix=/data1/mooon/run
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
./configure: line 2747: -g: command not found
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether the C++ compiler works... no
configure: error: in `/data1/mooon/src/common_library/src':
configure: error: C++ compiler cannot create executables
See `config.log' for more details

 
执行“$ sudo apt-get install g++”成功安装后,问题即可解决