📜 ⬆️ ⬇️

Installing SVN on almost any hosting (static svn)

0. Intro

Almost always, hosting does not provide svn support for the end user, or this feature comes as an additional paid option, and updating a project with a large number of files is not an easy task. Especially when the changes affected a lot of related files. The old version via ftp or archive downloading with its subsequent unpacking is not particularly suitable, since it entails the likelihood of errors. Whether something is missing a file (ftp) or incorrect permissions on folders \ files (archive). All this for example. But there is a more convenient way to solve this problem. Install svn on hosting.

1. What is needed?

For this you need to build statically svn. To do this, download svn + its dependencies, unpack and compile:

1.1. Download.

wget subversion.tigris.org/downloads/subversion-deps-1.6.5.tar.gz
wget subversion.tigris.org/downloads/subversion-1.6.5.tar.gz


1.2. Unpack.

tar -zxvf subversion-1.6.5.tar.gz
tar -zxvf subversion-deps-1.6.5.tar.gz


1.3. Compile

cd subversion-1.6.5
./configure --with-ssl --without-swig --enable-all-static
make


1.4. Install (optionally, in your system)

make install

1.5 Check.

cd ./subversion/svn
ldd ./svn/svn:
not a dynamic executable


2. Outro.


Now you just need to upload a binary to the hosting, make it executable (chmod + x) and enjoy life.

To complete the picture, you can prescribe an alias for it:
alias svn=/home/user/utils/svn
where user is your user, and utils is the folder where the file is located.
')
Good luck!

Source: https://habr.com/ru/post/74385/


All Articles