Yeoman is awesome, but holy jeez are there a lot of requirements to get it fired up for the first time. Listed below are all the commands I typed in to get every last Yeoman dependency installed. I did this on 64-bit Ubuntu. For 32-bit, you’ll need to download a different version of PhantomJS, but otherwise I’m pretty sure everything else works the same.
CURL
sudo apt-get install curl
GIT
reference: http://evgeny-goldin.com/blog/3-ways-install-git-linux-ubuntu/
wget --no-check-certificate https://github.com/git/git/tarball/v1.7.12.2
tar -xvf v1.7.12.2
cd git-git-04043f4/
make prefix=/usr/local all
sudo make prefix=/usr/local install
git --version
rm -rRf git-git-04043f4
rm v1.7.12.2
NodeJS
reference: https://github.com/joyent/node/wiki/Installation
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
RVM + Ruby 1.9.3
reference: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/
You might want to grab a coffee. This is a long one.
curl -L get.rvm.io | bash -s stable
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc
. ~/.bashrc
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
rvm install 1.9.3
rvm use 1.9.3
rvm --default use 1.9.3-p194
ruby -v
Compass
reference: http://compass-style.org/install/
gem install compass
PhantomJS
Using apt-get will get you v. 1.4.0. The method below gets the latest version. For 32-bit, just remove ‘_64’ from each command.
reference: http://devblog.hedtek.com/2012/04/phantomjs-on-ubuntu.html
wget http://phantomjs.googlecode.com/files/phantomjs-1.7.0-linux-x86_64.tar.bz2
tar -xvf
cd /usr/local/share
sudo tar xvf ~/phantomjs-1.7.0-linux-x86_64.tar.bz2
sudo ln -s /usr/local/share/phantomjs-1.7.0-linux-x86_64/ /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
phantomjs --version
rm ~/phantomjs-1.7.0-linux-x86_64.tar.bz2
JPEGTRAN / OptiPNG
sudo apt-get install optipng
YEOMAN!!!
(finally!)
And we’re done.
October 6, 2012 at 6:11 am
Hi, thx for this tuto !
Little error for phantomJs :
– 2e line google have https instead of http
– 3e line (tar -xvf) was unassesary
Installing phantomJs in 32 bits :
cd ~/
wget http://phantomjs.googlecode.com/files/phantomjs-1.7.0-linux-i686.tar.bz2
cd /usr/local/share
sudo tar xvf ~/phantomjs-1.7.0-linux-i686.tar.bz2
sudo ln -s /usr/local/share/phantomjs-1.7.0-linux-i686/ /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
phantomjs –version (ctrl-D to exit prompt)
rm ~/phantomjs-1.7.0-linux-i686.tar.bz2
October 6, 2012 at 10:48 am
@Romain Glad you liked it, and thanks for the extra tips!
February 19, 2013 at 10:47 am
Jebus, this drove me crazy on buntu 12.10. Here’s what I used (32-bit)
cd ~
wget http://phantomjs.googlecode.com/files/phantomjs-1.7.0-linux-i686.tar.bz2
sudo tar xvf phantomjs-1.7.0-linux-i686.tar.bz2
sudo mv phantomjs-1.7.0-linux-i686 /usr/local/share/phantomjs
phantomjs –version
rm -r phantomjs-1.7.0-linux-i686.tar.bz2
February 26, 2013 at 4:12 am
Damn, forgot a line on the previous comment, here’s an updated version:
cd ~
wget http://phantomjs.googlecode.com/files/phantomjs-1.7.0-linux-i686.tar.bz2
sudo tar xvf phantomjs-1.7.0-linux-i686.tar.bz2
sudo mv phantomjs-1.7.0-linux-i686 /usr/local/share/phantomjs
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
phantomjs –version
rm -r phantomjs-1.7.0-linux-i686.tar.bz2
May 2, 2013 at 1:08 am
Regarding that final step (curl -L get.yeoman.io | bash), the response from yeoman.io is now:
June 18, 2013 at 12:17 pm
Thanks @aidan, updated!
August 27, 2013 at 2:35 am
I finished this setup – yo commands work fine, but for yeoman I get “command not found”.
In the yeoman faq it is said to add /usr/local/share/npm/bin to path, but I don’t have this directories on my drive. What should I do?
August 27, 2013 at 4:27 am
Sorry for spamming – above problem solved in http://stackoverflow.com/questions/18263189/yeoman-installation-issue-command-not-found