当前位置:网站首页>/usr/bin/ld: warning: **libmysqlclient. so. 20**, needed by //usr/
/usr/bin/ld: warning: **libmysqlclient. so. 20**, needed by //usr/
2022-06-29 18:01:00 【Hua Weiyun】
| Error message |
|---|
/usr/bin/ld: warning: libmysqlclient.so.20, needed by //usr/lib/libgdal.so.20, not found (try using -rpath or -rpath-link)
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
//usr/lib/libgdal.so.20: Yes ‘[email protected]_20.0’ Undefined references
collect2: error: ld returned 1 exit status
line_det/CMakeFiles/line.dir/build.make:167: recipe for target ‘/home/dzh/Demo/line_det/devel/lib/line_det/line’ failed
make[2]: *** [/home/dzh/Demo/line_det/devel/lib/line_det/line] Error 1
CMakeFiles/Makefile2:455: recipe for target ‘line_det/CMakeFiles/line.dir/all’ failed
make[1]: *** [line_det/CMakeFiles/line.dir/all] Error 2
Makefile:140: recipe for target ‘all’ failed
make: *** [all] Error 2
Invoking “make -j12 -l12” failed
Terminal process “bash ‘-c’, ‘catkin_make’” Terminated , Exit code : 1.
| resolvent |
|---|
After an afternoon 3h The fumble of , Finally solved the above problems . To sum up, let the scholars behind take fewer detours . The reason for the error is that the system cannot find libmysqlclient.so.20 This library .
1、 So let's start with Ubuntu Find out whether there is this file in the system .
Input find / -name libmysqlclient.so.20. If there is, it will be in /usr/local/mysql/lib/ Medium or /usr/lib/mysql/plugin in , Install it on your own mysql From the path of .
2、 If you have this file , Direct section 3 Step . Without this library , Open the following Baidu online link , Then download to local . Switch to the download directory , Then input sudo mv libmysqlclient.so.20 /usr/lib/mysql/plugin Move library files to mysql/plugin in .

3、 Now we have this library file , We need to set a soft link to the file name required by the system libmysqlclient.so.20. such , As long as the system wants to access libmysqlclient.so.20, Will call this library file . You can regard the soft connection as a reference to a file , The specific explanation is at the end of the text .
Enter the command :sudo ln -s /usr/lib/mysql/plugin/libmysqlclient.so.20 /usr/lib/libmysqlclient.so.20 Press enter to enter the administrator password , Then create successfully . If you input wrong, you want to delete the soft link , Input rm -rf /usr/lib/libmysqlclient.so.20 You can delete , That is to say rm -rf Link pathname .

4、 Let's compile the project again , If it's in VsCode Medium , direct Ctrl+Shift+B, Compile successfully .

stay Linux In the system , The kernel allocates one for each newly created file inode( Index node ), Each file has a unique inode Number . The file properties are stored in the index node , When accessing a file , The index node is copied to memory , So as to achieve rapid access to files .
A link is a way to establish a connection between a shared file and several directory entries of the users who access it .Linux There are two types of links in : Hard links (Hard Link) And soft links (Soft Link), Soft links are also called symbolic links (Symbolic link), amount to Windows Next shortcut .
边栏推荐
- 让 Google 搜索到自己的博客
- Kubekey2.2.1 kubernetes1.23.7 offline package production +harbor Department summer and upload image
- 关于日期相加减问题
- Visual studio plug-in coderush officially released v22.1 -- visual tool for optimizing debugging
- [try to hack] cookies and sessions
- Proxmox VE Install 7.2
- VMware安装ESXI
- 如何使用B/S开发工具DevExtreme的图表控件 - 自定义轴位置?
- ABC253 D FizzBuzz Sum Hard(容斥定理)
- Face recognition 4- research on Baidu commercial solutions
猜你喜欢

Teach you how to install the latest version of mysql8.0 database on windows, nanny level teaching

Have you grasped the most frequently asked question in the interview about massive data processing?

DevCloud加持下的青软,让教育“智”上云端

QQ如何开通在线客服

js两个二维数组合并并去除相同项(整理)
![填充每个节点的下一个右侧节点指针[利用好每个点->尽可能降低时空复杂度]](/img/33/bda0a898bfe3503197026d1f62e851.png)
填充每个节点的下一个右侧节点指针[利用好每个点->尽可能降低时空复杂度]

面试中问最常问的海量数据处理你拿捏了没?

Top 30 open source software

What technology is an applet container? Can it help Internet of things enterprises break through the red sea?

双亲委派机制
随机推荐
phpunit骚操作之静态类的部分mock
3h精通OpenCV(五)-透视变换
What value can SRM systems bring to the enterprise?
Function independent watchdog (iwdg) experiment based on stm32f103zet6 Library
国外LEAD赚钱,做个网站真的很简单
回文子串的最大长度(字符串哈希+二分)
Repair of JSON parsing errors in a collection
Let's start with a bug that was cheated by the app store
Xiaomai technology x hologres: high availability of real-time data warehouse construction of ten billion level advertising
Image migration and data migration synchronization of old and new servers with different Alibaba cloud accounts
Bloom filter:
Walk with love, educate and run poor families, and promote public welfare undertakings
Xiaobai yuesai 51 supplement e g f
Precondition end of script headers or end of script output before headers
Sword finger offer 13 Robot range of motion (BFS)
Proxmox VE Install 7.2
Find the maximum XOR value in the sequence given a number (01 Dictionary)
Industry application of smart city based on GIS 3D visualization
Abc253 D fizzbuzz sum hard (tolerance exclusion theorem)
Two controller layer interface authentication methods