← Back

Share this

Compass is a fantastic tool for front end web developers to compile sass into style sheet css. To get compass on your Centos Linux box, you will need Ruby on it first. 

In order to install  Ruby, make sure you add the required repository before you start with the installation process. You shall perform this action by executing the following command.

yum install centos-release-scl-rh centos-release-scl

next install the right version 

yum --enablerepo=centos-sclo-rh  install rh-ruby26

then enable ruby2.6 in bash

scl enable rh-ruby26 bash

If you would like the change to be permanent (the change still persists after you log out and log back in)

you can edit your $HOME/.bashrc file to include the following line:

source scl_source enable rh-ruby26 

to verify if ruby 2.6 is installed properly or not:  

ruby --version
ruby 2.6.2p47 (2019-03-13 revision 67232)

Ensure you install the header files when you compile gem 

yum install http://mirror.centos.org/centos/7/sclo/x86_64/rh/rh-ruby26/rh-ruby26-ruby-devel-2.6.2-118.el7.x86_64.rpm

Finally

gem install compass


Categories: Articles

subscribe newsletter

Never miss a post

Get free digital marketing intelligence and advice from our experts, directly to your inbox.

WHAT NOW?

If you’d like us to work together on your next project, pick up the phone, let those fingers loose on that keyboard or feel free to pop into the office and meet the team. We love hearing about all projects – large or small – so whatever it is, we’re excited to learn more about it; we even promise to have some chocolate digestives ready and waiting for you.

SAY HELLO

Tel: 01743 272609
Email: studio@vibecreative.co.uk

CONTACT US ONLINE...

Send us a message and we'll give you a call back.

Contact us now