电脑技术学习

Freebsd7.0+Apache2.2+MySQL5+PHP5

dn001

  解压缩

  #tar zxvf php-5.2.5.tar.gz

  #cd php-5.2.5

  配置

  # ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql

  出现如下错误提示:

  Sorry, I cannot run apxs. Possible reasons follow:

  1. Perl is not installed

  2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs

  3. Apache was not built using --enable-so (the apxs usage page is displayed)

  The output of /usr/local/apache/bin/apxs follows:

  ./configure: /usr/local/apache/bin/apxs: not found

  configure: error: Aborting

  表明没有安装perl

  下载perl进行安装(去http://www.perl.com下载最新版本,我从别的网站下载了个5.8版本make时死活过不去)

  #tar xzvf perl-5.10.0.tar.gz

  #sh Configure -de

  #make

  #make test

  #make install

  安装完perl后还是提示上述错误,

  我就去apche的源程序中又来了一次下面的动作

  配置

  #./configure --prefix=/usr/local/apache --enable-so --enable-module=rewrite

  编译

  #make

  安装

  #make install

  后重新configure php时出现如下错误:

  configure: error: xml2-config not found. Please check your libxml2 installation.

  安装libxml2

  #tar zxvf libxml2-2.6.31.tar.gz

  #cd libxm2-2.6.31

  #./configure

  #make

  #make install

  安装libxml2后,重新configure php 出现如个错误提示:

标签: