Upgrading Subversion on Debian Lenny from 1.5.1 to latest (1.7.0)
I am trying to upgrade Subversion on my webserver, Debian Lenny machine. I do an apt-get install subversion and it tells me subversion is already at the newest version. The latest version on Subversion's web site is 1.7.0. What d开发者_StackOverflowo I need to do get the latest version on my server?
It's not yet packaged in the Debian repositories.
You should build it from source, installing to /usr/local
(the default prefix for a custom build).
try installing it from this repository.
You have a couple choice: you could go here: http://packages.debian.org/search?keywords=subversion and see that 1.6.12 is available as a Debian package in backports (newer software for older OS). Or if you really want the latest, download the source from the Subversion site and build it yourself according to their instructions.
I would try the Debian packaged 1.6.12 first, and only attempt building it myself if there were a very good reason.
I just built subversion-1.7.2 without any problems, and I don't really know what I'm doing. I'm running a distro based on Debian squeeze (Crunchbang statler) and I didn't have to worry about dependencies
Download the latest tar.gz from the Apache site (to e.g. ~/downloads)
Unpack and enter the directory (e.g.
cd ~/downloads; tar -xvzf subversion-1.7.2.tar.gz; cd subversion-1.7.2
)Get the dependencies with
./get-deps.sh
Configure apr and apr-util
cd apr; ./buildconf; cd ../apr-util; ./buildconf; cd ..
Set up configure with
./autogen.sh
Run the generated configure with
./configure
If that didn't work, search for the missing packages in the package manager, and install everything. You may need to create a new terminal window in order for the install to be noticed.
Build and test with
make; make check
As root, install with
make install
And you should be ready to go! I'm not sure if this works for a server, but I definitely have a working client.
I just built svn 1.7.0 and all dependencies (including APR) on AIX. I encountered issues at the end of the build (make install) when it attempted to relink mod_dav_svn and mod_authz_svn (install could find the files, for cryin' out loud). Had to execute the final commands manually to finish the install.
精彩评论