Last active
August 29, 2015 14:09
-
-
Save artursmirnov/52ec02b2f8b57f71bd09 to your computer and use it in GitHub Desktop.
Setup Ember CLI environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# prepare | |
sudo apt-get update | |
sudo apt-get install -y build-essential git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties | |
sudo apt-get install -y libgdbm-dev libncurses5-dev automake libtool bison libffi-dev | |
# install nodejs | |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install | |
# install npm | |
curl https://www.npmjs.org/install.sh | sh | |
npm install -g [email protected] | |
# install ruby and rvm | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 | |
curl -L https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc | |
rvm install 2.1.2 | |
rvm use 2.1.2 --default | |
# install compass | |
gem install compass | |
# install global npm packages | |
npm install -g bower phantomjs ember-cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment