vilsack

Installing a Dart VM

Oct 10th, 2011
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.92 KB | None | 0 0
  1. ## The Road to Dart
  2.  
  3. ## This is the most complete writeup I've been able to come up with for installing Google Dart VM on an Ubuntu server.  Directions are for LTS at this time.
  4.  
  5. # WARNING:  This is not optimized for running as a script yet!  I'm simply documenting my steps that got me to a successful VM test!
  6. # Copy and pasting should work, but I'm not responsible if you accidentally find the Higgs Boson!
  7.  
  8. # John Vilsack email: [email protected] twitter: chikkachichi
  9.  
  10.  
  11. # Build PreReqs: Acquired and modified from http://code.google.com/p/chromium/wiki/LinuxBuildInstructionsPrerequisites
  12.  
  13. #Update Ubuntu
  14. sudo apt-get update && sudo apt-get upgrade -y
  15.  
  16. # Get Pre-Reqs
  17. sudo apt-get install bison fakeroot flex g++ g++-multilib gperf libapache2-mod-php5 libasound2-dev libbz2-dev libcairo2-dev libdbus-glib-1-dev libgconf2-dev libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev libgtk2.0-dev libjpeg62-dev libnspr4-dev libnss3-dev libpam0g-dev libsqlite3-dev libxslt1-dev libxss-dev mesa-common-dev ttf-mscorefonts-installer patch perl pkg-config python python-dev rpm subversion libcups2-dev libgnome-keyring-dev libcurl4-gnutls-dev libelf-dev ttf-indic-fonts
  18.  
  19. # Chromium: Acquired from: http://code.google.com/p/dart/wiki/PreparingYourMachine
  20. # Chromium Dependencies
  21. wget http://src.chromium.org/svn/trunk/src/build/install-build-deps.sh
  22. source install-build-deps.sh
  23.  
  24. # Depot Tools
  25. cd ~
  26. svn co http://src.chromium.org/svn/trunk/tools/depot_tools
  27. export PATH=$PATH:`pwd`//depot_tools
  28.  
  29. #get Dart Source
  30. gclient config http://dart.googlecode.com/svn/trunk/deps/all.deps
  31. gclient sync
  32.  
  33. #Configure Storage?
  34. ~/dart/third_party/gsutil/20110627/gsutil config
  35. #Copy stupid link into stupid browser to access stupid gsutil
  36.  
  37. #sync again just to be safe
  38. gclient sync
  39.  
  40. # Build all the things!
  41. cd ~/dart/runtime
  42. ../tools/build.py --arch=ia32
  43.  
  44. # Finally, run a test to make sure it....kinda(?) works!
  45.  
  46. ../tools/test.py --arch=ia32
  47.  
Advertisement
Add Comment
Please, Sign In to add comment