Forums

How to install ruby in pythonanywhere

hi I want to install sass and I found the code for it sudo gem install sass but when I run in bash it returns an error "ERROR: Error installing sass: sass requires Ruby version >= 2.0.0. " but I can't find a way to install ruby please help.

You do not have admin rights to do a sudo install.

We already have ruby installed, but it is v1.9.

You can also build ruby from source into your homedir, but you may have to find someone to guide you through that.

sorry i didn't use sudo actually, by the way, is there any chance of updating ruby by pythonanywhere admins? or can u suggest someplace where i can study how to build ruby in my homdir?

I would actually suggest using rvm instead of directly installing ruby, and installing it as a single user / into your $HOME.

You could also reference something like this.