Windows環境で gem 'twitter-bootstrap-rails' は、あきらめた話
Windows環境でRailsでtwitter-bootstrapを使いたく思い、
http://gagapi.hatenablog.jp/entry/2013/05/15/190651
を参考に途中まで進めたけど問題発生。
もう絶対に解決できそうになかったのであきらめた。
lessのコンパイルにV8エンジンを使うのでtherubyracerというgemをインストしたいんだよね? これ。
以下のようなエラーが出て bundle install 、therubyracerのインストールが失敗する。
Could not find gem 'therubyracer (> = 0) x64-mingw32' in source at ...
WindowsにRubyインストールしたとき64bit版インストールしてたわー。
Ruby環境が64bitなのに、32bit版のgem "therubyracer x86-mingw32" はインストールできないよね。
。。。もしかしてできるの? もしできるのならごめんなさい。やり方教えてください。
ということで素早くあきらめた。
そもそも twitter-bootstrapのsass版、bootstrap-sassってのがあるみたいだからこっちでいいやん。
と、思いつつさまよってたら
https://github.com/decioferreira/bootstrap-generators/issues/18
「The gem already includes a version bootstrap. You don't need bootstrap-sass.」
ということで gem 'bootstrap-sass' も必要ないみたい。
https://github.com/decioferreira/bootstrap-generators#generators
そして結局Vagrantでいろいろ全てが解決。わかってたけどなー。。