Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Compass+Ruby on Ubuntu 14.04
#https://gorails.com/setup/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 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
ruby -v
#http://blog.acrona.com/index.php?post/2014/05/15/Installer-Fondation-et-Compass/sass-sur-Ubuntu-14.04
gem install compass
@Redsandro
Copy link

Redsandro commented Jun 11, 2015

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

@Hullgj
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!

@paddelboot
Copy link

paddelboot commented Jul 8, 2015

Thanks. I had to use rvm install ruby-2.1.2

@gmorelli
Copy link

gmorelli commented Jul 8, 2015

Added gpg key and worked like a charm. Thanks!

@ingadi
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

@liverbool
Copy link

liverbool commented Aug 7, 2015

👍

@awilkie
Copy link

awilkie commented Aug 24, 2015

Thanks!

@dgoguerra
Copy link

dgoguerra commented Sep 7, 2015

Thank you, solved!

@pefferen
Copy link

pefferen commented Sep 23, 2015

thanks!

@aplosinnovations
Copy link

aplosinnovations commented Oct 5, 2015

Thank you!

@ftcosta
Copy link

ftcosta commented Oct 22, 2015

Perfect

After running...

curl -L https://get.rvm.io | bash -s stable

Copy the following line from the log and run it

gpg --keyserver hkp://keys.gnupg.net --recv-keys <NUMBER>

👍 Thanks!

@happlex
Copy link

happlex commented Oct 22, 2015

Thanks~

@wzup
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' - 'https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc'!
try downloading the signatures:

    gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

or if it fails:

    command curl -sSL https://rvm.io/mpapis.asc | gpg --import -

the key can be compared with:

    https://rvm.io/mpapis.asc
    https://keybase.io/mpapis

@wzup
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

@rromanovsky
Copy link

rromanovsky commented Dec 3, 2015

"... or if it fails:"
run "curl -sSL https://rvm.io/mpapis.asc | gpg --import"
and then again "curl -L https://get.rvm.io | bash -s stable"

@machaka
Copy link

machaka commented Dec 14, 2015

Working good, thank you

@hermanschutte
Copy link

hermanschutte commented Jan 5, 2016

Thanks, works like a charm!

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

@fidelsalz
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://keys.gnupg.net**: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.

@hermanschutte
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

@hiep8024
Copy link

hiep8024 commented Jan 28, 2016

thank you very much!

@tigerofasia
Copy link

tigerofasia commented Jan 31, 2016

Use this as alternative for curl -L https://get.rvm.io | bash -s stable

curl -L https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable

@mshaaban0
Copy link

mshaaban0 commented Feb 1, 2016

Perfecto ! Thanks Buddy

@erezLieberman
Copy link

erezLieberman commented Feb 4, 2016

Thanks +

@joepegler
Copy link

joepegler commented Feb 20, 2016

Thank you

@mattun
Copy link

mattun commented Mar 21, 2016

Thanks

@ktagilbert
Copy link

ktagilbert commented May 18, 2016

Thank you!

@rajenderr
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 ?

@jithinktom
Copy link

jithinktom commented Jun 16, 2016

Thank you so much!!

@sebask
Copy link

sebask commented Jul 20, 2016

Thanks!

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