当前位置:网站首页>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/lib
Second step
sudo ln -s /usr/local/lib/libmosquitto.so.1 /usr/lib/libmosquitto.so.1 ldconfig
边栏推荐
猜你喜欢
随机推荐
字节跳动软件测试岗,收到offer后我却拒绝了~给面试的人一些忠告....
List排序 ,取最大值最小值
图形处理单元(GPU)的演进
STM32+MPU6050设计便携式Mini桌面时钟(自动调整时间显示方向)
STM32+MPU6050 Design Portable Mini Desktop Clock (Automatically Adjust Time Display Direction)
C#/VB.NET 添加多行多列图片水印到Word文档
Mysql事务隔离级别与MVCC(多版本并发控制)
使用kubesphere图形界面创建一个devops的CI/CD流程
Oracle 19c 连接PDB
受邀出席Rust开发者大会|Rust如何助力量化高频交易?
FPGA手撕代码——CRC校验码的多种Verilog实现方式 (2021乐鑫科技数字IC提前批代码编程)
Several reasons why applet plugins benefit developers
npm run serve启动报错npm ERR Missing script “serve“
Failed to configure mysql, what's going on?
一体化在线政务服务平台,小程序容器技术加速建设步伐
同样做软件测试,和月收入 3W 的学弟聊了一晚上,我彻底崩溃了
Shell编程案例
保姆级教程:写出自己的移动应用和小程序(篇二)
智能手表前景如何?
Nanny Level Tutorial: Write Your Own Mobile Apps and Mini Programs (Part 2)