当前位置:网站首页>/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 .
边栏推荐
- What is the SRM system? How do I apply the SRM system?
- Maximum length of palindrome substring (string hash + binary)
- 阿里云不同账号新旧服务器镜像迁移数据迁移同步
- Serial port experiment based on stm32f103zet6 library function
- 3h精通OpenCV(六)-图像堆叠
- What value can SRM systems bring to the enterprise?
- Two controller layer interface authentication methods
- 软件快速交付真的需要以安全为代价吗?
- Opencv+YOLO-V3实现目标跟踪
- 牛客小白月赛52 E 分组求对数和(容斥定理+二分)
猜你喜欢

Software testing - you may not understand the basic theoretical knowledge

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

Codeworks 5 questions per day (1700 for each) - the next day
![分割回文串[dp + dfs组合]](/img/7b/221b000984977508f849e19802c2c2.png)
分割回文串[dp + dfs组合]

VB. Net read / write NFC ntag tag source code

Xiaomai technology x hologres: high availability of real-time data warehouse construction of ten billion level advertising

SRM supplier collaborative management system function introduction

【WebDriver】使用AutoIt上传文件

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

ISO 32000-2 国际标准7.7
随机推荐
DevCloud加持下的青软,让教育“智”上云端
mac安装php7.2
Premature end of script headers 或 End of script output before headers
Digital twin energy system, creating a "perspective" in the low-carbon era
位图的详细介绍及模拟实现
[wangdingbei 2020 Qinglong formation]areuserialz
Parental delegation mechanism
selenium上传文件
Proxmox VE Install 7.2
Timer interrupt experiment based on stm32f103zet6 library function
Industry application of smart city based on GIS 3D visualization
lodash深拷贝使用
[tcapulusdb knowledge base] tcapulusdb system user group introduction
Image feature computation and representation -- content based image retrieval
The soft youth under the blessing of devcloud makes education "smart" in the cloud
数字孪生能源系统,打造低碳时代“透视”眼
ISO 32000-2 国际标准7.7
第42期:MySQL 是否有必要多列分区
Mongotemplate - distinct use
Dictionary tree (optional)