简体   繁体   中英

CMake installation issue on raspbian stretch

im having some troubles installing CMake on raspberry pi 3 running raspbian stretch.

I keep getting this error message when i run the command

sudo apt-get install build-essential cmake pkg-config

The error message:

> " 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 "

I've tried other installation methods like " pip install cmake " & " sudo apt-get install -y cmake " but all to no avail. Could you guys help me out? Is there a library i can extract from?

Thank you in advance.

Im running raspbian stretch 2018-03-13 installed on raspberry pi 3.

Run:

sudo apt-get update

Then run:

sudo apt-get install build-essential cmake pkg-config

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM