好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

configure:error: *** libmcrypt was not found的问题 -


configure:error: *** libmcrypt was not found的问题

 

configure: error: *** libmcrypt was not found
 

为了的到mcrypt.so库文件,先后安装编译了mhash和libmcrypt,但是到最后编译mcrypt时报错:
 

configure: error: *** libmcrypt was not found  www.2cto.com  
 

最后发现是因为环境变量的问题,gcc编译的时候根据自身定义的变量寻找相关函数库等文件,
libmcrypt也是刚安装的,在变量中没有定义出来,所以手动添加:
 

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

再次编译即可。

 

 

查看更多关于configure:error: *** libmcrypt was not found的问题 -的详细内容...

  阅读:71次