1,准备环境:
apt-get install gcc bison bison-devel zlib-devel libmcrypt-devel mcrypt mhash-devel openssl-devel libxml2-devel libcurl-devel bzip2-devel readline-devel libedit-devel sqlite-devel
发现这时候源有问题,改一下vim /etc/apt/source.list
deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
完了之后执行:
apt-get update
apt-get upgrade
在Linux命令行中使用和执行PHP代码(二):12个PHP交互性shell的:http://www.linuxdiyf.com/linux/13080.html
在Linux命令行中使用和执行PHP代码(一):http://www.linuxdiyf.com/linux/13076.html
ubuntu15.04编译安装php5.3和5.2:http://www.linuxdiyf.com/linux/12055.html
在CentOS 7.x/Fedora 21上面体验PHP 7.0:http://www.linuxdiyf.com/linux/12326.html