en:developer:install_svn
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:developer:install_svn [2017/07/25 05:48] – [OpenSSL, Scons, Serf - for newer versions of Subversion (e.g. 1.8.18)] anupama | en:developer:install_svn [2023/03/13 01:46] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== SVN Installation ====== | ||
| - | ===== Windows ===== | ||
| - | ===== Mac ===== | + | ====== SVN Installation ====== |
| + | |||
| + | ===== Windows | ||
| - | ===== Linux ===== | + | ===== Linux and Mac ===== |
| This covers installing subversion from a source tarball, for client-type uses. This document is based on an install of Subversion-1.4.3.tar.gz, | This covers installing subversion from a source tarball, for client-type uses. This document is based on an install of Subversion-1.4.3.tar.gz, | ||
| Line 95: | Line 95: | ||
| ''# | ''# | ||
| + | ==== Installing older versions of Subversion ==== | ||
| === Install Neon === | === Install Neon === | ||
| Check if you have neon by running: | Check if you have neon by running: | ||
| Line 106: | Line 107: | ||
| If you have a suitable version of neon, make a note of the neon home directory for use in the last step, [[# | If you have a suitable version of neon, make a note of the neon home directory for use in the last step, [[# | ||
| - | If you don't have neon, or need to install a newer version, get a recent copy it from the [[http:// | + | If you don't have neon, or need to install a newer version, get a recent copy it from the [[http:// |
| < | < | ||
| cd / | cd / | ||
| Line 143: | Line 144: | ||
| After following these instructions in the fail message, re-run the configure step and then proceed to make and make install. | After following these instructions in the fail message, re-run the configure step and then proceed to make and make install. | ||
| - | For subversion 1.8.18, follow the instructions that the configure error message provides: | + | Now, subversion is installed in ''/ |
| + | < | ||
| + | export PATH=/ | ||
| + | </ | ||
| + | |||
| + | ==== Installing newer versions of Subversion like Subversion 1.8.18 ==== | ||
| + | You'd need apr and apr-util built and installed, as described further above. | ||
| + | |||
| + | I'm assuming we unpack the following tar.gz files into a '' | ||
| + | |||
| + | 1. **Scons**\\ Grab the tar.gz file at https:// | ||
| + | and unpack into a '' | ||
| + | |||
| + | < | ||
| + | cd sources | ||
| + | mkdir scons | ||
| + | mv scons-local-2.3.0.tar.gz scons/. | ||
| + | cd scons | ||
| + | tar -xvzf scons-local-2.3.0.tar.gz | ||
| + | (You can put the tar file back to where it used to be) | ||
| + | </ | ||
| + | |||
| + | 2. **OpenSSL**\\ Grab openssl from https:// | ||
| + | |||
| + | < | ||
| + | cd sources | ||
| + | tar -xvzf openssl-1.0.2l.tar.gz | ||
| + | cd openssl-1.0.2l | ||
| + | |||
| + | export CFLAGS=" | ||
| + | # the above may or may not be needed for successfully compiling up Serf in step 3. | ||
| + | # However the '' | ||
| + | # the solution that fixed Serf compile failures | ||
| + | |||
| + | ./config --openssldir=/ | ||
| + | [For macs, do instead: | ||
| + | ./Configure darwin64-x86_64-cc --openssldir=/ | ||
| + | make | ||
| + | make install | ||
| + | </ | ||
| + | |||
| + | The '' | ||
| + | |||
| + | // | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | |||
| + | 3. **Serf**\\ Grab and unpack serf from http:// | ||
| + | |||
| + | < | ||
| + | cd sources | ||
| + | tar -xvjf serf-1.3.9.tar.bz2 | ||
| + | cd serf-1.3.9 | ||
| + | |||
| + | export CFLAGS=" | ||
| + | # flow on effect from OpenSSL, may not be required there nor here. | ||
| + | |||
| + | ../ | ||
| + | |||
| + | ../ | ||
| + | </ | ||
| + | Between the configure and scons install steps, you may not need to bother doing the scons check step in the Serf README:\\ '' | ||
| + | The '' | ||
| + | https:// | ||
| + | https:// | ||
| + | |||
| + | |||
| + | At the end of installing serf, the installed version of serf should contain '' | ||
| + | |||
| + | // | ||
| + | < | ||
| + | / | ||
| + | / | ||
| + | </ | ||
| + | then it may have nothing to do with exporting CFLAGS with '' | ||
| + | |||
| + | 4. **Subversion**\\ Can now at last compile up a new version of subversion //with serf//: | ||
| + | |||
| + | < | ||
| + | cd sources | ||
| + | tar -xvzf subversion-1.8.18.tar.gz | ||
| + | cd subversion-1.8.18 | ||
| + | </ | ||
| + | |||
| + | [BEGIN: NOT FOR SVN 1.9.9 AND/OR MAC OSX | ||
| + | |||
| + | If you try configuring SVN 1.8.18, you may get an error about missing sql-lite. | ||
| < | < | ||
| http:// | http:// | ||
| Line 150: | Line 240: | ||
| / | / | ||
| </ | </ | ||
| - | Then re-run the configure command and onwards. | + | Then you' |
| - | Now, subversion | + | Alternatively, you can prepare your subversion |
| + | < | ||
| + | cd sources | ||
| + | wget http:// | ||
| + | unzip sqlite-amalgamation-3071501.zip | ||
| + | mv sqlite-amalgamation-3071501 subversion-1.8.18/ | ||
| + | #needs to be renamed | ||
| + | </ | ||
| + | END] | ||
| + | |||
| + | Now proceed with the usual configure, make and make install. There are two locations in the configure command where Serf should be specified: | ||
| + | |||
| + | < | ||
| + | export CFLAGS=" | ||
| + | # flow on effect from OpenSSL, may not be required there nor here. | ||
| + | |||
| + | LDFLAGS=" | ||
| + | [--disable-neon-version-check and --with-neon are no longer recognised.] | ||
| + | Try adding: --enable-shared | ||
| + | |||
| + | make | ||
| + | make install | ||
| + | </ | ||
| + | |||
| + | // | ||
| + | |||
| + | 5. Add the installed SVN's bin folder to the PATH, such as by exporting it in '' | ||
| + | < | ||
| + | export PATH=/ | ||
| + | (export LD_LIBRARY_PATH=/ | ||
| + | ## stuck doing this only if you didn't compile up Subversion with the | ||
| + | ## configure command' | ||
| + | </ | ||
| ===== Installing Perl: compiling perl from source ===== | ===== Installing Perl: compiling perl from source ===== | ||
| The instructions are from https:// | The instructions are from https:// | ||
en/developer/install_svn.1500961716.txt.gz · Last modified: 2017/07/25 05:48 by anupama
