Note that there are some explanatory texts on larger screens.

plurals
  1. POWarning using twitter-bootstrap-rails generators on Windows
    primarykey
    data
    text
    <p>I'm trying to use the twitter-bootstrap-rails gem on my first Rails project, on a Windows 7 machine running </p> <pre><code>ruby 1.9.3p125 (2012-02-16) [i386-mingw32] Rails 3.2.1 twitter-bootstrap-rails 2.1.1 </code></pre> <p>When I run <code>rails g bootstrap:install</code> I get the following:</p> <pre><code>[WARNING] Please install gem 'therubyracer' to use Less. C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.1.5/lib/bundler/runtime.rb:74:in `require': cannot load such file -- twitter/bootstrap/rails (LoadError) from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-.1.5/lib/bundler/runtime.rb:74:in 'rescue in block in require' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-.1.5/lib/bundler/runtime.rb:62:in 'block in require' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-.1.5/lib/bundler/runtime.rb:55:in 'each' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-.1.5/lib/bundler/runtime.rb:55:in 'require' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-.1.5/lib/bundler.rb:119:in `require' from H:/Dev/sugarcane/config/application.rb:7:in `&lt;top (required)&gt;' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:24:in `require' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:24:in `&lt;top (required)&gt;' from script/rails:6:in `require' from script/rails:6:in `&lt;main&gt;' </code></pre> <p>Here's my Gemfile:</p> <pre><code>source 'https://rubygems.org' gem 'rails', '3.2.1' gem 'pg' group :assets do gem 'sass-rails', '~&gt; 3.2.3' gem 'coffee-rails', '~&gt; 3.2.1' gem 'twitter-bootstrap-rails', :git =&gt; 'git://github.com/seyhunak/twitter-bootstrap-rails.git' gem 'uglifier', '&gt;= 1.0.3' end gem 'jquery-rails' </code></pre> <p>I've tried including <code>gem therubyracer</code> in my Gemfile, but I get compilation errors about the libv8 gem, which <a href="https://stackoverflow.com/questions/6356450/therubyracer-gem-on-windows">isn't available on Windows</a>. I've also tried <code>gem therubyracer, :platform =&gt; :ruby</code>, but Bundler still attempts to install therubyracer on <code>bundle install</code>. I also tried installing node.js and including <code>gem execjs</code>, but to no avail.</p> <p>Every solution I come across doesn't seem to help at all. I'd like to use LESS rather than static CSS on this project, so a solution to allow me to use LESS with Rails on a Windows machine would be most helpful.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload