今天在 Red Hat AS4 下装 subversion1.5.0 结果出了很多的问题 所以把过程共享出来供大家参考
1.下载 subversion-1.5.0.tar.gz & subversion-deps-1.5.0.tar.gz 两个文件
A. subversion-1.5.0-rc5.zip
http://subversion.tigris.org/downloads/subversion-1.5.0-rc5.tar.gz
B. subversion-deps-1.5.0-rc5.tar.gz
http://subversion.tigris.org/downloads/subversion-deps-1.5.0-rc5.tar.gz
有些同学只下载了第一个文件 会在安装 ./configure 遇到下列错误
提示你 neno 没有安装 zlib 找不到
1.下载 subversion-1.5.0.tar.gz & subversion-deps-1.5.0.tar.gz 两个文件
http://subversion.tigris.org/downloads/subversion-1.5.0-rc5.tar.gz
B. subversion-deps-1.5.0-rc5.tar.gz
http://subversion.tigris.org/downloads/subversion-deps-1.5.0-rc5.tar.gz
有些同学只下载了第一个文件 会在安装 ./configure 遇到下列错误
提示你 neno 没有安装 zlib 找不到
On Tue, Dec 12, 2006 at 01:28:55PM -0800, Glenn Duley Smith wrote:
> under freebsd, i get the error in configure:
>
> configure: WebDAV support is enabled
> checking expat.h usability... no
> checking expat.h presence... no
> checking for expat.h... no
> checking for xml2-config... no
> configure: error: no XML parser was found: expat or libxml 2.x required
在 deps 包里会多以下图列文件
2. 解压 subversion-1.5.0.tar.gz 到 subversion 目录
tar xzvf subversion-1.5.0.tar.gz
3. 解压 xzvf subversion-deps-1.5.0 到 subversion 同一目录
tar xzvf subversion-deps-1.5.0.tar.gz
4. ./configure --with-apxs=/usr/local/apache2/bin/apxs --prefix=/opt/svn --with-apr=/usr/local/apache2 --with-apr-util=/usr/local/apache2 --with-ssl --enable-maintainer-mode --with-zlib
如果出现
On Tue, Dec 12, 2006 at 01:28:55PM -0800, Glenn Duley Smith wrote:
> under freebsd, i get the error in configure:
>
> configure: WebDAV support is enabled
> checking expat.h usability... no
> checking expat.h presence... no
> checking for expat.h... no
> checking for xml2-config... no
> configure: error: no XML parser was found: expat or libxml 2.x required
这个时候 rpm -qa expat2 检查是否安装 expat2
如果没有请在 http://sourceforge.net/project/showfiles.php?group_id=10127 下载 expat2.tar.gz
tar -xvf expat2.tar.gz
export CPPFLAGS=-I/usr/local/expat-2.0.1/lib
这个时候 在subvision 下执行 ./configure 命令 会显示 不会出现 expat.h... no
如果还依然出现以下2行错误
> checking for xml2-config... no
> configure: error: no XML parser was found: expat or libxml 2.x required
是由于neon没有安装
cd /usr/local/subversion-1.5.0/neon
./configure --with-ssl
make
make install
这个时候 到
cd /usr/local/subversion-1.5.0/
./configure --with-apxs=/usr/local/apache2/bin/apxs
--prefix=/opt/svn --with-apr=/usr/local/apache2
--with-apr-util=/usr/local/apache2 --with-ssl --enable-maintainer-mode
--with-zlib
这个时候只会出现一个错误
>checking zlib.h usability ... no
>checking zlib.h presence ... no
>checking zlib.h... no
>configure: error: subversion requires zlib
按照以下步骤来做 就行了
1) cd /usr/local/subversion-1.5.0/zlib
2) ./configure --shared
3) make
4) cd ..
5) ./configure CPPFLAGS="-Izlib/ -Lzlib/"
6) make