centos6.3(64位)下安装rabbitvcs

来源:互联网 发布:淘宝客服用什么软件 编辑:程序博客网 时间:2024/05/21 06:38
1、添加新浪的EPEL源:
rpm -ivh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-7.noarch.rpm 
因为我在新浪的镜像服务器翻到了rabbitcvs,在这里翻到,有兴趣可以看看,有需要安装别的软件,可以先在这里翻一下,够快:http://mirrors.sohu.com/fedora-epel/6/x86_64/
题外话,添加源最简单的办法绝对不是去vi /etn/yumXXX.d/xxxx,而是用浏览器找好相应的rpm镜像,然后搜索"release",一般能找到类似的rpm包“epel-release-6-7.noarch.rpm”,这个包就是加源的安装包,安装完这个包,源就加好了。

2、yum install rabbitvcs*

3、非常高兴,安装过程非常顺利,rabbitvcs命令也出来了。尼玛,没办法打开rabbitvcs的图形界面啊。

4、我不会这么容易死心的。google了好多次,终于解决了。前面三步也要做,这样做是为了让yum帮我们安装好大部分的依赖。

5、wiki有这样一段话: http://wiki.rabbitvcs.org/wiki/support/known-issues#rabbitvcs-won-t-run-in-some-64-bit-environments

RabbitVCS won't run in some 64 bit environments

Some distributions, such as 64 bit Fedora, put 64 bit libraries in the /usr/lib64 directory, whereas nautilus-python (the program that lets us extend nautilus) assumes all libraries are in the /usr/lib directory. This is a nautilus-python bug. The current workaround is to create a symlink: ln -s /usr/lib64/libpython2.6.so /usr/lib/libpython2.6.so

好,执行

$ln -s /usr/lib64/libpython2.6.so /usr/lib/libpython2.6.so。

到这里,麻烦兄弟重启一下,试试能不能显示(只要在文件夹(桌面不行)里点右键就知道行不行了,反正我是不行的了)。


6、找到了一遍关键帖子:https://groups.google.com/forum/?fromgroups=#!topic/rabbitvcs/cG0gaxw5ZKw

里面有一段话:

For nautilus, please make sure of the following:

- You only have v0.15.0.5 installed and no other older versions of
Rabbitvcs.  Do 'find /usr | grep rabbitvcs'.  If there is something in
/usr/local or something, then delete that.
- Make sure you have Console debugging turned on. With the cli client,
do 'rabbitvcs settings' and in the Log tab, change to Debug/Both.

根据这段话,我运行$rabbitvcs settings时报错了,他说是缺个simplejson,好:

$yum install python-simplejson。

到这里,麻烦兄弟再重启一下,试试能不能显示(只要在文件夹(桌面不行)里点右键就知道行不行了,反正我是不行的了)。一定要试,试完告诉我答案,我很纠结。

8、根据那段话,我要装最新的Rabbitvcs,先

$yum remove rabbitvcs*

再下载它:http://rabbitvcs.googlecode.com/files/rabbitvcs-0.15.1.tar.bz2

9、解压后进入文件夹,su执行$python setup.py install。

10、你以为OK了,你太天真了,你没看到最后一句报错吗?这个帖子说了解决方案:http://bbs.startos.com/forum.php?mod=viewthread&tid=2080304&page=1 

Hi ,
the key point of this issue is the source code , please modify the x/rabbitvcs-0.15.0.5/setup.py,change the parameter as below.it means you should add the /usr before share.

#icon_theme_directory = "share/icons/hicolor"
icon_theme_directory = "/usr/share/icons/hicolor"
#locale_directory = "share/locale"
locale_directory = "/usr/share/locale"

11、其实上一步不做也应该没什么影响,我的猜想。

12、执行完第9步那句之后,进入编译好的clients/cli文件,$cp rabbitvcs /usr/bin。这个是命令行工具。
然后进入clients/nautilus $cp RabbitVCS.py /usr/lib64/nautilus/extensions-2.0/python/。(这一步只针对centos 6.3的64位有效)
其实好好看看README你就知道应该怎样做。

13、重启,装好了。如果你发现不行,很有可能是前面有些步骤没做好,请重来,如果你第二遍到这里也不行,不好意思,这个教程不适合你。这个只针对2012年8月30日下载的centos 6.3 64bit(使用 nautilus 2.28做为文件管理器)有效。

14、你知道我有多痛苦吗?前面12步只是我列出来的关键步骤,我要把整个解决问题的每个步骤都列出来,1000步都不止,无效操作太多了,我在这里至少花了5个小时,读了至少1W个英文字母,至少查了有道词典50次。你知道吗?狗日的linux,你斗不过windows是活该。(我承认你很强大,但你老婆强悍而不你喜欢吗?)

注:图标问题没有解决,还不能像windows那样,根据图标一眼看出哪个修改过,哪个冲突。我不解决了,这个
0 0
原创粉丝点击