当前位置:网站首页>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
边栏推荐
猜你喜欢
After 21 years of graduation, I switched to software testing. From 0 income to a monthly salary of over 10,000, I am really lucky...
Mysql事务隔离级别与MVCC(多版本并发控制)
Com多进程通信实现
OLED的HAL库代码介绍及使用(stm32f1/I2C/HAL库版/100%一次点亮)
Axure谷歌浏览器扩展程序下载及安装方法(免翻墙)
10份重磅报告 — 展望中国数字经济未来
npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案
字节跳动软件测试岗,收到offer后我却拒绝了~给面试的人一些忠告....
C#/VB.NET to add more lines more columns image watermark into the Word document
Challenge LeetCode1000 questions in 365 days - Day 047 Design Circular Queue Circular Queue
随机推荐
JSP中include指令的功能简介说明
STM32+MPU6050设计便携式Mini桌面时钟(自动调整时间显示方向)
LayaBox---TypeScript---Module Analysis
npm run serve启动报错npm ERR Missing script “serve“
find查找多类型结尾文件
华为eNSP(基础实验通信)
Question about #oracle#, how to solve it?
sqli-labs(less-11)
LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之一
从零开始Blazor Server(5)--权限验证
idea常用插件
【面向校招】Golang面试题合集
FinClip | 来了, 2022 年 7 月更新大盘点
细学常用类,集合类,IO流
leetcode: 200. Number of islands
JSP中如何正确的填写include指令中的file路径呢?
划分训练集,验证集,测试集
爆款视频怎么做?这里或许有答案!
How to encapsulate the wx.request() request of WeChat applet
What is the future of smartwatches?