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