将 Debian Lenny 上的 Subversion 从 1.5.1 升级到最新版本 (1.7.0)
我正在尝试在我的网络服务器 Debian Lenny 机器上升级 Subversion。我执行了 apt-get install subversion,它告诉我 subversion 已经是最新版本。 Subversion 网站上的最新版本是 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 do I need to do get the latest version on my server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
它尚未打包到 Debian 存储库。
您应该从源构建它,安装到
/usr/local (自定义构建的默认前缀)。
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.
你有几个选择:你可以去这里: http://packages.debian.org/search? keywords=subversion 并查看 1.6.12 可作为反向移植中的 Debian 软件包使用(针对旧操作系统的较新软件)。或者,如果您确实想要最新版本,请从 Subversion 站点下载源代码并根据他们的说明自行构建。
我会首先尝试 Debian 打包的 1.6.12,只有在有充分理由的情况下才尝试自己构建它。
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.
我刚刚构建了 subversion-1.7.2,没有任何问题,而且我真的不知道我在做什么。我正在运行一个基于 Debian freeze (Crunchbang statler) 的发行版,并且不必担心依赖关系
从 Apache 站点(例如 ~/downloads)
解压并进入目录(例如< code>cd ~/downloads; tar -xvzf subversion-1.7.2.tar.gz; cd subversion-1.7.2)
使用
./get-deps.sh
获取依赖项配置 apr 和 apr-util
cd apr; ./buildconf; cd ../apr-util; ./buildconf; cd ..
使用
./autogen.sh
设置配置运行使用
./configure
生成的配置 使用
如果这不起作用,请在包管理器,并安装所有内容。您可能需要创建一个新的终端窗口才能注意到安装。
使用
make 构建并测试; make check
作为 root,使用
make install
安装然后您就可以开始了!我不确定这是否适用于服务器,但我肯定有一个工作客户端。
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.
我刚刚在 AIX 上构建了 svn 1.7.0 和所有依赖项(包括 APR)。当我尝试重新链接 mod_dav_svn 和 mod_authz_svn 时,我在构建(make install)结束时遇到了问题(安装可以找到文件,大声哭出来)。必须手动执行最终命令才能完成安装。
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.