搭建lnmp环境(一):准备工作 libiconv、mhash、libmcrypt、mcrypt 的库安装
2017-03-17 15:27
489 查看
安装环境:CentOs6.8 X64 minimal
准备软件:libiconv mhash libmcrypt mcrypt
一、准备安装
1. 连接SSH
2. 新建soft文件夹下载安装包
准备软件:libiconv mhash libmcrypt mcrypt
一、准备安装
1. 连接SSH
2. 新建soft文件夹下载安装包
[root@localhost ~]# mkdir /root/soft && cd /root/soft
3. 下载wget下载列表文件 (url.txt)
[root@localhost soft]# wget https://raw.githubusercontent.com/u715577133/LinuxSoft/master/url.txt[/code]4. 下载安装包 wget -i 表示下载文件中出现的url文件。[root@localhost soft]# wget -i url.txt
二、开始安装
1.安装iconv[root@localhost]# tar -zxvf libiconv-1.15.tar.gz && cd libiconv-1.15 [root@localhost libiconv-1.15]# ./configure ... configure: error: in `/root/soft/libiconv-1.15': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details [root@localhost libiconv-1.15]# yum install gcc提示no acceptable C .....需要安装gcc 编译器,直接执行 yun install gcc 安装完gcc以后 继续./configure... checking whether the -Werror option is usable... yes checking for simple visibility declarations... yes configure: creating ./config.status config.status: creating Makefile config.status: executing libtool commands走到这步一般不会报错,直接 make && make install 到这里iconv已经安装完成了。
2.安装mhash (hash支持)[root@localhost soft]# tar -zxvf mhash-0.9.9.9.tar.gz && cd mhash-0.9.9.9 [root@localhost mhash-0.9.9.9]# ./configure && make && make install
3.安装libmcrypt[root@localhost soft]# tar -zxvf libmcrypt-2.5.7.tar.gz [root@localhost soft]# cd libmcrypt-2.5.7 && ./configure && make && make install ...
这里不要退出libmcrypt目录继续安装让系统支持libcrypt[root@localhost libmcrypt-2.5.7]# /sbin/ldconfig [root@localhost libmcrypt-2.5.7]# ./configure --enable-ltdl-install
libmcrypt安装完成
4.mcrypt安装[root@localhost soft]# tar -zxvf mcrypt-2.6.8.tar.gz && cd mcrypt-2.6.8 && install ... *** 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 *** *** 这里要指定LIBPARY_PATH路径,刚才安装的libmcrypt没有指定/usr/lib [root@localhost mcrypt-2.6.8]# export LD_LIBRARY_PATH=/usr/local/bin:LD_LIBRARY_PATH [root@localhost mcrypt-2.6.8]# ./cofigure && make && make install
mcrypt 安装完成
相关文章推荐
- 【Android】1、准备工作——软件安装与环境搭建
- 环境搭建系列-准备工作之Java环境安装
- 虚拟机下搭建JDK+Tomcat+Nginx环境【一】——安装准备工作
- hadoop环境搭建准备工作之一:安装JDK(linux)
- [LTMP搭建] CentOS 6.5 编译安装lnmp的准备工作
- 在linux系统下安装oracle前的准备工作(配置oracle环境变量)
- ubuntu 10.10下搭建android开发环境 安装必要工作用软件
- ubuntu 10“.NET研究”.10下搭建android开发环境 安装必要工作用软件
- ubuntu 10.10下搭建android开发环境 安装必要工作用软件
- ubuntu通过apt-get方式搭建lnmp环境以及php扩展安装
- Ubuntu 搭建LNMP环境图文教程 安装所需依赖库
- Centos 6.2 实际工作环境搭建(LNMP)
- 搭建微软网络域管理环境前的准备工作
- ubuntu 10.10下搭建android开发环境 安装必要工作用软件
- Ubuntu安装nginx php5-fpm mysql (lnmp环境搭建)
- ubuntu 10.10下搭建android开发环境 安装必要工作用软件
- Ubuntu 搭建LNMP环境图文教程 安装PHP
- OCS 2007 R2环境搭建DC上的准备工作
- CentOS 5.5安装Nginx、PHP(FastCGI)、MySQL --搭建LNMP环境安装Wordpress
- lnmp环境搭建(源码安装)