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