wiki:Dev/build/subversion

subversion

build on Windows

  • Windows Vista Ultimate x64 SP1
  • Microsoft Visual Studio 2008 Professional Edition

source

build

  • unzip subversion-1.6.13.zip
  • tar xzf neon-0.29.4.tar.gz
  • move neon-0.29.4 subversion-1.6.13\neon
    • neon.makの修正は不要
  • tar xzf zlib-1.2.5.tar.gz
  • move zlib-1.2.5 subversion-1.6.13\zlib
  • tar xzf sqlite-amalgamation-3.7.2.tar.gz
  • move sqlite-3.7.2 subversion-1.6.13\sqlite-amalgamation

build BDB

  • tar xzf db-4.8.30.tar.gz
  • db-4.8.30\build_windows\Berkeley_DB.sln
    • ビルド => ソリューションのビルド
    • Debug/Release
  • mkdir db4-win32\bin db4-win32\include db4-win32\lib
    • xcopy db-4.8.30\build_windows\Win32\Debug\*.dll db4-win32\bin
    • xcopy db-4.8.30\build_windows\Win32\Release\*.dll db4-win32\bin
    • xcopy db-4.8.30\build_windows\db.h db4-win32\include
    • xcopy db-4.8.30\build_windows\db_cxx.h db4-win32\include
    • xcopy db-4.8.30\build_windows\Win32\Debug\*.lib db4-win32\lib
    • xcopy db-4.8.30\build_windows\Win32\Release\*.lib db4-win32\lib
  • move db4-win32 subversion-1.6.13\db4-win32

build mod_dav_fs

  • unzip httpd-2.2.16-win32-src.zip
  • perl cvtdsp.pl -2005 httpd-2.2.16
  • httpd-2.2.16\Apache.dsw
    • 「すべてはい」
    • mod_dav_fs => ビルド
    • Debug/Release
  • move httpd-2.2.16 subversion-1.6.13\httpd

build svn

  • cd subversion-1.6.13
  • python gen-make.py -t vcproj --vsnet-version=2008 --with-httpd=httpd
  • subversion_vcnet.sln
    • ビルド => __ALL_TEST__のビルド

build on CentOS

  • CentOS release 5.5 (Final)
  • no root privilege
  • gcc -v
    Target: x86_64-redhat-linux
    コンフィグオプション: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
    スレッドモデル: posix
    gcc バージョン 4.1.2 20080704 (Red Hat 4.1.2-48)
    
  • openssl version
    OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
    
  • grep VERSION /usr/include/zlib.h
    #define ZLIB_VERSION "1.2.3"
    

source

extract

  • tar xzf subversion-1.6.13.tar.gz
  • tar xzf neon-0.29.4.tar.gz
  • mv neon-0.29.4 subversion-1.6.13/neon
  • tar xzf sqlite-amalgamation-3.7.2.tar.gz
  • mv sqlite-3.7.2 subversion-1.6.13/sqlite-amalgamation
  • tar xzf httpd-2.2.17.tar.gz
  • cp -a httpd-2.2.17/srclib/apr subversion-1.6.13/
  • cp -a httpd-2.2.17/srclib/apr-util subversion-1.6.13/
  • mv httpd-2.2.17 subversion-1.6.13/httpd

build

build expat

  • cd subversion-1.6.13/apr-util/xml/expat/
  • ./configure
  • make
  • cp -a libexpat.la lib/
  • cp -a .libs/libexpat.so.0.5.0 lib/.libs/libexpat.so

build svn

  • cd ../../../
  • ./configure --with-ssl --enable-shared=no --without-berkeley-db --with-apache-libexecdir=no --prefix=$HOME/local/$OSTYPE
  • make
  • make install

build on MacOS X

  • Darwin 10.4.0
  • no root privilege
  • gcc -v
    Target: i686-apple-darwin10
    Configured with: /var/tmp/gcc/gcc-5664~38/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
    Thread model: posix
    gcc version 4.2.1 (Apple Inc. build 5664)
    
  • openssl version
    OpenSSL 0.9.8l 5 Nov 2009
    
  • grep VERSION /usr/include/zlib.h
    #define ZLIB_VERSION "1.2.3"
    
  • sqlite3 --version
    3.6.12
    
  • httpd -V
    Server version: Apache/2.2.14 (Unix)
    Server built:   Feb 10 2010 22:22:39
    Server's Module Magic Number: 20051115:23
    Server loaded:  APR 1.3.8, APR-Util 1.3.9
    Compiled using: APR 1.3.8, APR-Util 1.3.9
    Architecture:   64-bit
    Server MPM:     Prefork
      threaded:     no
        forked:     yes (variable process count)
    

source

extract

  • tar xzf subversion-1.6.13.tar.gz
  • tar xzf neon-0.29.4.tar.gz
  • mv neon-0.29.4 subversion-1.6.13/neon

build

  • cd subversion-1.6.13
  • ./configure --with-ssl --enable-shared=no --without-berkeley-db --with-apache-libexecdir=no --prefix=$HOME/local/$OSTYPE
  • make
  • make install
Last modified 7 years ago Last modified on Oct 22, 2010 2:48:42 PM

Attachments (1)

Download all attachments as: .zip