Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install Compass+Ruby on Ubuntu 14.04
sudo apt-get update
sudo apt-get install 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 libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
curl -L | bash -s stable
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
rvm install 2.1.2
rvm use 2.1.2 --default
ruby -v
gem install compass
Copy link

Redsandro commented Jun 11, 2015

If the directory doesn't exist, try source /usr/local/rvm/scripts/rvm

Copy link

Hullgj commented Jun 17, 2015

Nice one. Just needed to install the certificate if you hadn't done that already. The instructions are in the terminal. Thanks!

Copy link

paddelboot commented Jul 8, 2015

Thanks. I had to use rvm install ruby-2.1.2

Copy link

gmorelli commented Jul 8, 2015

Added gpg key and worked like a charm. Thanks!

Copy link

ingadi commented Jul 27, 2015

No such file or directory when I run the source command. Am i doing anything wrong. Followed step by step though

Copy link

liverbool commented Aug 7, 2015


Copy link

awilkie commented Aug 24, 2015


Copy link

dgoguerra commented Sep 7, 2015

Thank you, solved!

Copy link

pefferen commented Sep 23, 2015


Copy link

aplosinnovations commented Oct 5, 2015

Thank you!

Copy link

ftcosta commented Oct 22, 2015


After running...

curl -L | bash -s stable

Copy the following line from the log and run it

gpg --keyserver hkp:// --recv-keys <NUMBER>

👍 Thanks!

Copy link

happlex commented Oct 22, 2015


Copy link

wzup commented Dec 3, 2015

Failed to install

gpg: Signature made Mon 30 Mar 2015 09:52:13 PM UTC using RSA key ID BF04FF17
gpg: Can't check signature: public key not found
Warning, RVM 1.26.0 introduces signed releases and automated check of signatures when GPG software found.
Assuming you trust Michal Papis import the mpapis public key (downloading the signatures).

GPG signature verification failed for '/home/ubuntu/.rvm/archives/rvm-1.26.11.tgz' - ''!
try downloading the signatures:

    gpg --keyserver hkp:// --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

or if it fails:

    command curl -sSL | gpg --import -

the key can be compared with:

Copy link

wzup commented Dec 3, 2015

Doesn't work. No such file or directory

ubuntu@user:~$ source ~/.rvm/scripts/rvm
-bash: /home/ubuntu/.rvm/scripts/rvm: No such file or directory

There in no any /scripts directory. Only this:

ubuntu@user:~$ ls .rvm/
total 16
drwxrwxr-x 4 ubuntu ubuntu 4096 Dec  3 05:22 .
drwxr-xr-x 6 ubuntu ubuntu 4096 Dec  3 05:22 ..
drwxrwxr-x 2 ubuntu ubuntu 4096 Dec  3 05:22 archives
drwxrwxr-x 2 ubuntu ubuntu 4096 Dec  3 05:22 src

Copy link

rromanovsky commented Dec 3, 2015

"... or if it fails:"
run "curl -sSL | gpg --import"
and then again "curl -L | bash -s stable"

Copy link

machaka commented Dec 14, 2015

Working good, thank you

Copy link

hermanschutte commented Jan 5, 2016

Thanks, works like a charm!

@wzup execute this first gpg --keyserver hkp:// --recv-keys D39DC0E3 then try source ~/.rvm/scripts/rvm

Copy link

fidelsalz commented Jan 10, 2016

Thank you

Problems found and turnarounds:

  1. Failed to install by signature problem: It happened to be a port blocked by the router? firewall.
    I modified the instruction just adding :80
    gpg --keyserver hkp://**:80** --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

  2. Ruby installation failed with 404 errors traced back to rvm requirements.
    I had to deactive manually failing repositories in software updater.

Copy link

hermanschutte commented Jan 13, 2016

Just tried the following on a fresh install of Ubuntu 14.04 and it worked without having to install rvm etc.:

apt-get install ruby-dev
gem install compass

Copy link

hiep8024 commented Jan 28, 2016

thank you very much!

Copy link

tigerofasia commented Jan 31, 2016

Use this as alternative for curl -L | bash -s stable

curl -L | bash -s stable

Copy link

mshaaban0 commented Feb 1, 2016

Perfecto ! Thanks Buddy

Copy link

erezLieberman commented Feb 4, 2016

Thanks +

Copy link

joepegler commented Feb 20, 2016

Thank you

Copy link

mattun commented Mar 21, 2016


Copy link

ktagilbert commented May 18, 2016

Thank you!

Copy link

rajenderr commented Jun 7, 2016

After executinmg : source ~/.rvm/scripts/rvm
error occured as -bash: /home/rajan/.rvm/scripts/rvm: No such file or directory
how to reslove it ?

Copy link

jithinktom commented Jun 16, 2016

Thank you so much!!

Copy link

sebask commented Jul 20, 2016


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment