当前位置:网站首页>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边栏推荐
猜你喜欢
随机推荐
ansible模块--copy模块
SQL(面试实战07)
Oracle降低高水位
windbg分析进程卡死
SQL 数据更新
LayaBox---TypeScript---Module Analysis
FinClip | 来了, 2022 年 7 月更新大盘点
sva 断言资料
CAN总线的AUTOSAR网络管理
Question about #oracle#, how to solve it?
sva assertion data
字母交换--字符串dp
idea常用插件
受邀出席Rust开发者大会|Rust如何助力量化高频交易?
Several reasons why applet plugins benefit developers
C#/VB.NET 添加多行多列图片水印到Word文档
SQLAlchemy使用教程
使用无界队列的线程池会导致内存飙升吗?
通过方法引用获取方法名
OSI 七层模型和TCP/IP模型及对应协议(详解)









