[FIX] cmake "CMAKE_CXX_COMPILER-NOTFOUND" error

If you come across this error while using cmake to build from source:

CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

It means that you don't have the build tools installed (the g++ in this case).

Fix

Open a terminal window and run:

sudo apt-get install build-essential -y

References

How to fix cmake "CMAKE_CXX_COMPILER-NOTFOUND" error

Comments

  1. ty this helped very much, Ubuntu 12.04 just incase any one needs to know :)

    ReplyDelete
  2. Thank you very much! I has this trouble and it was solutioned with your help.

    ReplyDelete
  3. Thanks! Working in Ubuntu 12.04.

    ReplyDelete
  4. i don't always make comment, but this is really helpful. thanks!

    ReplyDelete
  5. It helps me a lot to install mysql-5.6.10 from source.

    -Sourav

    ReplyDelete
  6. thanks man! this is really helpful !!!!!

    ReplyDelete
  7. Thank you very much..this solution works as magic.

    ReplyDelete
  8. When I tried this, it got stuck at 0% [Waiting For Headers]. How to proceed further?

    ReplyDelete
    Replies
    1. Try sudo apt-get update
      Which Xubuntu version are you running?

      Delete
  9. Thanks! Worked on Ubuntu 10.10.

    ReplyDelete
  10. thank you very much - Mint 17

    ReplyDelete
  11. Thanks! Working in Ubuntu 14.04.

    ReplyDelete
  12. does not work ...

    ReplyDelete

Post a Comment

Popular posts from this blog

[HOW TO] Create QR Codes in Xubuntu 12.04

[FIX] VLC is unable to open the MRL (smb://)

Add items to Xfce Applications Menu