5

How can I install Google Dart in my Ubuntu? Is it pre-installed with Ubuntu or have to install manually ?

9

To install google dart in Ubuntu , open your terminal and type as

sudo apt-add-repository ppa:hachre/dart
sudo apt-get update
sudo apt-get install darteditor dartsdk dartium
2
1

You can also follow official installation guide for Linux from Dart docs:

Setting up Dart repository

$ sudo apt-get update
$ sudo apt-get install apt-transport-https
$ sudo sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
$ sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'

Installing Dart SDK using apt-get:

$ sudo apt-get update
$ sudo apt-get install dart

Exporting SDK path (you can append following line at the end of your .bashrc file):

 export PATH="$PATH:/usr/lib/dart/bin"
0

The Google Dart is available as part of Ubuntu Make:

sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install umake

After that just run the Dart installer as your user (don't use sudo in this case):

umake dart

It will prompt you where to install Dart, and then download it automatically and install it.

1
  • Cannot find umake for me when trying to install – Mark Apr 8 '17 at 18:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.