本文介绍了如何在Linux ubuntu中设置C ++环境变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚在Windows上的Virtualbox上安装了Ubuntu。
我试图安装cmake,cmake网站上的安装指南要求我执行以下步骤: / p>
./ bootstrap
pre>
make
make install
但是当我刚刚执行
./ bootstrap
命令时,我得到以下错误列表,我怎么可以在我的系统上设置C ++编译器。因为我刚刚安装了Ubuntu,可能目前没有设置C ++。
请帮忙。
CMake 2.8.1,版权所有2000-2009 Kitware,Inc.
此系统上的C编译器为:cc
引导时出错CMake:
在此系统上找不到合适的C ++编译器。
请使用环境变量CXX指定一个。
对于编译器尝试,请参阅cmake_bootstrap.log。
错误日志:/home/vikboy/Downloads/cmake-2.8.1/Bootstrap.cmk/cmake_bootstrap.log
解决方案通过apt安装
build-essential
包。sudo apt-get install build-essential
I just installed Ubuntu on my Virtualbox on Windows.
I was trying to install cmake and the installation guide in the cmake website asked me to do the following steps
./bootstrap make make install
But when I just did the
./bootstrap
command I get the following list of errors, can anyone suggest me how I can set the C++ compiler on my system. As I just installed Ubuntu perhaps the C++ is not set currently.Kindly help.
CMake 2.8.1, Copyright 2000-2009 Kitware, Inc. C compiler on this system is: cc Error when bootstrapping CMake: Cannot find appropriate C++ compiler on this system. Please specify one using environment variable CXX. See cmake_bootstrap.log for compilers attempted. Log of errors: /home/vikboy/Downloads/cmake-2.8.1/Bootstrap.cmk/cmake_bootstrap.log解决方案Install the
build-essential
packages via apt.sudo apt-get install build-essential
这篇关于如何在Linux ubuntu中设置C ++环境变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!