CentOS5安装mcrypt-2.6.8出现问题及解决方案
2010-05-07 15:01
429 查看
搞了一下午的mcrypt
centOS5上架设php整合一些扩展文件,需要安装libmcrypt+mhash+mcrypt
全部编译安装,安装到mcrypt的时候出现了问题
./configure
提示出错,首先提示
*** Could not run libmcrypt test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means LIBMCRYPT was incorrectly installed
*** or that you have moved LIBMCRYPT since it was installed. In the latter case, you
*** may want to edit the libmcrypt-config script: no
configure: error: *** libmcrypt was not found
找了相关资料,得出解决方法明明我安装了libmcrypt 2.5.8 ,可是竟然提示没有发现!然后在/usr/local/bin/找到了LIBMCRYPT_CONFIG ,这一步明确了是PATH变量的问题 !
方法是ln -s /usr/local/bin/libmcrypt_config /usr/bin/libmcrypt_config
之后继续进行./configure
仍然报错:
*** Could not run libmcrypt test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding LIBMCRYPT or finding the wrong
*** version of LIBMCRYPT. If it is not finding LIBMCRYPT, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
***
configure: error: *** libmcrypt was not found
继续查找,还是变量的问题
解决方法如下:运行 export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
然后make ; make install
完成
centOS5上架设php整合一些扩展文件,需要安装libmcrypt+mhash+mcrypt
全部编译安装,安装到mcrypt的时候出现了问题
./configure
提示出错,首先提示
*** Could not run libmcrypt test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means LIBMCRYPT was incorrectly installed
*** or that you have moved LIBMCRYPT since it was installed. In the latter case, you
*** may want to edit the libmcrypt-config script: no
configure: error: *** libmcrypt was not found
找了相关资料,得出解决方法明明我安装了libmcrypt 2.5.8 ,可是竟然提示没有发现!然后在/usr/local/bin/找到了LIBMCRYPT_CONFIG ,这一步明确了是PATH变量的问题 !
方法是ln -s /usr/local/bin/libmcrypt_config /usr/bin/libmcrypt_config
之后继续进行./configure
仍然报错:
*** Could not run libmcrypt test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding LIBMCRYPT or finding the wrong
*** version of LIBMCRYPT. If it is not finding LIBMCRYPT, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
***
configure: error: *** libmcrypt was not found
继续查找,还是变量的问题
解决方法如下:运行 export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
然后make ; make install
完成
相关文章推荐
- 安装Android sdk 4.4(19)出现问题的解决方案
- 关于问题“应用程序未安装或安装时出现「INSTALL_FAILED_CONTAINER_ERROR」”的解决方案方面的事情
- tensorflow安装:Ubuntu系统下tensorflow安装过程可能出现的问题及解决方案
- Ubuntu11.04安装Gcc4.4.1所出现的问题及解决方案
- SSD(old)版本caffe安装在已安装新版本caffe的服务器,出现的问题及解决方案
- win7 安装arcgis后出现问题解决方案
- ubuntu采用apt-get安装软件出现依赖问题的解决方案
- [亲测] 解决在 ubuntu14.04 安装完 vmware 后,启动出现下列问题的解决方案
- 关于Adobe flash palyer 安装出现的问题解决方案
- Nginx+Tomcat+pcre 安装过程和出现的问题以及解决方案
- MATLAB 2010b安装过程出现的问题解决方案
- 关于VS2013连接Oracle数据库提示:“尝试加载oracle客户端时引发badimage,如果在安装 32 位 Oracle 客户端组件的情况下以 64 位模式运行,将出现此问题”的解决方案。
- genymotion模拟器安装出现的问题及解决方案
- 解决品牌机、笔记本 安装GhostXP系统出现问题的终极解决方案
- Ubuntu Server 16.04安装MySQL设置远程访问出现问题的完美解决方案(error:10061)
- Ubuntu12.04操作系统安装时,出现的问题及解决方案
- Python3 安装 pip3 出现的问题及解决方案
- win7 安装oralce10g 出现未知错误、网络配置未执行的问题及解决方案
- Mysql在Linux下安装和使用过程中出现的问题及解决方案
- DB2安装后出现菜单栏乱码问题解决方案