安装程序时遭遇问题,UBUNTU下,编译情况如下,求大神帮助
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
configure: ———————————————–
configure: reading configure.user for your custom settings
configure: ———————————————–
checking for icc… no
checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking for icpc… no
checking for g++… no
checking for c++… no
checking for cxx… no
checking for xlC… no
checking whether we are using the GNU C++ compiler… no
checking whether g++ accepts -g… no
checking for g++… not found
configure: error: No C++ compiler found — one is required to build OMNeT++/OMNEST, and also for model development.
没有相关的编译工具吧
安装build-essential先
大哥呀,你没装g++呢
sudo apt-get install g++
使用ubuntu的同志们,建议安装系统后第一件事就是安装必要的开发工具,如gcc、g++等等。
具体命令见1、2楼。
必要的开发工具没有安装。
sudo apt-get install build-essential gcc g++ libc-devel
呵呵这个问题。。。。
编译器都没装
g++?这是什么东东?
sudo apt-get install build-essential
应该就可以了
呵呵,同上,debian系的都没有装开发套件,上面的命令就可以
- Perl code
sudo apt-get install build-essential
sudo get-apt install g++