Raspberry C示例代码未编译 [英] Raspberry C example code not compiled
问题描述
嗨
我已经有了树莓派node.js示例.
最初的问题是树莓派c的例子.
Raspberry图片现在是2017年7月5日Rasbian-jessie,Rasberry是Pi 3模型B
再次关注下一个示例:
https://docs.microsoft.com/zh-CN/azure/iot-hub/iot-hub-raspberry-pi-kit-c-get-started
E:无法获取某些档案,可能运行apt-get update或尝试--fix-missing吗?
>我运行sudo apt-get update,然后
> sudo apt-get install git-core 似乎还可以
我收到cmake丢失的错误
./setup.sh:第85行:cmake:找不到命令
>然后安装cmake
然后再次运行
sudo chmod u+x setup.sh
sudo ./setup.sh
给出下一个错误(似乎缺少一些文件或目录)
Br Kari
Naakar,
这是同样的问题吗?
https://github.com/MicrosoftDocs/azure-docs/issues/18981 >
我建议使用"sudo ./setup-sh --simulated-data" .你也可以尝试吗?
Hi
I got raspberry node.js example working .
Original problem was raspberry c example.
Raspberry image is now 2017-07-05 Rasbian-jessie, Rasberry is Pi 3 model B
Following again next example:
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-raspberry-pi-kit-c-get-started
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
> I run sudo apt-get update, and then
> sudo apt-get install git-core seems to be OK
I got error that cmake is missing
./setup.sh: line 85: cmake: command not found
> cmake then installed
then running again
sudo chmod u+x setup.sh
sudo ./setup.sh
Gives next error ( seems to be some missing file or directory)
Br Kari
Hi Naakar,
Is this the same issue?
https://github.com/MicrosoftDocs/azure-docs/issues/18981
I suggested to use "sudo ./setup-sh --simulated-data" . Can you try it as well?
这篇关于Raspberry C示例代码未编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!