6

I'm attempting to gem install twitter-bootstrap-rails on my windows machine. This gem has a dependency on therubyracer, which is not yet compatible with Windows. I found this:

therubyracer gem on windows

Which tells me I should just be able to lean on JScript. Though I don't know how to tell the gem install to ignore dependencies. I've tried to force install with:

    gem install -f twitter-bootstrap-rails --platform ruby 

To no avail. Does anyone how I can say something like "gem install twitter-bootstrap-rails [but ignore that dependency on therubyracer]"?

Community
  • 1
  • 1
JakeP
  • 727
  • 1
  • 11
  • 21

2 Answers2

8

According to this doc, there's the options

-f, --[no-]force            Force gem to install, bypassing dependency checks

and

--ignore-dependencies        Do not install any required dependent gems
Baldrick
  • 23,882
  • 6
  • 74
  • 79
  • 1
    Thanks Baldrick, not sure how I missed that. Cheers – JakeP Feb 21 '12 at 17:02
  • 9
    Hey guys, I'm running into the same problem. How do I specify these options in my gemfile so that my bundle install works correctly? – Karl Jun 20 '12 at 18:43
  • Archived docs link: http://web.archive.org/web/20080201092913/http://docs.rubygems.org/read/chapter/10 – rchasman Jan 04 '22 at 03:46
7

If your goal is to get the rails twitter boostrap working on Windows, there is a version of this that uses static CSS, avoiding the fixed dependency on therubyracer. This will install on Windows. You won't have the Less functionality, but it does work in Windows. Try this in your Gemfile:

gem 'twitter-bootstrap-rails', :git => "git://github.com/seyhunak/twitter-bootstrap-rails.git", :branch => "static"
Cliff Darling
  • 225
  • 1
  • 3
  • Don't forget, if you use the static branch, you have to add the compiled bootstrap.css file to your asset pipeline by adding the following line to your application.css file: /* *= require bootstrap */ [https://github.com/seyhunak/twitter-bootstrap-rails/blob/static/README.md](https://github.com/seyhunak/twitter-bootstrap-rails/blob/static/README.md) – Karl Jun 25 '12 at 05:02