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 downloading the archive with its subsequent unpacking is not particularly suitable, since it entails the probability of errors. Whether it’s a lack of download of some file (ftp) or incorrect rights to folders \ files (archive). All this for an example. But there is a more convenient way to solve this problem. Install svn on hosting.

    1. What is needed?

    To do this, 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. Compiling

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


    1.4. Install (optional, in your system)

    make install

    1.5 We check.

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


    2. Outro.


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

    To complete the picture, you can write an alias on it:
    alias svn=/home/user/utils/svn
    where user is your user, and utils is the folder where the file is located.

    Good luck

    Also popular now: