segue a dica que me ajudou a resolver o problema com a instalação do compass no linux.
Using Ubuntu 18.04 this gets much easier as the necessary versions are already packaged. This is the procedure:
sudo apt install nodejs
sudo apt install npm
sudo npm install -g less
sudo apt-get install ruby-sass
sudo gem install compass
sudo gem install bootstrap-sass