当前位置:网站首页>Problem solving in the process of using mosquitto
Problem solving in the process of using mosquitto
2022-08-02 11:18:00 【Little Monk Hanshui Temple Wuxin】
1. To use mosquitto, either link its library files to compile, or download and install mosquitto on the system. After I installed it, I also successfully compiled my program. As a result, when running my executable file, it throwserror.
The reason is that the system cannot find the library file during execution.One is to add the path of libmosquitto.so.1 in the environment variable, and the other is to add it to /usr/local/lib.After mosquitto is compiled and installed, libmosquitto.so.1 will be under the lib of mosquitto.I am using the second method.
First step
sudo cp libmosquitto.so.1 /usr/local/libSecond step
sudo ln -s /usr/local/lib/libmosquitto.so.1 /usr/lib/libmosquitto.so.1 ldconfig边栏推荐
猜你喜欢
随机推荐
C#/VB.NET 添加多行多列图片水印到Word文档
Nanny Level Tutorial: Write Your Own Mobile Apps and Mini Programs (Part 2)
npm run dev 和 npm run serve区别
ansible module --copy module
多大数量级会出现哈希碰撞
如何在 UE4 中制作一扇自动开启的大门
SQL 经典50题(题目+解答)(1)
Excel动态图制作
QT笔记——Q_PROPERTY了解
软件测试岗位巨坑?阿里在职7年测试人告诉你千万别上当
有奖征集|TaoCloud&宝德联合举办全闪POC!
使用无界队列的线程池会导致内存飙升吗?
Camera Hal OEM模块 ---- cmr_snapshot.c
CAN总线的AUTOSAR网络管理
循环结构--while循环
The sitcom "Re-Walking the Long March" was staged
划分训练集,验证集,测试集
流动性质押挖矿系统开发如何制作?单双币系统开发成熟技术
外包学生管理系统架构文档
放苹果(暑假每日一题 13)









