当前位置:网站首页>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
边栏推荐
- Failed to configure mysql, what's going on?
- 记录代码
- Oracle根据时间查询
- OSI 七层模型和TCP/IP模型及对应协议(详解)
- Getting Started with Three.JS Programmatic Modeling
- Question about #oracle#, how to solve it?
- go语言的接口
- Camera Hal OEM模块 ---- cmr_snapshot.c
- Deep Learning 100 Examples - Convolutional Neural Network (CNN) for mnist handwritten digit recognition
- 基于threejs的商品VR展示平台的设计与实现思路
猜你喜欢
随机推荐
X86函数调用模型分析
腾讯云云函数SCF—入门须知
从测试入门到测试架构师,这10年,他是这样让自己成才的
细学常用类,集合类,IO流
突破边界,华为存储的破壁之旅
智能手表前景如何?
爆款视频怎么做?这里或许有答案!
Axure谷歌浏览器扩展程序下载及安装方法(免翻墙)
从幻核疑似裁撤看如何保证NFT的安全
Question about #oracle#, how to solve it?
ansible module --yum module
npm WARN deprecated [email protected] This version of tar is no longer supported, and will not receive
同样做软件测试,和月收入 3W 的学弟聊了一晚上,我彻底崩溃了
大疆P4M云遮挡矫正
sva 断言资料
注意力机制
多线程之生产者与消费者
图形处理单元(GPU)的演进
npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案
LayaBox---TypeScript---Advanced Type