首页 > 系统相关 >linux安装php5

linux安装php5

时间:2022-12-08 21:14:10浏览次数:38  
标签:enable -- mysqlnd devel gd linux php5 安装 dir

yum -y install bzip2 bzip2-devel libxml2 libxml2-devel openssl openssl-devel curl-devel libjpeg-devel libpng-devel free Type -devel libmcrypt-devel mhash gd gd-devel

 1. 下载包

wget http://mirrors.sohu.com/php/php-5.6.2.tar.gz

  2. 解压

 tar -zxvf php-5.6.2.tar.gz
 cd php-5.6.2

 3. 编译安装

 依赖的话提示缺啥就安装

  

'./configure'  '--prefix=/usr/local/php5.4.9' '--enable-fpm'  '--enable-inline-optimization' '--disable-debug' '--disable-rpath' '--enable-shared' '--enable-soap' '--with-xmlrpc' '--with-openssl' '--with-mcrypt' '--with-pcre-regex' '--with-sqlite3' '--with-zlib' '--enable-bcmath' '--with-iconv' '--with-bz2' '--enable-calendar' '--with-curl' '--with-cdb' '--enable-dom' '--enable-exif' '--enable-fileinfo' '--enable-filter' '--with-pcre-dir' '--enable-ftp' '--with-gd' '--with-openssl-dir' '--with-jpeg-dir' '--with-png-dir' '--with-freetype-dir' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--with-gettext' '--with-gmp' '--with-mhash' '--enable-json' '--enable-mbstring' '--enable-mbregex' '--enable-mbregex-backtrack' '--with-libmbfl' '--with-onig' '--with-mysql=mysqlnd' '--enable-pdo' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-zlib-dir' '--with-pdo-sqlite' '--with-readline' '--enable-session' '--enable-shmop' '--enable-simplexml' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--with-libxml-dir' '--with-xsl' '--enable-zip' '--enable-mysqlnd-compression-support' '--with-pear'
make && make install

 

 


 

 

标签:enable,--,mysqlnd,devel,gd,linux,php5,安装,dir
From: https://www.cnblogs.com/kangleweb/p/16967291.html

相关文章

  • Win,M1Mac上安装jupyter的MATLAB支持插件的方法
    tags:MATLABWinMacTips写在前面11月的最后一天了,总结一下支持MATLAB的一个jupyter的插件,有了这个你就可以在​​jupyternotebook​​​或者​​jupyterlab​​上......
  • VMwarePro16安装Ubuntu16.04图文教程
    1.下载Ubuntu16.04的镜像文件2.下载和安装VMwarePro16主要是第三个链接的秘钥:3.VMware中创建Ubuntu16.04创建新的虚拟机自定义安装兼容性选择,这里直接下一步选择稍后安装......
  • 工具推荐:Netdata,Linux性能实时监测工具
    工具推荐:Netdata,Linux性能实时监测工具​​​http://www.freebuf.com/sectool/100484.htm​​​安装使用教程:https://linux.cn/article-7576-1.html......
  • GitOps实践之kubernetes安装argocd
    1.什么是argocd1.ArgoCD是Kubernetes的一个声明性GitOps持续交付工具。2.应用程序定义、配置和环境应该是声明性的和版本控制的。应用程序部署和生命周期管理应自动化......
  • linux 中实现将 每一行指定的最后一个出现的特定字符替换为指定字符
     001、[root@PC1test]#lsa.txt[root@PC1test]#cata.txt##测试数据abckbcebcbcbc3445560bcbckkuu[root@PC1test]#reva.txt|s......
  • 安装CAD时弹出 windows installer
    安装过程弹出“windowsinstaller”要选择,一般是重装后出现的问题,卸载不干净存在的问题解决方法是你要找到人家说的那个文件,那我们哪知道在哪里啊,我们需要安装一款软件“L......
  • Linux vi/vim
    所有的UnixLike系统都会内建vi文书编辑器,其他的文书编辑器则不一定会存在。但是目前我们使用比较多的是vim编辑器。vim具有程序编辑的能力,可以主动的以字体颜色辨别......
  • linux 中sed命令删除匹配字符之后、之前的若干行
     001、删除匹配字符之后的若干行[root@PC1test]#lsa.txt[root@PC1test]#cata.txt##测试数据12345678910[root@PC1test]#sed'/5/,......
  • 编译arm_qt-4.5_build出错与Linux vi的使用
     ​​Linux(vi基本用法)​​ 在Linux下,可以键入vimtutor命令,有一个包含实操的vim教程。1.VI的三种命令模式 1)Command(命令)模式,用于输入命令; 2)......
  • 在win7下与linux虚拟机Ubuntu建立共享文件夹
      使用vmware(vmwareworkstation9.0.2)下sharedfolders功能实现vmware中文件传输,可参考vmware帮助中settingupsharedfolders。 1.安装vmtoolsforlinux: 选......