zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    关于findViewById返回空指针的错误
    android客户端向服务器发送图片和文字,类似于发微博。能用json格式发送吗?
    nodejs 学习资料大全
    篇章三:[AngularJS] 使用AngularCSS動態載入CSS
    篇章二:[AngularJS] 使用AngularAMD動態載入Service
    篇章一:[AngularJS] 使用AngularAMD動態載入Controller
    Angular 资料大集合
    js-音乐播放器,播放|暂停|滑块的功能
    JS-以鼠标位置为中心的滑轮放大功能demo1
    使用 Electron 构建桌面应用(拖动控制篇)
  • 原文地址:https://www.cnblogs.com/logicbaby/p/2096810.html
Copyright © 2011-2022 走看看