原文:http://wiki.rabbitvcs.org/wiki/install/rhelcentos5
RHEL/CentOS 5 users have a couple options for installing RabbitVCS. You can install from our tarball archive, or directly from our Subversion repository. We're working on getting RabbitVCS packaged for CentOS 5 (via rpmforge).
NOTE: Our standard nautilus extension does not work with CentOS5/RHEL5, but we have a simpler, compatible extension (using the same dialogs) that does work.
1. Add the RPMForge Repositories. Instructions are at http://wiki.centos.org/AdditionalResources/Repositories/RPMForge
要先安装上才能用yum找到下面的一些包。否则nautilus-devel,python-configobj等包会找不到
2. Install Packages:
yum install pygtk2 subversion subversion-devel gcc gcc-c++ neon-devel python-devel pygtk2-devel eel2 eel2-devel python-configobj nautilus-devel meld libX11-devel
3. Download nautilus-python bindings at http://ftp.gnome.org/pub/GNOME/sources/nautilus-python
Make sure you get v0.5.0, NOT v0.5.1
Build/install with: ./configure ; make; su -c 'make install'
不能下载v0.5.1,要下载v0.5.0,然后编译、安装
5. Download and build the pysvn extension source kit. You'll need one built to work for subversion 1.4. Version 1.6.3 works well.
http://pysvn.barrys-emacs.org/
Uncompress the pysvn tar.gz file then run the following commands:
cd Source
python setup.py backport
python setup.py configure 上面这2步我直接运行了python setup.py configure --verbose
make
mkdir /usr/lib/python2.4/site-packages/pysvn
cp pysvn/__init__.py /usr/lib/python2.4/site-packages/pysvn
cp pysvn/_pysvn_2_4.so /usr/lib/python2.4/site-packages/pysvn
6. Download the tarball and from the top folder type:
下载地址 http://code.google.com/p/rabbitvcs/downloads/list ,rabbitvcs-0.15.2.tar.bz2
sudo python setup.py install
Once that is done working, look in the clients folder and read the README file for each client/plugin to learn how they are installed.
一旦完成安装工作,就进入clients文件夹,查看README文件,进行客户端的安装。
RabbitVCS Nautilus Extension (与nautilus的整合)
This extension is meant to be used with the Nautilus File Manager,
这个扩展是整合在natulius文件管理器中的
Requirements(依赖):
* nautilus (>= v2.22.0)
* nautilus-python (>= 0.5.1)
* python-dbus (> 0.80)
* (all other RabbitVCS requirements)
To install:
安装方式:
To install for all users, copy RabbitVCS.py to: 为所有用户安装
/usr/lib/nautilus/extensions-2.0/python
To install for a single user, copy RabbitVCS.py to: 针对单个用户安装
~/.nautilus/python-extensions
In both cases, you may need to create the python/python-extensions folder.
两种方式,你都需要创建目录python或python-extensions。
单个用户安装方式,完整的参考命令如下:
cd clients/nautilus
mkdir ~/.nautius/python-extensions
cp RabbitVCS.py ~/.nautilus/python-extensions
FAQ:
Error:’, ‘cannot find SVN include svn_client.h – use –svn-inc-dir’)
subversion-devel包没有安装成功
2.make: g++: Command not found
make: *** [generate_svn_error_codes/generate_svn_error_codes] Error 127
gcc-c++的包没有安装
3.collect2: ld returned 1 exit status
make: *** [pysvn/_pysvn_2_4.so] Error 1
neon-devel包没有安装
4.copying build/lib/rabbitvcs/ui/clone.py -> /usr/lib/python2.4/site-packages/rabbitvcs/ui
byte-compiling /usr/lib/python2.4/site-packages/rabbitvcs/vcs/svn/__init__.py to __init__.pyc
File "/usr/lib/python2.4/site-packages/rabbitvcs/vcs/svn/__init__.py", line 249
depth = pysvn.depth.infinity if recurse else pysvn.depth.empty
^
SyntaxError: invalid syntax
byte-compiling /usr/lib/python2.4/site-packages/rabbitvcs/vcs/mercurial/__init__.py to __init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/rabbitvcs/vcs/mercurial/util.py to util.pyc
byte-compiling /usr/lib/python2.4/site-packages/rabbitvcs/buildinfo.py to buildinfo.pyc
byte-compiling /usr/lib/python2.4/site-packages/rabbitvcs/ui/diff.py to diff.pyc
File "/usr/lib/python2.4/site-packages/rabbitvcs/ui/diff.py", line 241
finally:
把python2.4升级到2.7版本再试试。
升级后重新编译pysvn1.6.3 ,然后复制
[root@gdgz-htjf-kvc01-1 Source]# pwd
/export/soft/pysvn-1.6.3/Source
cp pysvn/__init__.py /usr/local/lib/python2.7/site-packages/pysvn
cp pysvn/_pysvn_2_7.so /usr/local/lib/python2.7/site-packages/pysvn
其他错误解决参考强帖:http://www.zhouwenyi.com/node/7725rabbitvcs Installation on RHEL/CentOS 5