I'm having issues getting cmake installed onto my machine. Here is what I am running:
sudo apt-get -f install cmake
And here is the output:
Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help resolve the situation: The following packages have unmet dependencies: cmake : Depends: libjsoncpp1 but it is not installable
I have tried running apt-get update but it doesn't seem to help. Please let me know what I should try. Would be happy to provide more information.
Edit: The output of "apt-cache policy cmake" is as follows:
cmake: Installed: (none) Candidate: 3.5.2-2ubuntu1~ubuntu16.04.1~ppa1 Version table: 3.5.2-2ubuntu1~ubuntu16.04.1~ppa1 0 500 http://ppa.launchpad.net/thomas-schiex/blender/ubuntu/ trusty/main amd64 Packages 3.2.2-2~ubuntu14.04.1~ppa1 0 500 http://ppa.launchpad.net/george-edison55/cmake-3.x/ubuntu/ trusty/main amd64 Packages 126.96.36.199-0ubuntu3 0 500 http://ca.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages 100 /var/lib/dpkg/status
Update: Thanks! I was able to install cmake. However, I can't seem to make anything with it. I'm running
in an empty directory which I created inside the project I'm trying to make. Here is the output:
CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not found in /usr/bin CMake Error: Error executing cmake::LoadCache(). Aborting.
Would anybody have any idea on what to do next? I have tried uninstalling and reinstalling as well as apt-get update. Again, I can post more information on here if needed.