JuangaCovas.info

La página personal de Juan Gabriel Covas

Herramientas de usuario

Herramientas del sitio


linux:howtos:build-svn-from-sources

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
Próxima revisiónAmbos lados, revisión siguiente
linux:howtos:build-svn-from-sources [09/07/2022 11:39] – [CentOS 7 minimal: compiling SVN 1.14 from sources] Juanga Covaslinux:howtos:build-svn-from-sources [17/12/2023 10:05] – [Build Subversion from sources for Linux RedHat, CentOS or Ubuntu, including svn 1.14] Juanga Covas
Línea 3: Línea 3:
 -- By Juan Gabriel Covas - 2019 - 2021 -- By Juan Gabriel Covas - 2019 - 2021
  
-How to build Subversion / SVN from Sources (under CentOS 8, CentOS 7 or Ubuntu 18/19/20, so you can use the latest subversion version. This How-To is based on the following old blog post from 2012: [[http://blog.ashodnakashian.com/2012/11/building-subversion-on-ubuntu-12-10/|Building Subversion on Ubuntu 12.10]] but over this time some changes have been made.+How to build Subversion / SVN from Sources (under Rocky Linux 9, CentOS 8, CentOS 7 or Ubuntu 18/19/20, so you can use the latest subversion version. This How-To is based on the following old blog post from 2012: [[http://blog.ashodnakashian.com/2012/11/building-subversion-on-ubuntu-12-10/|Building Subversion on Ubuntu 12.10]] butover timesome changes have been made.
  
 **NOTE:** <wrap hi>This how-to is OK for a subversion client OR updating the binaries of a subversion SERVER that does NOT use Apache or any other stuff.</wrap> Since I'm only interested in ''svn+ssh'' protocol, it's fine for me. Anyway a subversion SERVER requires more setup if you want to use Apache or the ''svn+ssh'' protocol, etc. which is not the purpose of this document. You can check [[linux:howtos:svn-ssh-ubuntu|my notes on setup a subversion server for svn+ssh]] **NOTE:** <wrap hi>This how-to is OK for a subversion client OR updating the binaries of a subversion SERVER that does NOT use Apache or any other stuff.</wrap> Since I'm only interested in ''svn+ssh'' protocol, it's fine for me. Anyway a subversion SERVER requires more setup if you want to use Apache or the ''svn+ssh'' protocol, etc. which is not the purpose of this document. You can check [[linux:howtos:svn-ssh-ubuntu|my notes on setup a subversion server for svn+ssh]]
  
 \\ \\
 +
 +
 +===== Rocky Linux 9: build SVN 1.14 from sources =====
 +
 +Pre-requisites:
 +  yum -y install epel-release
 +
 +  yum install net-tools bind-utils nano wget perl mlocate crontabs cronie rsync openssh-server unzip perl-libwww-perl yum-utils curl psmisc git cpan colordiff pwgen bc perl-LWP-Protocol-https gcc libevent libevent-devel zlib zlib-devel bzip2-devel openssl-devel pcre pcre-devel libmcrypt libmcrypt-devel libjpeg-turbo-utils optipng zlib-devel libuuid-devel gcc make git autoconf automake pkgconfig utf8proc apr apr-devel apr-util apr-util-devel libtool boost python
 +
 +As non-root user:
 +  cd ~; mkdir src; cd src
 +  wget https://dlcdn.apache.org/subversion/subversion-1.14.2.tar.gz
 +  tar xzf subversion-1.14.2.tar.gz
 +  cd subversion-1.14.2
 +
 +  ./get-deps.sh
 +
 +Under Enterprise Linux 9 we must set this env. variable:
 +  $ export LIBTOOL_M4=/usr/share/aclocal
 +
 +Next, autogen:
 +  $ ./autogen.sh
 +  [...]
 +  You can run ./configure now.
 +  [...]
 +
 +Configure...
 +  $ ./configure --with-lz4=internal --with-utf8proc=internal
 +  [...]
 +  config.status: executing svn_private_config.h.tmp commands
 +
 +And make:
 +  $ make
 +
 +To check we pass all tests:
 +  $ make check
 +
 +Finally install:  
 +  $ sudo make install
 +  
 +We should have svn client there:
 +  $ svn --version --quiet
 +  1.14.2
  
 ===== CentOS 8 minimal: build SVN 1.14 from sources ===== ===== CentOS 8 minimal: build SVN 1.14 from sources =====
Línea 20: Línea 63:
 As non-root user: As non-root user:
   cd ~; mkdir src; cd src   cd ~; mkdir src; cd src
-  wget https://dlcdn.apache.org/subversion/subversion-1.14.1.tar.gz +  wget https://dlcdn.apache.org/subversion/subversion-1.14.2.tar.gz 
-  tar xzf subversion-1.14.1.tar.gz +  tar xzf subversion-1.14.2.tar.gz 
-  cd subversion-1.14.1+  cd subversion-1.14.2
  
   ./get-deps.sh   ./get-deps.sh
Línea 61: Línea 104:
 We should have svn client there: We should have svn client there:
   $ svn --version --quiet   $ svn --version --quiet
-  1.14.1+  1.14.2
      
 Don't forget to check the Rebuilding from sources notes here: https://juangacovas.info/doku.php/linux/howtos/build-svn-from-sources#note-on-re-building-subversion-from-sources Don't forget to check the Rebuilding from sources notes here: https://juangacovas.info/doku.php/linux/howtos/build-svn-from-sources#note-on-re-building-subversion-from-sources
linux/howtos/build-svn-from-sources.txt · Última modificación: 02/01/2024 17:27 por Juanga Covas