When I try installing cmake on a BeagleBone Black board. I am using Debian Buster IoT Image 2020-04-06
sudo apt-get install cmake
I got the below error. For more details, this is my log:
debian@beaglebone:~$ sudo apt-get install cmake
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package cmake is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'cmake' has no installation candidate
debian@beaglebone:~$ make
make: *** No targets specified and no makefile found. Stop.
Please help me to install cmake.
Okay...so.
sudo apt update && sudo apt upgradewill allow for you to install cmake or you can use an updated version of the image from docs.beagleboard.org and/or forum.beagleboard.org which both have images available for their boards.Also...
https://forum.beagleboard.org/tag/latest-images is a link with the latest images for the am335x supported BeagleBone Black. Once you have a Bullseye or Bookworm image, you can then update/upgrade and conversely use
aptto install packages.I think, personally, since Buster is EOL (End of Life) and not heavily supported any longer from their .org and repos, it might be difficult to find exactly what you are looking to attain without update/upgrade like @MadScientist pointed out.
Again, if you cannot install via
aptyour favorite package, in this case it is cmake, I would suggest installing it via their installation methods online found here: https://cmake.org/files/and here:https://github.com/Kitware/CMake/releases .You may have to figure out what
cmakerelease works with Buster Distros of Linux while still being able to install it correctly and that is solely without theaptinstall variation.So, if you go to the Debian Buster Distro repos online and look up your kernel and image, you can find what exact or around what exact versioning is needed.