Page 1 of 7 123 ... LastLast
Results 1 to 10 of 62

Thread: Subversion

  1. #1
    Join Date
    Jul 2007
    Posts
    6

    Default Subversion

    Hi,

    I installed subversion, and all went ok:

    wget http://subversion.tigris.org/downloa...n-1.3.2.tar.gz tar -xzvf subversion-1.3.2.tar.gz
    cd subversion-1.3.2
    ./configure --prefix=$HOME --without-berkeley-db --with-zlib --with-ssl
    make
    make install

    (version 1.4 didn't work)

    But when i try to connect, he ask for password and say that dir doesn't exists. Anyone else running svn on hostmonster?

    thanks!

    Henrique

  2. #2
    Join Date
    Nov 2006
    Posts
    10

    Default

    Quote Originally Posted by hgtesta View Post
    Hi,

    I installed subversion, and all went ok:

    wget http://subversion.tigris.org/downloa...n-1.3.2.tar.gz tar -xzvf subversion-1.3.2.tar.gz
    cd subversion-1.3.2
    ./configure --prefix=$HOME --without-berkeley-db --with-zlib --with-ssl
    make
    make install

    (version 1.4 didn't work)

    But when i try to connect, he ask for password and say that dir doesn't exists. Anyone else running svn on hostmonster?

    thanks!

    Henrique
    Did you ever get subversion working? I, too, would like to install and use it.
    http://www.highcorral.com/
    Innovative and affordable web solutions

  3. #3
    Join Date
    Nov 2006
    Posts
    557

    Default

    Sign Up Now!
    Unlimited Storage, Unlimited Transfer, Host Unlimited domain names, 1 Free Domain Name
    HostMonster Features | HostMonster Help Desk | Become a HostMonster Affiliate
    (866) 573-4678 | Open a support ticket.

  4. #4

    Default Just installed Subversion 1.4.6 on HostMonster.com

    Just follow these steps.

    # wget http://subversion.tigris.org/downloa...-1.4.6.tar.bz2
    # tar xjvf subversion-1.4.6.tar.bz2
    # cd subversion-1.4.6
    # wget http://apache.karegen.com/apr/apr-1.2.12.tar.bz2
    # tar xjvf apr-1.2.12.tar.bz2
    # mv apr-1.2.12 apr
    # cd apr
    # ./buildconf
    # ./configure --prefix=$HOME/bin
    # make
    # make install
    # cd ..
    # wget http://apache.karegen.com/apr/apr-util-1.2.12.tar.bz2
    # tar xjvf apr-util-1.2.12.tar.bz2
    # mv apr-util-1.2.12 apr-util
    # cd apr-util
    # ./buildconf
    # ./configure --with-apr=$HOME/bin/bin/apr-1-config --prefix=$HOME/bin
    # make
    # make install
    # cd ..
    # ./configure --disable-shared --prefix=$HOME/bin
    # make
    # make install

    ..and woila!

    Then add those lines in your .bashrc :

    PATH=$PATH:$HOME/bin/bin
    export PATH

    # cd
    # svnadmin create svn

    should work.

    I created a svn repository and with Tortoise SVN, with svn+ssh method I can checkout, checkin, etc., etc.,.

    Hope this helps everyone and I didn't forget any steps.
    Last edited by hostmonster_kullanicisi; 12-23-2007 at 05:55 PM. Reason: forgot a line

  5. #5
    Join Date
    Jan 2008
    Posts
    2

    Thumbs up

    Quote Originally Posted by hostmonster_kullanicisi View Post
    Hope this helps everyone and I didn't forget any steps.
    Thanks heaps. It worked for me. Ill just chuck it in a code block here in case anyone wants to copy it (although check for correct versions and subsititute, since the urls are no longer valid when versions will get updated)

    Code:
    wget http://subversion.tigris.org/downloads/subversion-1.4.6.tar.bz2
    tar xjvf subversion-1.4.6.tar.bz2
    cd subversion-1.4.6
    wget http://apache.karegen.com/apr/apr-1.2.12.tar.bz2
    tar xjvf apr-1.2.12.tar.bz2
    mv apr-1.2.12 apr
    cd apr
    ./buildconf
    ./configure --prefix=$HOME/bin
    make
    make install
    cd ..
    wget http://apache.karegen.com/apr/apr-util-1.2.12.tar.bz2
    tar xjvf apr-util-1.2.12.tar.bz2
    mv apr-util-1.2.12 apr-util
    cd apr-util
    ./buildconf
    ./configure --with-apr=$HOME/bin/bin/apr-1-config --prefix=$HOME/bin
    make
    make install
    cd ..
    ./configure --disable-shared --prefix=$HOME/bin
    make
    make install
    also, you will probably need to add ~/bin/bin to $PATH since this is where svn gets installed
    A quick and dirty way to permanently do this (should clean up .bash_profile later) is:
    Code:
    echo "PATH=\$PATH:\$HOME/bin/bin/" >> ~/.bash_profile
    echo "export PATH" >> ~/.bash_profile
    source ~/.bash_profile
    after this, you should be able to run svn:
    Code:
    svn
    Last edited by hyperwired; 01-03-2008 at 10:20 PM.

  6. #6
    Join Date
    Jan 2008
    Location
    http://www.webappdepot.com
    Posts
    4

    Default

    since the svn port is not open, I was hoping ssh tunneling would work,
    but svn+ssh doesn't work, I am getting this error:

    bash: svnserve: command not found
    svn: Connection closed unexpectedly

    because my bin folder is not in the default path?


    Also, has anyone been able to get svn working with apache?

  7. #7
    Join Date
    Jan 2008
    Posts
    13

    Default

    You need to make sure that the PATH to svn binaries is in your
    .bashrc file and not your .bash_profile.

    For ancient reasons they compartmentalized them, but most people these days just put everything in to .bashrc and then add this line to .bash_profile

    source .bashrc

    .bash_profile is only loaded if you actually have a "login" session.
    .bashrc is always loaded for your user

    Also, you need to build svn with the serf library so http protocols work, for checking out etc. I don't know if you would need it for pushing up to the server as I use bzr instead of svn for source control.


    Summary:


    First:

    add bin path to .bashrc


    If that doesn't work:

    Build svn with:
    apr
    apr-util
    serf (neon doesn't seem to work)
    Last edited by Moniker; 01-06-2008 at 06:18 PM.

  8. #8
    Join Date
    Jan 2008
    Location
    http://www.webappdepot.com
    Posts
    4

    Default

    Quote Originally Posted by Moniker View Post
    You need to make sure that the PATH to svn binaries is in your
    .bashrc file and not your .bash_profile.

    For ancient reasons they compartmentalized them, but most people these days just put everything in to .bashrc and then add this line to .bash_profile

    source .bashrc

    .bash_profile is only loaded if you actually have a "login" session.
    .bashrc is always loaded for your user

    Thanks Moniker. It's exactly as you described.

    PATH=$PATH:$HOME/bin was set from .bash_profile. When I moved it to .bashrc, svn+ssh worked.

  9. #9
    Join Date
    Jan 2008
    Posts
    1

    Default

    OK .. I followed the direction, and I *think* I installed subversion correctly. But I want to confirm couple things.
    First, Which directory do I need to install subversion? I installed it in the root directory. Did I do it correctly? Or it doesn't even matter.

    Second, I am also trying to install WebSVN but I keep having this error

    Error running this command: svn --config-dir /tmp --version
    sh: svn: command not found

    Does anyone know what this error mean and how I can fix this?

  10. #10
    Join Date
    Jan 2008
    Posts
    2

    Default

    To get Subversion installed on my account, I did the following:

    For WebDAV access (access as in read, not in serve) to work, you need both Neon and BerkeleyDB. These are installed by doing the following:

    BerkeleyDB:
    Code:
    cd
    wget http://download.oracle.com/berkeley-db/db-4.5.20.tar.gz
    tar -zxvf db-4.5.20.tar.gz
    cd db-4.5.20/build_unix
    ../dist/configure --prefix=$HOME/usr
    make -j8
    make install
    Neon (Subversion 1.4.6 needs Neon 0.25.5, so don't be a smartass and download the newest version):
    Code:
    cd
    wget http://www.webdav.org/neon/neon-0.25.5.tar.gz
    tar -zxvf neon-0.25.5.tar.gz
    cd neon-0.25.5
     ./configure --prefix=$HOME/usr --with-ssl=openssl
    make -j8
    make install
    To make sure that all the binaries and libraries are found, do the following to add the right paths to your .bashrc
    Code:
    echo "export PATH=\$PATH:\$HOME/usr/bin" >> ~/.bashrc
    echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$HOME/usr/lib" >> ~/.bashrc
    source ~/.bashrc
    Now install Subversion (you also need APR stuff).
    Code:
    cd
    wget http://subversion.tigris.org/downloads/subversion-1.4.6.tar.gz
    tar -zxvf subversion-1.4.6.tar.gz
    cd subversion-1.4.6
    First install APR (inspired by this thread)
    Code:
    ### Included from earlier post in this thread
    wget http://apache.karegen.com/apr/apr-1.2.12.tar.bz2
    tar -jxvf apr-1.2.12.tar.bz2
    mv apr-1.2.12 apr
    cd apr
    ./buildconf
    ./configure --prefix=$HOME/usr
    make -j8
    make install
    cd ..
    wget http://apache.karegen.com/apr/apr-util-1.2.12.tar.bz2
    tar -jxvf apr-util-1.2.12.tar.bz2
    mv apr-util-1.2.12 apr-util
    cd apr-util
    ./buildconf
    ./configure --with-apr=$HOME/usr/bin/apr-1-config --prefix=$HOME/usr
    make -j8
    make install
    cd ..
    Now, Subversion installation continues
    Code:
    ./configure --disable-shared --prefix=$HOME/usr --with-berkeley-db=$HOME/usr --with-neon=$HOME/usr
    make -j8
    make install
    Now, you can remove all the source directories used:
    Code:
    cd
    rm db-4.5.20.tar.gz
    rm -rf db-4.5.20
    rm neon-0.25.5.tar.gz
    rm -rf neon-0.25.5
    rm subversion-1.4.6.tar.gz
    rm -rf subversion-1.4.6
    And you're done!

    The full script if you're lazy:
    Code:
    #!/usr/bin/bash
    
    cd
    wget http://download.oracle.com/berkeley-db/db-4.5.20.tar.gz
    tar -zxvf db-4.5.20.tar.gz
    cd db-4.5.20/build_unix
    ../dist/configure --prefix=$HOME/usr
    make -j8
    make install
    
    cd
    wget http://www.webdav.org/neon/neon-0.25.5.tar.gz
    tar -zxvf neon-0.25.5.tar.gz
    cd neon-0.25.5
     ./configure --prefix=$HOME/usr --with-ssl=openssl
    make -j8
    make install
    
    echo "export PATH=\$PATH:\$HOME/usr/bin" >> ~/.bashrc
    echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$HOME/usr/lib" >> ~/.bashrc
    source ~/.bashrc
    
    cd
    wget http://subversion.tigris.org/downloads/subversion-1.4.6.tar.gz
    tar -zxvf subversion-1.4.6.tar.gz
    cd subversion-1.4.6
    
    ### Included from earlier post in this thread
    wget http://apache.karegen.com/apr/apr-1.2.12.tar.bz2
    tar -jxvf apr-1.2.12.tar.bz2
    mv apr-1.2.12 apr
    cd apr
    ./buildconf
    ./configure --prefix=$HOME/usr
    make -j8
    make install
    cd ..
    wget http://apache.karegen.com/apr/apr-util-1.2.12.tar.bz2
    tar -jxvf apr-util-1.2.12.tar.bz2
    mv apr-util-1.2.12 apr-util
    cd apr-util
    ./buildconf
    ./configure --with-apr=$HOME/usr/bin/apr-1-config --prefix=$HOME/usr
    make -j8
    make install
    cd ..
    
    ./configure --disable-shared --prefix=$HOME/usr --with-berkeley-db=$HOME/usr --with-neon=$HOME/usr
    make -j8
    make install
    
    cd
    rm db-4.5.20.tar.gz
    rm -rf db-4.5.20
    rm neon-0.25.5.tar.gz
    rm -rf neon-0.25.5
    rm subversion-1.4.6.tar.gz
    rm -rf subversion-1.4.6
    Copy-paste to ~/install_svn.sh, then do:
    Code:
    chmod +x ~/install_svn.sh
    ~/install_svn.sh
    And the magic starts!

    You're left with a ~70MB ~/usr dir and a fully working copy of Subversion.

    I redid this turorial because I needed WebDAV access (svn:externals).

    Good luck!
    Last edited by PieterN; 01-24-2008 at 03:16 PM. Reason: WebDAV access ambiguity

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •