- 浏览: 2477380 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
Install PHP 5.6 on EC2
Start with this version
> wget http://ar2.php.net/distributions/php-5.6.16.tar.bz2
Unzip the file
> tar -xvf php-5.6.16.tar.bz2
Configure that
> ./configure --prefix=/home/ec2-user/tool/php-5.6.16 --with-openssl --with-iconv-dir=/usr/lib --with-curl=/opt/local/include/curl --with-mysql --with-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --with-pgsql --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-fpm-user=www-data --with-fpm-group=www-data --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --with-imap --with-imap-ssl --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-opcache --enable-fpm
1 Error Message:
configure: error: xml2-config not found. Please check your libxml2 installation.
Solution:
sudo yum install libxml2-devel
2 Error Message:
configure: error: Cannot find OpenSSL's <evp.h>
Solution:
sudo yum install openssl-devel
3 Error Message:
configure: error: Please reinstall the BZip2 distribution
Solution:
sudo yum install bzip2-devel
4 Error Message:
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
Solution:
sudo yum install curl-devel
5 Error Message:
If configure fails try --with-vpx-dir=<DIR>
configure: error: jpeglib.h not found.
Solution:
sudo yum install libjpeg-devel
6 Error Message:
If configure fails try --with-vpx-dir=<DIR>
checking for jpeg_read_header in -ljpeg... yes
configure: error: png.h not found.
Solution:
sudo yum install libpng-devel
7 Error Message:
If configure fails try --with-vpx-dir=<DIR>
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
configure: error: freetype-config not found.
Solution:
sudo yum install freetype-devel.x86_64 freetype.x86_64
8 Error Message:
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
Solution:
sudo yum install libc-client-devel
9 Error Message:
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.
Solution:
http://php.net/manual/en/imap.requirements.php
I do not think I am using IMAP, so I just get rid of that.
>./configure --prefix=/home/ec2-user/tool/php-5.6.16 --with-openssl --with-iconv-dir=/usr/lib --with-curl=/opt/local/include/curl --with-mysql --with-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --with-pgsql --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-fpm-user=www-data --with-fpm-group=www-data --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-opcache --enable-fpm
10 Error Message:
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
Solution:
sudo yum install libmcrypt-devel
11 Error Message:
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
Solution:
Do I use PostgreSQL, no, so I remove that.
./configure --prefix=/home/ec2-user/tool/php-5.6.16 --with-openssl --with-iconv-dir=/usr/lib --with-curl=/opt/local/include/curl --with-mysql --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-fpm-user=www-data --with-fpm-group=www-data --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-opcache --enable-fpm
12 Error Message:
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
Solution:
sudo yum install libxslt-devel
Yeah, it works.
> make
> make install
Wrote PEAR system config file at: /home/ec2-user/tool/php-5.6.16/etc/pear.conf
You may want to add: /home/ec2-user/tool/php-5.6.16/lib/php to your php.ini include_path
/home/ec2-user/install/php-5.6.16/build/shtool install -c ext/phar/phar.phar /home/ec2-user/tool/php-5.6.16/bin
ln -s -f phar.phar /home/ec2-user/tool/php-5.6.16/bin/phar
Installing PDO headers: /home/ec2-user/tool/php-5.6.16/include/php/ext/pdo/
Add that to the path
> sudo ln -s /home/ec2-user/tool/php-5.6.16 /opt/php-5.6.16
> sudo ln -s /opt/php-5.6.16 /opt/php
> vi ~/.bash_profile
PATH=$PATH:$HOME/bin:/opt/maven/bin
PATH=$PATH:/opt/sbt/bin
PATH=$PATH:/opt/jdk/bin:/opt/jdk/jre/bin
PATH=$PATH:/opt/node/bin
PATH=$PATH:/opt/php/bin
export PATH
JAVA_HOME=/opt/jdk
export JAVA_HOME
JRE_HOME=/opt/jdk/jre
export JRE_HOME
> sudo ln -s /opt/php/bin/php /usr/bin/php
References:
http://sillycat.iteye.com/blog/2223621
http://sillycat.iteye.com/blog/2149513
http://supportlobby.com/library-errors-when-compile-php-5-on-centos/
http://www.creativ-tech.com/kb/common-php-compile-errors-and-the-corresponding-missing-lib/
Start with this version
> wget http://ar2.php.net/distributions/php-5.6.16.tar.bz2
Unzip the file
> tar -xvf php-5.6.16.tar.bz2
Configure that
> ./configure --prefix=/home/ec2-user/tool/php-5.6.16 --with-openssl --with-iconv-dir=/usr/lib --with-curl=/opt/local/include/curl --with-mysql --with-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --with-pgsql --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-fpm-user=www-data --with-fpm-group=www-data --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --with-imap --with-imap-ssl --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-opcache --enable-fpm
1 Error Message:
configure: error: xml2-config not found. Please check your libxml2 installation.
Solution:
sudo yum install libxml2-devel
2 Error Message:
configure: error: Cannot find OpenSSL's <evp.h>
Solution:
sudo yum install openssl-devel
3 Error Message:
configure: error: Please reinstall the BZip2 distribution
Solution:
sudo yum install bzip2-devel
4 Error Message:
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
Solution:
sudo yum install curl-devel
5 Error Message:
If configure fails try --with-vpx-dir=<DIR>
configure: error: jpeglib.h not found.
Solution:
sudo yum install libjpeg-devel
6 Error Message:
If configure fails try --with-vpx-dir=<DIR>
checking for jpeg_read_header in -ljpeg... yes
configure: error: png.h not found.
Solution:
sudo yum install libpng-devel
7 Error Message:
If configure fails try --with-vpx-dir=<DIR>
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
configure: error: freetype-config not found.
Solution:
sudo yum install freetype-devel.x86_64 freetype.x86_64
8 Error Message:
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
Solution:
sudo yum install libc-client-devel
9 Error Message:
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.
Solution:
http://php.net/manual/en/imap.requirements.php
I do not think I am using IMAP, so I just get rid of that.
>./configure --prefix=/home/ec2-user/tool/php-5.6.16 --with-openssl --with-iconv-dir=/usr/lib --with-curl=/opt/local/include/curl --with-mysql --with-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --with-pgsql --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-fpm-user=www-data --with-fpm-group=www-data --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-opcache --enable-fpm
10 Error Message:
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
Solution:
sudo yum install libmcrypt-devel
11 Error Message:
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path
Solution:
Do I use PostgreSQL, no, so I remove that.
./configure --prefix=/home/ec2-user/tool/php-5.6.16 --with-openssl --with-iconv-dir=/usr/lib --with-curl=/opt/local/include/curl --with-mysql --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-fpm-user=www-data --with-fpm-group=www-data --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-opcache --enable-fpm
12 Error Message:
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
Solution:
sudo yum install libxslt-devel
Yeah, it works.
> make
> make install
Wrote PEAR system config file at: /home/ec2-user/tool/php-5.6.16/etc/pear.conf
You may want to add: /home/ec2-user/tool/php-5.6.16/lib/php to your php.ini include_path
/home/ec2-user/install/php-5.6.16/build/shtool install -c ext/phar/phar.phar /home/ec2-user/tool/php-5.6.16/bin
ln -s -f phar.phar /home/ec2-user/tool/php-5.6.16/bin/phar
Installing PDO headers: /home/ec2-user/tool/php-5.6.16/include/php/ext/pdo/
Add that to the path
> sudo ln -s /home/ec2-user/tool/php-5.6.16 /opt/php-5.6.16
> sudo ln -s /opt/php-5.6.16 /opt/php
> vi ~/.bash_profile
PATH=$PATH:$HOME/bin:/opt/maven/bin
PATH=$PATH:/opt/sbt/bin
PATH=$PATH:/opt/jdk/bin:/opt/jdk/jre/bin
PATH=$PATH:/opt/node/bin
PATH=$PATH:/opt/php/bin
export PATH
JAVA_HOME=/opt/jdk
export JAVA_HOME
JRE_HOME=/opt/jdk/jre
export JRE_HOME
> sudo ln -s /opt/php/bin/php /usr/bin/php
References:
http://sillycat.iteye.com/blog/2223621
http://sillycat.iteye.com/blog/2149513
http://supportlobby.com/library-errors-when-compile-php-5-on-centos/
http://www.creativ-tech.com/kb/common-php-compile-errors-and-the-corresponding-missing-lib/
发表评论
-
Stop Update Here
2020-04-28 09:00 256I will stop update here, and mo ... -
NodeJS12 and Zlib
2020-04-01 07:44 421NodeJS12 and Zlib It works as ... -
Docker Swarm 2020(2)Docker Swarm and Portainer
2020-03-31 23:18 301Docker Swarm 2020(2)Docker Swar ... -
Docker Swarm 2020(1)Simply Install and Use Swarm
2020-03-31 07:58 314Docker Swarm 2020(1)Simply Inst ... -
Traefik 2020(1)Introduction and Installation
2020-03-29 13:52 287Traefik 2020(1)Introduction and ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 374Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 368Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 318Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 393VPN Server 2020(2)Docker on Cen ... -
Buffer in NodeJS 12 and NodeJS 8
2020-02-25 06:43 329Buffer in NodeJS 12 and NodeJS ... -
NodeJS ENV Similar to JENV and PyENV
2020-02-25 05:14 408NodeJS ENV Similar to JENV and ... -
Prometheus HA 2020(3)AlertManager Cluster
2020-02-24 01:47 348Prometheus HA 2020(3)AlertManag ... -
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings
2020-02-24 01:46 283Serverless with NodeJS and Tenc ... -
GraphQL 2019(3)Connect to MySQL
2020-02-24 01:48 202GraphQL 2019(3)Connect to MySQL ... -
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud
2020-02-24 01:48 384GraphQL 2019(2)GraphQL and Depl ... -
GraphQL 2019(1)Apollo Basic
2020-02-19 01:36 270GraphQL 2019(1)Apollo Basic Cl ... -
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running wit
2020-02-19 01:19 255Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree
2020-02-19 01:19 253Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(2)Trigger SCF in SCF
2020-02-19 01:18 245Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(1)Running with Component
2020-02-19 01:17 230Serverless with NodeJS and Tenc ...
相关推荐
linux上安装php
RUN yum install -y gcc gcc-c++ make gd-devel libxml2-devel libcurl-devel libjpeg-devel libpng-devel openssl-devel ADD php-5.6.31.tar.gz /tmp/ RUN cd /tmp/php-5.6.31 && \ ./configure --prefix=/usr/...
yum install -y libxml2-devel openssl-devel libcurl-devel libjpeg-devel libpng-devel libicu-devel openldap-devel ./configure --prefix=/usr/local/php \ --with-config-file-path=/usr/local/php/etc \ --...
下载根目录,执行#sh install_php5.6.sh , 例如有iconv方面错误,执行#sh iconv_ins.sh ,注意安装后路径, 看是否修改php脚本配置的路径./configure --with-iconv==/usr/local/libiconv 。
Linux5.6_x64 Install Oracle 11g R2详细过程
install 12c RAC on linux 6.4PUB V2
README FOR INTERBASE 5.6 Online documentation and Release Notes For a description of new features and changes in InterBase 5.6, use Acrobat Reader to view the ReleaseNotes.pdf file. In addition, the...
Linux5.6_x64 Install Oracle 11g R2详细过程-Sam.docx
The simplest way to set up a PHP runtime environment that can execute scripts protected by Zend Guard is to install Zend Server, our pre-integrated PHP application stack. It includes: Zend Guard ...
centos系统php 5.6对应的mongo.so下载及源码 $ php -v 版本是5.6安装 不是的话 找到对应的版本再装 命令都相同只是版本号不同 在centos 64 7.2 测试通过 $ wget http://pecl.php.net/get/mongo-1.6.12.tgz $ tar -...
redhat5.6_64位_install+oracle10g安装文档
DotNetNuke_Community_05.06.01_Install dotnetnuke 5.6版本
Install Windows 7 on your Mac using Boot Camp(苹果电脑安装windows系统官方指南)
install 12c RAC on linux 6.4
To install the software, run MemProfilerInstaller5_6_46.exe. This is a standard Windows installer. The installation can be changed and uninstalled using "Program and Features" under the Windows ...
mysql-server安装包,5.6版的,yum install ~
meteor-ec2-install, Meteor EC2服务器的安装脚本 12.10 Meteor 安装脚本( 1.1.0 )Meteor 0.6.0 的自动服务器安装在新的AWS服务器 12.10 安装上。使用git部署: git push ec2 master 如何设置:SSH进入了新的Ubuntu ...
autosys install on unix
解压后,将文件放到/opt/softpackage文件夹下,在shell中输入命令 sh install_mysql_5_6 回车就可以了,详情看下这篇文章 https://www.jianshu.com/p/ceae5f329559