Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9191831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:46:53+00:00 2026-06-17T20:46:53+00:00

I had cmake 2.8.0 installed on my machine (from ubuntu packages), the binary was

  • 0

I had cmake 2.8.0 installed on my machine (from ubuntu packages), the binary was placed in /usr/bin/cmake. I need to upgrade cmake version to at least 2.8.2. The ubuntu version is quite old, but I can’t upgrade it right now, therefore I have to install it from sources. I’ve downloaded cmake 2.8.2, followed instructions, and made make install with root privileges. Now I’ve got two parallel cmakes installed on my machine:

  • /usr/bin/cmake – 2.8.0
  • /usr/local/bin/cmake – 2.8.2
any_user@machine $ cmake --version
2.8.0

root@machine $ cmake --version
2.8.2

What should I do to get rid of 2.8.0 (which is obsolete for me right now) or just to replace 2.8.0 with 2.8.2? I would like any non-user to type cmake (without specifying the path) to get newer version. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:46:54+00:00Added an answer on June 17, 2026 at 8:46 pm

    Normally one uses these steps (basically for any custom build application):

    First, check if the newly build cmake seems to be working, by using it from its build location.

    When you confirmed it is working, you properly remove the Ubuntu version using:

    apt-get remove cmake
    

    Finally, install the newer cmake using the make install command.

    In our case, as you already installed the custom build version, you might want to reinstall cmake again after removing the Ubuntu package, to prevent cmake being broken due to the removing process.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had done a cmake on OpenCV linux version and it created all the
Had to download Command Line Tools from Apple to get make to work, but
Had received a module from CCAVENUE and it was working fine with Magento 1.6.2...
I'm starting to learn how to use CMake, but I have had several problems
I had succes compiling both release and debug mode of opencv, using cmake and
Has anyone had luck using CMake to create Ruby bindings via SWIG? I have
Wt v. 3.2.2 and boost libraries v. 1.47 had succesfully installed in my computer
Upgraded a (dev) Cake PHP site and had to change database drivers from ADO
I have just upgraded from php 5.1 to 5.3 and had previously been using
I'm coming from CakePHP to Rails. In Cake, we had afterFilter that could be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.