Installing Ruby Gem Less-Rails on Windows MAChine Using Therubyracer

therubyracer gem on windows

No, there is no way that I know of to currently install this gem on Windows. The problem is that there is currently no pre-compiled version of the libv8 gem for Windows, and the source version is only compatible with *nix. It does not necessarily have to be that way, it just requires somebody taking the time to make the compile work for Windows. https://github.com/cowboyd/libv8

That said, Windows should come with a JScript, the Microsoft JavaScript runtime, which Rails (via execjs) will automatically detect and use, so you should be able to just remove your dependency on therubyracer.

As the maintainer of that gem, this would of course make me sad, but it should get you on your way.

while tryying to run 'rails s', why does it fail and ask to INSTALL gem 'therubyracer' to use Less

Comment the following gems in Gemfile and set the version of twitter-bootstrap-rails then bundle install :-

gem "twitter-bootstrap-rails", '2.2.6'
#gem 'therubyracer', :platforms => :ruby
#gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS

As on windows therubyracer and less-rails gems are not required.



Related Topics



Leave a reply



Submit