debian7(wheezy)升级安装mercurial hg最新版2.8-RC,解决tortoisehg2.9.2不能使用。
2013-11-01 17:26
323 查看
debian&(wheezy)之前的仓库版本是2.2.2.
注: 本文以 # 为开始的行是工作在root下的模式,在终端显示为root的提示符# ,用户目录的($:)需要切换到root(使用su - 命令)
卸载
#apt-get remove mercurial mercurial-common 下载最新的 http://mercurial.selenic.com/downloads/ #wget http://mercurial.selenic.com/release/mercurial-2.8-rc.tar.gz 解压 #tar -zxvf mercurial-2.8-rc.tar.gz #cd mercurial... 读下README #make && make install 提示 Commonly used make targets: all - build program and documentation install - install program and man pages to PREFIX (/usr/local) install-home - install with setup.py install --home=HOME (/root) local - build for inplace usage tests - run all tests in the automatic test suite test-foo - run only specified tests (e.g. test-merge1.t) dist - run all tests and create a source tarball in dist/ clean - remove files created by other targets (except installed files or dist source tarball) update-pot - update i18n/hg.pot Example for a system-wide installation under /usr/local: make all && su -c "make install" && hg version Example for a local installation (usable in this directory): make local && ./hg version #make local && ./hg version python setup.py \ build_py -c -d . \ build_ext -i \ build_hgexe -i \ build_mo running build_py Python headers are required to build Mercurial but weren't found in /usr/include/python2.7/Python.h make: *** [local] Error 1 #make all && su -c "make install" && hg version 继续报错 mercurial/base85.c:13:20: fatal error: Python.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1 make: *** [build] Error 1 #apt-get install python-dev 安装python-dev版本 再次执行 #make all && su -c "make install" && hg version 继续报错 python runrst hgmanpage --halt warning \ --strip-elements-with-class htmlonly hg.1.txt hg.1 abort: couldn't generate documentation: docutils module is missing please install python-docutils or see http://docutils.sourceforge.net/ make[1]: *** [hg.1] Error 255 make[1]: Leaving directory `/home/softs/linux/mercurial-2.8-rc/doc' make: *** [doc] Error 2 缺少python-docutils #apt-get install docutils Package docutils is a virtual package provided by: python3-docutils 0.8.1-8 python-docutils 0.8.1-8 You should explicitly select one to install. E: Package 'docutils' has no installation candidate 查看python版本,一般是2.X的 #apt-get install python-docutils 重来 #make clean #make local #make install-home #make install-home-bin #gvim /root/.bashrc 添加 export PYTHONPATH=~/lib/python export PATH=~/bin:$PATH export HGRCPATH=~/.hgrc 然后就安装配置好了 #hg --version Mercurial Distributed SCM (version unknown) (see http://mercurial.selenic.com for more information) Copyright (C) 2005-2013 Matt Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 因为是下的rc,所以并没有提示稳定版本号
tortoisehg 需要重新安装,并且去下unstable的版本来支持,地址在这里
http://packages.debian.org/jessie/all/tortoisehg/download
http://ftp.us.debian.org/debian/pool/main/t/tortoisehg/tortoisehg_2.9.2-1_all.deb
安装正常,但是使用发现出现了问题,提示了很多错。于是重新打包了一个版本。命名为tortoisehg_2.9.2-2_all.deb
地址在csdn的下载http://download.csdn.net/detail/rainysia/6466565 (不要积分)
适用于官方mercurial-2.8-rc的hg对应的tortoisehg2.9.2不能正常使用的情况。已经在debian7和ubuntu13.04测试过tortoisehg正常使用
相关文章推荐
- debian7(wheezy)升级安装mercurial hg最新版2.8-RC,解决tortoisehg2.9.2不能使用。
- 升级Xcode7之后安装的插件不能使用的解决办法
- 安装OS X Mountain Lion后svn命令不能使用的解决方法
- Mysql5.5升级到5.7后MySQLdb不能正常使用的问题解决
- Android ButterKnife Zelezny插件安装成功但是功能不能使用的解决办法
- Sublime text3插件Emment安装好但不能使用的解决办法
- ubuntu 10.04 编译安装 vim 7.3, 解决 vim 不能使用系统剪贴板问题
- VMWARE下Fedora8安装VM TOOLS后解决鼠标滚轮不能使用的问题
- dell本安装fedora13不能正常关机和重启及升级内核提示“no root device found...."解决办法
- 安装IETester(解决不能使用IE6,并安装IE10)
- Windows 7下 IE升级到,IE 11的F12控制台不能使用的解决
- 解决飞信在Windows7 RC 7100下不能使用的问题
- Mac OS X升级到10.11之后不能使用pod的问题解决方法
- 解决Xcode6.4安装插件后插件不能使用的问题
- CentOS迷你版安装后--ifconfig不能使用的解决
- ButterKnife Zelezny插件安装成功但是功能不能使用的解决办法
- 解决windows上安装TortoiseSVN后不能使用命令行问题
- linux下eclipse的SVN插件subclipse最新版本1.8及其依赖的javaHL1.7不能正常使用的解决方法
- Centos 7 安装 Python3.5.2后yum不能正常使用的解决办法
- 解决在Win7下安装MyGeneration,不能使用的问题