php安装
来源:互联网 发布:淘宝客怎么找商家 编辑:程序博客网 时间:2024/05/03 06:42
cd php-xx
(若安装pgsql,pdo-pgsql支持,要安装pear包就需要安装zlib)
./configure
--prefix=/usr/local/php
--with-pgsql=/usr/local/pgsql
--with-pdo-pgsql=/usr/local/pgsql/bin
--with-apxs2=/usr/local/apache2/bin/apxs
--enable-mbstring=all
--enable-mbregex
--with-gd
--with-freetype-dir=/usr/local
--with-jpeg-dir=/usr/local
--with-png-dir=/usr/local
--enable-gd-native-ttf
--enable-gd-imgstrttf
--with-zlib
--with-ttf
--with-gdbm
--with-gettext
--with-iconv
--with-png
--with-xml
--enable-calendar
make
make install
外挂模块安装
(以下以pgsql为例)
cd /ext
cd pgsql
phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-pgsql=/usr/local/pgsql
make
make install
安装pear Mail包
由于Mail 包之间有依赖性,所以在安装的时候要注意安装顺序
下面是我的安装过程
[root@host118 files]# ls
Mail-1.2.0b1.tar Mail_mimeDecode-1.5.0 myscript.php Net_Socket-1.0.9.tar php-5.2.6.tar.gz testa
Mail_Mime-1.5.2.tar Mail_mimeDecode-1.5.0.tar Net_SMTP-1.3.1.tar package.xml phpinfo.txt testb
[root@host118 files]# pear install Net_Socket-1.0.9.tar
install ok: channel://pear.php.net/Net_Socket-1.0.9
[root@host118 files]# pear install Net_SMTP-1.3.1.tar
Did not download optional dependencies: pear/Auth_SASL, use --alldeps to download automatically
pear/Net_SMTP can optionally use package "pear/Auth_SASL"
install ok: channel://pear.php.net/Net_SMTP-1.3.1
[root@host118 files]# pear install Mail-1.2.0b1.tar
Did not download optional dependencies: pear/Net_SMTP, use --alldeps to download automatically
install ok: channel://pear.php.net/Mail-1.2.0b1
[root@host118 files]# pear install Mail_Mime-1.5.2.tar
pear/Mail_Mime requires package "pear/Mail_mimeDecode"
No valid packages found
install failed
[root@host118 files]# pear install Mail_mimeDecode-1.5.0
[root@host118 files]# pear install Mail_mimeDecode-1.5.0.tar
pear/Mail_mimeDecode requires package "pear/Mail_Mime" (version >= 1.4.0, excluded versions: 1.4.0)
No valid packages found
install failed
[root@host118 files]# pear install Mail_mimeDecode-1.5.0.tar Mail_Mime-1.5.2.tar
install ok: channel://pear.php.net/Mail_mimeDecode-1.5.0
install ok: channel://pear.php.net/Mail_Mime-1.5.2
- php安装
- php安装
- 安装php
- PHP安装
- php 安装
- PHP 安装
- 安装php
- 安装php
- PHP安装
- php安装
- php 安装
- php安装
- php安装
- php安装
- PHP安装
- php 安装
- 安装PHP。
- 安装PHP
- 税务所核查公司地址记
- OLE方式 word中插入图片
- 家庭机器人保姆
- 一道逻辑题
- Windows多线程多任务设计初步
- php安装
- .NET之二——抽象类、接口与多态性
- Python 读取键盘输入字符
- Beginning ASP.NET 3.5 in C# 2008 From Novice to Professional Second Edition(ASP.NET 3.5(C#2008)入门 )翻译-第十章(4)
- AjaxControlToolKit ----CalendarExtender(日历扩展控件)的简单使用方法
- 北大acm 题型分类
- Directshow+WMF(Windows Media Format)实现无缝播放视频
- 软件工程中10个最重要的理念
- 自定义MFC的文件夹浏览控件类