Search code examples
rubytwitter-bootstrap-3sasscompass-sass

Compass, bootstrap-sass and ruby 1.8.7


after I finally managed to get Compass running on my hosted web space (no root access), there is a new problem when trying to install bootstrap-sass:

$ compass watch
LoadError on line 31 of /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: no such file to load -- bootstrap-sass

gem install bootstrap-sass
ERROR:  Error installing bootstrap-sass:
        execjs requires Ruby version >= 1.9.3.

Well, it is quite obvious what's going on: I need Ruby >= 1.9.3 while the server only offers 1.8.7. I already checked: It is not possible to use another ruby version on this server.

Is there any way/hack/solution to use bootstrap-sass?


Solution

  • I totally agree that still using Ruby 1.8.7 is not a good idea. I am not sure why my hoster still uses a version this old, but it is simply a fact I cannot change. Sure, I can move to another hoster but for now I was able to find a working solution. Maybe someone else has the same problem. So this worked for me:

    gem install bootstrap-sass did not work because it requires execjs and the latest version requires Ruby > 1.9.3. Gladly bootstrap-sass does NOT require the latest version of execjs. So the solution is simple: Install a previous version of execjs which is happy with ruby 1.8.7:

    gem install execjs -v 2.5.0
    gem install bootstrap-sass