在raspbian伸展上的CMake安装问题

时间:2018-05-21 05:03:22

标签: python opencv cmake raspberry-pi raspberry-pi3

我在运行raspbian stretch的树莓派3上安装CMake时遇到了一些麻烦。

当我运行命令

时,我不断收到此错误消息
sudo apt-get install build-essential cmake pkg-config

错误消息:

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

我尝试了其他安装方法,例如“pip install cmake”& “sudo apt-get install -y cmake”但都无济于事。你能帮助我吗?是否有可以从中提取的图书馆?

提前谢谢。

我在raspberry pi 3上安装了raspbian stretch 2018-03-13。

1 个答案:

答案 0 :(得分:0)

运行:

sudo apt-get update

然后运行:

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