/usr/bin/ld: cannot find -lmysqlclient_r
編譯你的工程程式碼之前之前,
先處理一下mysql的庫,預設查詢libmysqlclient_r.so,
可是mysql預設為libmysqlclient.so,
# ln -s libmysqlclient.so.15.0.0 libmysqlclient_r.so
先處理一下mysql的庫,預設查詢libmysqlclient_r.so,
可是mysql預設為libmysqlclient.so,
內容完全一樣,做個連結即可
請在root下執行
# cd /usr/local/mysql/lib/mysql/ (庫所在目錄)# ln -s libmysqlclient.so.15.0.0 libmysqlclient_r.so
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22990797/viewspace-2146490/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- /usr/bin/ld: cannot find -lopenblas
- (轉載)關於usr/bin/ld: cannot find -lxxx問題總結
- Starting MySQL * Couldn't find MySQL server (/usr/bin/mysqld_safe)MySqlServer
- linux中/bin和/sbin和/usr/bin和/usr/sbinLinux
- 【shell 】 test, /usr/bin/test, [ ], 和/usr/bin/[都是等價命令
- /usr/bin/python與/usr/bin/env python的區別Python
- #!/usr/bin/env python與#!/usr/bin/python的區別Python
- Linux下/bin, /sbin, /usr/bin, /usr/sbin 等的區別Linux
- Cannot find module ‘webpack-cli/bin/config-yargs‘Web
- /bin、/sbin、/usr/bin、/usr/sbin、/usr/local/sbin放置可執行檔案的區別
- #!/usr/bin/env pythonPython
- 解決Make時,“/usr/bin/ld: 找不到 -lXXX”問題的三種方法
- /usr/bin和/usr/sbin有什麼區別
- python中#!/usr/bin/python與#!/usr/bin/env python的區別Python
- Vue啟動報錯 Cannot find module 'webpack/bin/config-yargs'VueWeb
- -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: b...Framework
- 【jenkins】/usr/bin/env: php: No such file or directoryJenkinsPHP
- UNIX 檔案太多,不能刪除的問題解決(ksh: /usr/bin/find: arg list too long)
- 解決cannot find module providing package或cannot find main modulePackageAI
- Sub-process /usr/bin/dpkg returned an error codeError
- Php cli模式下執行報錯/usr/bin/php: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/bin/php)PHP模式XMLORMAIUI
- Cannot find folder "Maintenance Plans".AINaN
- You don't have write permissions for the /usr/bin directory.
- 安裝pods提示Operation not permitted usr bin xcodeprojMITXCode
- bundler安裝失敗,Operation not permitted - /usr/bin/***MIT
- innobackupex:Error:xtrabackup child process has died at /usr/bin/innobackupexError
- /usr/bin/xauth: error in locking authority file錯誤Error
- 解決 Cannot find OpenSSL's
- 一分鐘看懂頭部 shell #!/usr/bin 命令
- WSL:Sub-process /usr/bin/dpkg returned an error code (1)Error
- mac下/usr/local/bin No such file or directory問題解決Mac
- Authentication is required to run /usr/bin/x-terminal-emulator as rootUI
- Could not find or access '/etc/ansible/bin/cfssljson /etc/ansible/bin/cfsslJSON
- /usr/bin/Xvnc: undefined symbol: pixman_composite_trapezoidsVNCUndefinedSymbol
- 安裝opencv報錯/usr/bin/ld: warning: libpcre.so.1, needed by /home//anaconda3/lib/libglib-2.0.so.0OpenCV
- CentOS安裝軟體出現錯誤:bash: /usr/local/bin/rar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directoryCentOSLinux
- ERROR: /etc/ld.so.preload cannot be preloaded: ignoredError
- Cannot find package module sap/cds/commonPackage