缺少動態鏈結庫錯誤修復

2021-09-03 10:29:23 字數 659 閱讀 7511

缺少動態鏈結庫錯誤修復

[root@test02 bin]# ./memcached -h
./memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared

object file: no such file or directory

總結下來主要有3種方法:

1. 用ln將需要的so檔案鏈結到/usr/lib或者/lib這兩個預設的目錄下邊

ln -s /where/you/install/lib/*.so /usr/lib

sudo ldconfig

2.修改ld_library_path

export ld_library_path=/where/you/install/lib:$ld_library_path

sudo ldconfig

3.修改/etc/ld.so.conf,然後重新整理

vim /etc/ld.so.conf

add /where/you/install/lib

sudo ldconfig

缺少動態鏈結庫錯誤修復

缺少動態鏈結庫錯誤修復 安裝memcached時候遇到缺少動態鏈結庫錯誤 1 root test02 bin memcached h 1 2 memcached error while loading shared libraries libevent 2.0.so.5 cannot open sh...

動態鏈結庫MSDART錯誤

極少數使用者出現錯誤 無法定位程式輸入點lstrcmpii於動態鏈結庫msdart.dll上。如下圖所示 問題原因 microsoft data access components 微軟資料訪問控制項 的配置或安裝檔案被其它軟體破壞或者不當設定。解決辦法 重新安裝microsoft data acc...

動態鏈結庫 靜態鏈結庫

包含標頭檔案和庫 idir 指定編譯查詢標頭檔案的目錄,常用於查詢第三方的庫的標頭檔案,例 gcc test.c i.inc o test。ldir 指定鏈結時查詢lib的目錄,常用於查詢第三方庫。llibrary 指定額外鏈結的lib庫 巨集定義 dmacro 以字串 1 預設值 定義 macro...