Ubuntu is one of the distributions that has best reached the world of the Desktop. Although it is still one of the preferred by developers and professionals who need a safe and complete operating system. But despite this, it is true that when we install Ubuntu we have to add new programs and applications to be able to work with our computer.
This post-installation does not take long, but it does have to be done. If you are web developers, surely you have had to install programs such as a code editor or a LAMP server. Many of you surely have had to install other less popular tools such as a CSS preprocessor. In this case we are going to tell you how to install SASS on Ubuntu 17.04, easily and simply.
To have SASS on our computer, either with Ubuntu or with another operating system, we need to install Ruby. Ruby is the technology that SASS provides us and that works the miracles of this CSS preprocessor. In the case of Ubuntu, we can install Ruby and make SASS technology compatible with any program without using the terminal. But first we are going to install Ruby. In this case we have to go to an external Github repository, but first we have to install the necessary tools to compile. So we open the terminal and write:
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 libffi-dev nodejs
After this we are going to download the content of the Github repository:
cd git clone https://github.com/rbenv/rbenv.git ~/.rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc exec $SHELL git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc exec $SHELL rbenv install 2.4.0 rbenv global 2.4.0 ruby -v
Now if we install ruby as follows:
gem install bundler
Now that we have Ruby, we need to install the SASS gem or service. For this we only have to write the following in the terminal:
gem install sass
With this, our Ubuntu 17.04 will already have SASS and any program will be able to use it. It will be compatible with code editor extensions or even with your own Koala. As you can see, it is installed in a simple way, but I have to warn that the installation usually takes a long time, at least a few minutes longer than normal.