一、添加源进行安装:[必须执行]
1、sudoadd-apt-repositoryppa:rabbitvcs/ppa#将rabbitvcs的添加到源里面;
2、sudoapt-keyadv--keyserverkeyserver.ubuntu.com--recv-keys34EF4A35#导入key如果第一步自动导入了key的话这步可以不做
3、sudoapt-getupdate#执行下更新
4、sudoapt-getinstallrabbitvcs-clirabbitvcs-corerabbitvcs-geditrabbitvcs-nautilusrabbitvcs-thunarthunarx-python
5、安装成功之后,需要注销,然后重新登录;
sudoapt-getinstallrabbitvcs-nautilus3
执行以上操作就基本安装完成了.需要重启.
二、手动进行安装:
下载压缩包,进入解压后的目录:
http://code.google.com/p/rabbitvcs/downloads/list
#sudoapt-getinstallpython-nautiluspython-configobjpython-gtk2python-glade2python-svnpython-dbussubversionmeld
#sudopythonsetup.pyinstall
判断你用的是什么文件体系,办法是随便打开一个文件夹,到帮助(Help)菜单里面找到关于(about)。这里我用的是Nautilus,所以到你解压的目次里面找到clients/nautilus/RabbitVCS.py。复制到/usr/lib/nautilus/extensions-2.0/python,重启你的电脑或者Java代码。
重启文件经管体系:
#nautilus-q
#pgrep-fservice.py|xargskill
#nohupnautilus>/dev/null&
安装完成可以使用了。
转贴注:添加源的方式安装有时候会出现依赖关系错误的问题,我是新手,不熟悉怎么弄,所以就直接下载软件包安装的。
安装问题同时可以参考
http://wiki.rabbitvcs.org/wiki/install/ubuntu
Installation on Ubuntu
You can install from our PPA, ourtarball archive, or directly from our Subversion repository. Usersnew to Ubuntu should use the PPA option.
Adding thePPA
Karmic andlater
sudo add-apt-repository ppa:rabbitvcs/ppa
Hardy, Intrepid and Jaunty
Add the following line to your/etc/apt/sources.list file (signing key=1024R/34EF4A35):
deb http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu **DISTRIBUTION** main
InstallingRabbitVCS
You can use Synaptic to installpackages or the command line. If you are using Synaptic, justsearch for the packages listed below. On the command line, you needto update your software package repositories with:
sudo apt-get update
And install it with:
sudo apt-get install «packages»
…where packages are
If you are using the Xubuntu distro,then you probably only have Thunar installed (without Nautilus).Besidesrabbitvcs-thunar
andrabbitvcs-cli
, you also need to install anextra package.
After installation is complete,logout and log back in for changes to take effect.
From theTarball
Installing from our distributedtarball is relatively straightforward on Ubuntu. First, make sureyou install all dependencies:
sudo apt-get install python-nautilus python-configobj python-gtk2 python-glade2 python-svn python-dbus python-dulwich subversion meld
Then download thetarballandfrom the top folder type:
sudo python setup.py install --install-layout=deb
Oncethat is done working, look in theclientsfolderand read the README file for each client/plugin to learn how theyare installed.
Note: In order to get the menu toshow up in the Nautilus right click menu, you may need to restartNautilus which may require you to log out and log back in of yourdesktop environment (see theFAQ).
From our SubversionRepository
Installing from trunk or from abranch is relatively straight-forward. First, install thedependencies listed above, then follow ourdeveloperinstallation instructions.
如果出现右键没有菜单
可以先sudo nautilus看看问题
如果是
ERROR rabbitvcs.vcs libsvn_client-1.so.1: cannot open shared object file: No such file or directoryTraceback (most recent call last): File "/usr/lib/pymodules/python2.7/rabbitvcs/vcs/__init__.py", line 83, in svn from rabbitvcs.vcs.svn import SVN File "/usr/lib/pymodules/python2.7/rabbitvcs/vcs/svn/__init__.py", line 31, in <module> import pysvn File "/usr/lib/python2.7/dist-packages/pysvn/__init__.py", line 99, in <module> import _pysvn_2_7ImportError: libsvn_client-1.so.1: cannot open shared object file: No such file or directoryTraceback (most recent call last): File "/usr/lib/pymodules/python2.7/rabbitvcs/ui/update.py", line 123, in <module> window.start() File "/usr/lib/pymodules/python2.7/rabbitvcs/ui/update.py", line 51, in start register_gtk_quit=self.gtk_quit_is_set() File "/usr/lib/pymodules/python2.7/rabbitvcs/ui/action.py", line 658, in __init__ self.client.set_callback_cancel(self.cancel)AttributeError: Dummy instance has no attribute 'set_callback_cancel'
可以这样解决:
Hey, THX, this solved my problem:cd /usr/libsudo ln -s libsvn_client-1.so.0.0.0 libsvn_client-1.so.1sudo ln -s libsvn_diff-1.so.0.0.0 libsvn_diff-1.so.1sudo ln -s libsvn_repos-1.so.0.0.0 libsvn_repos-1.so.1