gpt4 book ai didi

linux - 如何安装 Proc::Daemon 模块

转载 作者:太空宇宙 更新时间:2023-11-04 04:43:27 24 4
gpt4 key购买 nike

我刚刚购买了 SensorTag CC3200STK。我想通过Raspberry Pi读取它的数据。我进行了很多搜索,但找不到任何方法来读取其数据。最后我找到了一个代码,作者告诉我只需运行该代码即可。我认为这个人正在尝试将 Perl 代码作为守护程序运行。当我运行代码时,出现以下错误。

Can't locate Proc/Daemon.pm in @INC (you may need to install the Proc::Daemon module) 
(@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at ./wifisensortagd line 8.
BEGIN failed--compilation aborted at ./wifisensortagd line 8.

我已将代码附加为 jsfiddle(我知道它不是 js 代码)。 https://jsfiddle.net/9eLkn6of/

我应该如何解决这个错误?P.S:代码中包含的.cfg文件包含

Sensors: "192.168.1.1","192.168.1.1"
Locations: "Work Room","Living Room"
Site: Hassan Home
Mqttserver: pi3.garf.de

最佳答案

@Corion 的评论非常有帮助。我通过安装这两个模块解决了该错误。

sudo apt-get install libproc-daemon-perl

sudo apt-get install libconfig-simple-perl

关于linux - 如何安装 Proc::Daemon 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53042444/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com