depot_tools安装过程

使用torserviseSVN 1.6.6版本

移除其它版本

Install the depot_tools

Chromium and Chromium OS use a package of scripts called depot_tools to manage checkouts and code reviews.  If you want more details about depot_tools, you can check the depot_tools information page. The depot_tools package includes gclient, gclgit-clrepo, and others.

Steps for installing

Linux and Mac

  1. Grab the checkout with one of:
    1. non-committers (to depot_tools):   svn co http://src.chromium.org/svn/trunk/tools/depot_tools
    2. committers (again, to depot_tools):   svn co svn://svn.chromium.org/chrome/trunk/tools/depot_tools
  2. Add depot_tools to your PATH:
    1. $ export PATH="$PATH":`pwd`/depot_tools
    2. You may want to add this to your .bash_aliases file or your shell's equivalent so that you don’t need to reset your $PATH manually each time you open a new shell.

Windows (Cygwin and non-Cygwin)

Preamble

First decide if you want to use cygwin or not. Then, do not switch. If you use native svn on a cygwin's svn checkout and it blows up, you are on your own, e.g. you'll need to do a fresh checkout.

Instructions

If using Cygwin, you should have already installed cygwin by this point.
  1. Get a copy of depot_tools:
    • Cygwin: Check out the tools using the command in step (1) for Linux and Mac above.
    • Non-cygwin: Download depot_tools.zip and decompress it.
  2. Non-cygwin: Run gclient once from the cmd shell, which causes it to install its own copy of svn and other tools. If you see strange errors with the file system on the first run of gclient, you may want to disable Windows Indexing.
  3. Add depot_tools to the end (not start!) of your PATH:
    • System Properties, Advanced properties, Environment Variables, modify the "Path" system variable.
  4. Cygwin only: Close your shells, reopen a Cygwin shell, and ensure that which svn reports /usr/bin/svn If not, you either didn't install the svn package properly when installing Cygwin, or you put depot_tools on the front of your PATH instead of the back.  Fix this before checking out any code, as once you check out, you want to always use the same svn (Cygwin or depot_tools) to work with that checkout -- otherwise strange things can happen that are most easily fixed by completely wiping the checkout.

See also Howto: depot tools

posted on 2012-04-03 14:09  lexus 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/lexus/archive/2012/04/03/2430921.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
export PATH=$PATH:/usr/local/vim/bin tar xf ncurses_5.9.orig.tar.gz mv ncurses-5.9/ ncurses cd ncurses ./configure --prefix=/usr/local/ncurses --without-cxx make sudo make install sudo cp -rf /usr/local/ncurses/bin /usr/bin sudo cp -rf /usr/local/ncurses/lib /usr/lib tar xf vim_7.3.547.orig.tar.gz mv vim-7.3.547/ vim cd vim ./configure --prefix=/usr/local/vim make sudo make install touch ~/.vim echo "syntax on" > .vim echo "set backspace=indent,eol,start" > .vim tar xjf m4_1.4.16.orig.tar.bz2 tar xjf gmp-5.0.2.tar.bz2 tar xf mpc-0.9.tar.gz tar xf mpfr-2.4.2.tar.gz mv m4-1.4.16 m4 mv gmp-5.0.2 gmp mv mpc-0.9 mpc mv mpfr-2.4.2 mpfr cd m4_build ./configure --prefix=/usr/local/m4 make sudo make install sudo cp /usr/local/m4/bin /usr/bin cd ../gmp ./configure --prefix=/usr/local/gmp make sudo make install cd ../mpfr ./configure --prefix=/usr/local/mpfr --with-gmp=/usr/local/gmp make sudo make install cd ../mpc ./configure --prefix=/usr/local/mpc --with-gmp=/usr/local/gmp --with-mpfr=/usr/local/mpfr make sudo make install export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mpc/lib:/usr/local/gmp/lib:/usr/local/mpfr/lib cd ../gcc-4.4.3/ ./configure --prefix=/usr/local/gcc --enable-threads=posix --disable-checking --disable-multilib --enable-languages=c,c++ --with-gmp=/usr/local/gmp --with-mpfr=/usr/local/mpfr --with-mpc=/usr/local/mpc make sudo make install tar xf apr_1.4.6.orig.tar.gz cd apr-1.4.6/ ./configure --prefix=/usr/local/apr make sudo make install tar xf apr-util_1.4.1.orig.tar.gz cd apr-util-1.4.1 ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr make sudo make install tar xf apache2_2.2.22.orig.tar.gz cd httpd-2.2.22/ ./configure --prefix=/usr/local/webserver/apache2 --enable-dav --enable-so --enable-modules=most --with-apr-util=/usr/local/apr-util make sudo make install tar xf sqlite-autoconf-3071502.tar.gz cd sqlite-autoconf-3071502/ ./configure --prefix=/usr/local/sqlite make sudo make install tar xf zlib_1.2.7.dfsg.orig.tar.gz cd zlib-1.2.7 ./configure --prefix=/lib/zlib make sudo make install tar xf subversion_1.7.5.orig.tar.gz cd subversion-1.7.5/ ./configure --prefix=/usr/local/svn --with-apxs=/usr/local/webserver/apache2/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-sqlite=/usr/local/sqlite --with-ssl --with-zlib=/lib/zlib --enable-maintainer-mode make sudo make install
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值