环境:centos 5.10 安装系统时,没有选择软件依赖包,不少软件都没有安装。c++
如今须要安装软件,安装软件时报错:centos
make: *** 没有指明目标而且找不到 makefile。 中止。ide
缘由是由于没有执行./configureui
接下来执行 ./configure 报错:this
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
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... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details..net
缘由是缺乏c++编译器,也能够查看日志获得一些信息,日志
安装c++编译器,blog
yum install gcc-c++ 注意(有些是yum install g++ 可是5.10 的系统版本必定要用gcc-c++)get
这里要注意,安装过程当中有一个Is this ok [y/N]: 这里必定要输入一个y 不然会出错:编译器
Is this ok [y/N]: Exiting on user Command
Complete! 虽然完成了,可是尚未安装成功,再执行 ./configure 仍是报错。
安装完后,就能够了。
参考连接
:http://blog.163.com/haizhifeng6@126/blog/static/45615427201182712221960/