AIX下编译安装Subversion

 
已经写了很久了,由于已经离开上家用AIX的公司今天在邮箱里发现这篇文章的备份,故在此贴下吧。
环境AIX 5.3。
  先去Subversion的网上把相关的包都下下来吧。
1、安装apr
[/u3/up070427/.cldev/pkgs/apr] >>> ./configure --prefix=/u3/up070427/.cldev/httpd
[/u3/up070427/.cldev/pkgs/apr] >>> make
[/u3/up070427/.cldev/pkgs/apr] >>> make install
[/u3/up070427/.cldev/pkgs/apr] >>> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/u3/up070427/.cldev/subversion/lib
[/u3/up070427/.cldev/pkgs/apr] >>> export PATH=$PATH:/u3/up070427/.cldev/subversion/bin
[/u3/up070427/.cldev/pkgs/apr] >>> cp apr-1-config apr-config

2、安装apr-util
[/u3/up070427/.cldev/pkgs/apr-util-1.3.10] >>> ./configure --prefix=/u3/up070427/.cldev/httpd --with-apr=/u3/up070427/.cldev/httpd
[/u3/up070427/.cldev/pkgs/apr-util-1.3.10] >>> make
[/u3/up070427/.cldev/pkgs/apr-util-1.3.10] >>> make install

3、zlib
[/u3/up070427/.cldev/pkgs/subversion-1.6.15/zlib] >>> ./configure --prefix=/u3/up070427/.cldev/subversion-dep
[/u3/up070427/.cldev/pkgs/subversion-1.6.15/zlib] >>> make
[/u3/up070427/.cldev/pkgs/subversion-1.6.15/zlib] >>> make install

4、sqlite-amalgamation
[/u3/up070427/.cldev/pkgs/subversion-1.6.15/sqlite-amalgamation] >>> ./configure --prefix=/u3/up070427/.cldev/subversion-dep
[/u3/up070427/.cldev/pkgs/subversion-1.6.15/sqlite-amalgamation] >>> make
[/u3/up070427/.cldev/pkgs/subversion-1.6.15/sqlite-amalgamation] >>> make install

5、subversion
[/u3/up070427/.cldev/pkgs/subversion-1.6.15] >>> ./configure --prefix=/u3/up070427/.cldev/subversion --with-apr=/u3/up070427/.cldev/httpd --with-apr-util=/u3/up070427/.cldev/httpd --with-sqlite=/u3/up070427/.cldev/subversion-dep --with-zlib=/u3/up070427/.cldev/subversion-dep/
[/u3/up070427/.cldev/pkgs/subversion-1.6.15] >>> make
[/u3/up070427/.cldev/pkgs/subversion-1.6.15] >>> make install

安装后发现svn: Unrecognized URL scheme for ... 不能使用,查资料后得知是
没有安装neon包,看来subversion-dep里的所有东西都需要安装,在安装neon时报
找不到libxml2,之后 先安装之

[/u3/up070427/.cldev/pkgs/libxml2-2.7.8] >>> ./configure --prefix=/u3/up070427/.cldev/subversion-dep
[/u3/up070427/.cldev/pkgs/libxml2-2.7.8] >>> make
[/u3/up070427/.cldev/pkgs/libxml2-2.7.8] >>> make install

[/u3/up070427/.cldev/pkgs/subversion-1.6.15/neon] >>> ./configure --prefix=/u3/up070427/.cldev/subversion-dep --with-libs=/u3/up070427/.cldev/subversion-dep/
[/u3/up070427/.cldev/pkgs/subversion-1.6.15/neon] >>> make
[/u3/up070427/.cldev/pkgs/subversion-1.6.15/neon] >>> make install


[/u3/up070427/.cldev/pkgs/subversion-1.6.15/neon] >>> export CFLAGS=-I/u3/up070427/.cldev/subversion-dep/include
[/u3/up070427/.cldev/pkgs/subversion-1.6.15/neon] >>>export CPPFLAGS=-I/u3/up070427/.cldev/subversion-dep/include
[/u3/up070427/.cldev/pkgs/subversion-1.6.15/neon] >>>export LDFLAGS=-L/u3/up070427/.cldev/subversion-dep/lib

[/u3/up070427/.cldev/pkgs/subversion-1.6.15/serf] >>> ./configure --prefix=/u3/up070427/.cldev/subversion-dep --with-apr=/u3/up070427/.cldev/httpd --with-apr-util=/u3/up070427/.cldev/httpd --with-zlib=/u3/up070427/.cldev/subversion-dep/
[/u3/up070427/.cldev/pkgs/subversion-1.6.15/serf] >>> make
编译的时候报
/usr/include/openssl/pq_compat.h", line 1.3: 1506-218 (E) Unknown
preprocessing directive #IBM_PROLOG_BEGIN_TAG.
"/usr/include/openssl/pq_compat.h", line 2.3: 1506-218 (E) Unknown
preprocessing directive #This.
"/usr/include/openssl/pq_compat.h", line 4.3: 1506-220 (E) #line value
53ssl985 must contain only decimal digits.
"/usr/include/openssl/pq_compat.h", line 4.12: 1506-288 (W) Expecting
file name or new-line character on #line directive.
...

类似的错误,F***
再装下openssl
./config --prefix=/u3/up070427/.cldev/subversion-dep
期间报了一大堆locale的问题,暂且先不管
_ALL = "zh_CN.GB18030",
LC__FASTMSG = "true",
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
making links in crypto/modes...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = "zh_CN.GB18030",
LC__FASTMSG = "

make;make install


[/u3/up070427/.cldev/pkgs/subversion-1.6.15/serf] >>> ./configure --prefix=/u3/up070427/.cldev/subversion-dep --with-apr=/u3/up070427/.cldev/httpd --with-apr-util=/u3/up070427/.cldev/httpd --with-openssl=/u3/up070427/.cldev/subversion-de

  (转载时请注明作者和出处。未经许可,请勿用于商业用途)

  更多文章请访问我的Blog: http://www.cnblogs.com/logicbaby
posted @ 2011-07-03 16:04  陈龙的blog  阅读(2490)  评论(1编辑  收藏  举报