歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> configure: error: *** libmcrypt was not found

configure: error: *** libmcrypt was not found

日期:2017/3/1 10:14:24   编辑:Linux編程

configure: error: *** libmcrypt was not found

為了的到mcrypt.so庫文件,先後安裝編譯了mhash和libmcrypt,但是到最後編譯mcrypt時報錯:

configure: error: *** libmcrypt was not found

最後發現是因為環境變量的問題,gcc編譯的時候根據自身定義的變量尋找相關函數庫等文件,libmcrypt也是剛安裝的,在變量中沒有定義出來,所以手動添加:

[root@localhost modules]# export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

再次編譯即可。

Copyright © Linux教程網 All Rights Reserved