Skip to content

Instantly share code, notes, and snippets.

@stephanetimmermans
Last active July 4, 2019 12:48
Show Gist options
  • Save stephanetimmermans/233b5c99884f1d8c8b8b to your computer and use it in GitHub Desktop.
Save stephanetimmermans/233b5c99884f1d8c8b8b to your computer and use it in GitHub Desktop.
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
@liverbool
Copy link

👍

@awilkie
Copy link

awilkie commented Aug 24, 2015

Thanks!

@dgoguerra
Copy link

Thank you, solved!

@pefferen
Copy link

thanks!

@aplosinnovations
Copy link

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

"... 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

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

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

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

thank you very much!

@tigerofasia
Copy link

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

Perfecto ! Thanks Buddy

@erezLieberman
Copy link

Thanks +

@joepegler
Copy link

Thank you

@mattun
Copy link

mattun commented Mar 21, 2016

Thanks

@ktagilbert
Copy link

Thank you!

@rajenderr
Copy link

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

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