yum update
yum install subversion
yum install make
yum install g++
yum install openjdk-6-jdk
svn co http://src.chromium.org/svn/trunk/tools/depot_tools export PATH=$PATH:`pwd`/depot_tools
gclient config http://dart.googlecode.com/svn/branches/1.2/deps/all.deps
gclient sync
gclient runhooks
cd dart
tools/build.py --mode=release --arch=x64 create_sdk
dart/out/ReleaseX64/dart --version ## prints the dart version and some other info
gclient config https://github.com/dart-lang/sdk/blob/stable/DEPS
gclient sync --jobs=1 --verbose
solutions = [{ "name" : "DEPS", "url" : "https://github.com/dart-lang/sdk/blob/stable/DEPS", "deps_file" : "DEPS", "managed" : True, "custom_deps" : {},"safesync_url": "",},]cache_dir = None
Oh hai! You are using subversion. Chrome infra is eager to get rid of svn support so please switch to git. Tracking bug: http://crbug.com/475320 If you are a project owner, you may request git migration assistance at:
https://code.google.com/p/chromium/issues/entry?template=Infra-Git
________ running 'svn checkout https://github.com/dart-lang/sdk/blob/stable/DEPS /home/jan/Apps/dart/DEPS --ignore-externals' in '/home/jan/Apps/dart'
| 寄件者: Jan Mostert 已傳送: 2016年1月4日星期一 19:14 收件者: General Dart Discussion 回覆至: mi...@dartlang.org 主旨: [dart-misc] Building Dart SDK from source on CentOS 6.5 |
svn co http://src.chromium.org/svn/trunk/tools/depot_tools
export PATH=$PATH:`pwd`/depot_tools
git clone https://github.com/dart-lang/sdk.git -b stable
gclient config --name=sdk --unmanaged g...@github.com:dart-lang/sdk.git
gclient sync --jobs=1 --verbose
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
$ export PATH=$PATH:`pwd`/depot_tools
$ git clone https://github.com/dart-lang/sdk.git -b stable
$ gclient config --name=sdk --unmanaged g...@github.com:dart-lang/sdk.git
$ gclient sync --jobs=1 --verbose
depot_tools update failed. Conflict in /home/jan/Apps/dart/depot_tools
cannot rebase: you have unstaged changes
M update_depot_tools.bat
M win_toolchain/7z/LICENSE
$cd depot_tools
$ git add update_depot_tools.bat
$ git add win_toolchain/7z/LICENSE
$ git commit -m "meh"
$ cd ..
$ gclient sync --jobs=1 --verbose