/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 -lXX的問題
- (轉載)關於usr/bin/ld: cannot find -lxxx問題總結
- Cannot find module ‘webpack-cli/bin/config-yargs‘Web
- 解決Make時,“/usr/bin/ld: 找不到 -lXXX”問題的三種方法
- /usr/bin/python與/usr/bin/env python的區別Python
- python中#!/usr/bin/python與#!/usr/bin/env python的區別Python
- /bin、/sbin、/usr/bin、/usr/sbin、/usr/local/sbin放置可執行檔案的區別
- 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
- /usr/bin/expect的簡單使用
- 【jenkins】/usr/bin/env: php: No such file or directoryJenkinsPHP
- 解決cannot find module providing package或cannot find main modulePackageAI
- Php cli模式下執行報錯/usr/bin/php: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/bin/php)PHP模式XMLORMAIUI
- 安裝opencv報錯/usr/bin/ld: warning: libpcre.so.1, needed by /home//anaconda3/lib/libglib-2.0.so.0OpenCV
- Sub-process /usr/bin/dpkg returned an error codeError
- Could not find or access '/etc/ansible/bin/cfssljson /etc/ansible/bin/cfsslJSON
- You don't have write permissions for the /usr/bin directory.
- Authentication is required to run /usr/bin/x-terminal-emulator as rootUI
- 一分鐘看懂頭部 shell #!/usr/bin 命令
- mac下/usr/local/bin No such file or directory問題解決Mac
- frepplectl解決報錯:bash: /usr/bin/frepplectl: Permission denied
- WSL:Sub-process /usr/bin/dpkg returned an error code (1)Error
- MapStruct-plus cannot find converter fromStruct
- Cannot find package module sap/cds/commonPackage
- Error: Cannot find configuration directory: /etc/hadoopErrorHadoop
- 遇到的cannot find module 'xxx' 問題
- Vue Router Cannot find module 'XXX.vue'Vue
- cannot find trajectory file at ./examples/trajectory.txt
- code EACCESnpm ERR! syscall renamenpm ERR! path /usr/local/bin/webpack errno -13NPMWeb
- 解決Cannot find module '@angular/compiler-cli'AngularCompile
- 記一次危險的操作——誤刪/usr/bin目錄
- SQL2012報錯:cannot find one or more cpmponentsSQL
- Go cannot find package "go-sql-driver/mysql" in any ofGoPackageMySql
- python升級帶來的yum異常:File "/usr/bin/yum", line 30Python
- vue Cannot find module @/xxx/xxx.ts or its corresponding typeVue
- OPatch cannot find a valid oraInst.loc file to locate Central InventoryAI
- Cannot find a valid baseurl for repo: base/7/x86_64
- iOS開發除錯之報錯:Command /usr/bin/codesign failed with exit code 1iOS除錯AI