CentOS5でSubversion1.8をコンパイルした
問題
CentOS5でSubversionの新しいのをインストールしようとすると、RPMなら依存関係やら、自前でコンパイルするならライブラリがないとか、何かと面倒だけど、やっぱり新しいクライアントでそろえたい。
答え
<材料>
・Subversion ソース
・sqlite ソース
・libserf (オプション)
対応するプロトコルが、file と svn だけなら、Subversion1.8とsqliteのソースをダウンロードしてきて、configureして、make、make install すればよい。
# wget http://ftp.riken.jp/net/apache/subversion/subversion-1.8.8.tar.gz # tar zxf subversion-1.8.8.tar.gz # wget http://www.sqlite.org/2014/sqlite-amalgamation-3080403.zip # unzip sqlite-amalgamation-3080403.zip # mv sqlite-amalgamation-3080403 /usr/local/src/subversion-1.8.8/sqlite-amalgamation # cd subversion-1.8.8 # ./configure # make # make install # svn --version svn, version 1.8.8 (r1568071) compiled Apr 28 2014, 20:32:07 on i686-pc-linux-gnu Copyright (C) 2013 The Apache Software Foundation. This software consists of contributions made by many people; see the NOTICE file for more information. Subversion is open source software, see http://subversion.apache.org/ The following repository access (RA) modules are available: * ra_svn : Module for accessing a repository using the svn network protocol. - with Cyrus SASL authentication - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme
対応するプロトコルに、http、https も欲しかったら、configureオプションに–with-serf を指定する。serfが必要。
# cd /usr/local/src # wget http://opensource.wandisco.com/rhel/5/svn-1.8/RPMS/i686/serf-devel-1.3.4-1.i386.rpm # rpm -i serf-devel-1.3.4-1.i386.rpm # wget http://ftp.riken.jp/net/apache/subversion/subversion-1.8.8.tar.gz # tar zxf subversion-1.8.8.tar.gz # wget http://www.sqlite.org/2014/sqlite-amalgamation-3080403.zip # unzip sqlite-amalgamation-3080403.zip # mv sqlite-amalgamation-3080403 /usr/local/src/subversion-1.8.8/sqlite-amalgamation # cd subversion-1.8.8 # ./configure --with-serf # make # make install # svn --version svn, version 1.8.8 (r1568071) compiled Apr 28 2014, 20:32:07 on i686-pc-linux-gnu Copyright (C) 2013 The Apache Software Foundation. This software consists of contributions made by many people; see the NOTICE file for more information. Subversion is open source software, see http://subversion.apache.org/ The following repository access (RA) modules are available: * ra_svn : Module for accessing a repository using the svn network protocol. - with Cyrus SASL authentication - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme * ra_serf : Module for accessing a repository via WebDAV protocol using serf. - using serf 1.3.4 - handles 'http' scheme - handles 'https' scheme
コメント