views:

158

answers:

2

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
+2  A: 

Install the build-essential packages via apt.

sudo apt-get install build-essential
Ignacio Vazquez-Abrams
Hi Ignacio Vazquez-Abrams, I did sudo apt-get install build-essential and I could build the cmake and eventually use to build the OpenCV as well. Thanks.
vikramtheone
A: 

You are doing it completely wrong. NEVER, EVER, EVER, EVER install anything from source code, unless you are a Linux guru (in which case, you wouldn't ask this type of question).

Always use the package manager. In Ubuntu its the commandline apt-get with the synaptic graphic frontend.

Let_Me_Be
Thanks for your advice, will take care in the future, but I think you should have posted it as a comment and not as an answer.
vikramtheone