centos libgmp,centos官网
CentOS5.2 装完linux后 yum install 错误
1、检查网络,确保网络连接正常
2、尝试修改yum源
3、修改yum源为阿里云的yum源方法如下:
①备份之前的CentOS-Base.repo地址
cd/etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.back
②下载阿里云yum源
③将服务器上的软件包信息缓存到本地,以提高搜索安装软件的速度
yum makecache
如果你在执行上面这边命令时,报错:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
建议用如下方法解决:检查/etc/yum.repos.d/下是否有epel.repo文件,如果有,重命名为epel.repo_bak千万不能以.repo格式备份,然后在执行一次上面的命令即可!
debian8怎么安装php7
debian8编译安装 php7
目录(?)[-]
Please reinstall the libcurl distributionCannot find OpenSSL
configure error Unable to locate gmph
Can not find recodeh anywhere under usr usrlocal usr optCannot find pspell
Please reinstall the mysql distribution
mcrypth not found Please reinstall libmcryptxml2-config not found
安装编译器
apt-get install build-essential autoconf automake libtool bison re2c获取PHP安装包
wget 安装dev包
apt-get install libxml2-dev libssl-dev libbz2-dev libjpeg-dev libpng-dev libxpm-dev libfreetype6-dev libgmp-dev libgmp3-dev libmcrypt-dev libmysqlclient15-dev libpspell-dev librecode-dev进行编译安装
./buildconf//用来生成configure脚本
./configure\
--prefix=/usr\
--with-config-file-path=/etc\
--enable-mbstring\
--enable-zip\
--enable-bcmath\
--enable-pcntl\
--enable-ftp\
--enable-exif\
--enable-calendar\
--enable-sysvmsg\
--enable-sysvsem\
--enable-sysvshm\
--enable-wddx\
--with-curl\
--with-mcrypt\
--with-iconv\
--with-gmp\
--with-pspell\
--with-gd\
--with-jpeg-dir=/usr\
--with-png-dir=/usr\
--with-zlib-dir=/usr\
--with-xpm-dir=/usr\
--with-freetype-dir=/usr\
--with-t1lib=/usr\
--enable-gd-native-ttf\
--enable-gd-jis-conv\
--with-openssl\
--with-pdo-mysql=/usr\
--with-gettext=/usr\
--with-zlib=/usr\
--with-bz2=/usr\
--with-recode=/usr\
--with-mysqli=/usr/bin/mysql_config
备注:错误1:Cannot find OpenSSL's libraries解决:
确认已安装过 openssl、libssl-dev包,还是会提示该错误;解决办法:
root@test2:~/php-5.3.27# find/-name libssl.so输出结果为:/usr/lib/x86_64-Linux-gnu/libssl.so初步判断它可能只会在/usr/lib/下寻找 libssl.so文件,于是:
ln-s/usr/lib/x86_64-linux-gnu/libssl.so/usr/lib错误2:debian Please reinstall the libcurl distribution解决:
# RetHat CentOS or Fedora使用下面安装命令yum install curl curl-devel
# Debian or Ubuntu使用下面的安装命令
apt-get install curl
apt-get install libcurl4-gnutls-dev
错误3:Unable to locate gmp.h解决:
在下载 gmp源码包,接着./configure&& make&& make install编译安装
make&&make install
报错处理
Please reinstall the libcurl distributionaptitude search libcurl4
aptitude install libcurl4-gnutls-dev
Cannot find OpenSSL’
wget openssl-1.0.2j.tar.gz
cd openssl-1.0.2j
./config
make&& make install
configure: error: Unable to locate gmp.h
sudo apt-get install libgmp-dev libgmp3-devln-s/usr/include/x86_64-linux-gnu/gmp.h/usr/include/gmp.hCan not find recode.h anywhere under/usr/usr/local/usr/opt.
apt-get install librecode-dev
Cannot find pspell
apt-get install libpspell-dev
Please reinstall the mysql distribution
apt-get install libmysqlclient15-dev
mcrypt.h not found. Please reinstall libmcrypt.
apt-get install libmcrypt-dev
xml2-config not found
apt-get install libxml2-dev