On Thursday, June 21, 2012 1:16:05 PM UTC-3, Ruby-Forum.com User wrote:
>
>
> Hi Luis, 
> Thanks for the answer.  I did run bundle install and bundle update a few 
> times after I changed the gemfile without any luck.  I wonder why less 
> is depending on therubyracer?  Any ideas?  


I have no idea of the contents of your Gemfile or Gemfile.lock to determine 
that.

The only hint I have is that less 2.1.0 might be the gem that depends on 
that:

http://rubygems.org/gems/less/versions/2.1.0

Upgrading to latest less might solve the issue (latest less is 2.2.1)
 

> I read on different threads 
> that Win7 has Java Runtime Development included and that is why 
> therubyracer should not be required.  Any clarification on this topic 
> would be hugely appreciated!  I am completely stuck right now.  Thanks!! 
>
>
You mean JavaScript runtime? Yes, Windows have a built-in JavaScript 
runtime accessible through "cscript" executable.

ExecJS, the gem that uses the JavaScript engine will detect it and use it.

Under some circumstances (messed up Windows installation or uninstalled 
components due customized versions of Windows) it might not work and ExecJS 
will trigger an exception saying there is no JavaScript runtime engine and 
you should install one.

If that is the case, install NodeJS and restart your computer, that should 
solve the issue.

So, to summarize:

1) Remove therubyracer from your Gemfile
2) Update less to a version that doesn't depend on therubyracer (2.2.1 
doesn't)
3) Do "bundle update less" so the Gemfile.lock gets updated
4) Start your app (ruby script\rails server)
5) If ExecJS fails, install NodeJS and try step 4 again.

--
Luis Lavena

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/PPsKNSRjPekJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to