2012-03-15 26 views
1

の 'さえずり - ブートストラップ・レール' というエラーI追加宝石レール3.2.2

bundle install 

私は、getエラー:

cc1plus.exe: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++ 
cc1plus.exe: warning: command line option "-Wimplicit-function-declaration" is valid for C/ObjC but not for C++ 
In file included from v8_value.cpp:1:0: 
v8_handle.h: In function 'v8::Persistent<T>& rr_v8_handle(VALUE) [with T = v8::Value, VALUE = long unsigned int]': 
v8_value.cpp:10:37: instantiated from here 
v8_handle.h:43:71: warning: dereferencing type-punned pointer will break strict-aliasing rules 
g++.exe: unrecognized option '-rdynamic' 
compiling v8_weakref.cpp 
cc1plus.exe: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++ 
cc1plus.exe: warning: command line option "-Wimplicit-function-declaration" is valid for C/ObjC but not for C++ 
g++.exe: unrecognized option '-rdynamic' 
linking shared-object v8.so 
g++.exe: d:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.3.10.4/lib/libv8/build/v8/libv8.a: No such file 
or directory 
make: *** [v8.so] Error 1 


Gem files will remain installed in d:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/therubyracer-0.9.10 for inspe 
ction. 
Results logged to d:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/therubyracer-0.9.10/ext/v8/gem_make.out 
An error occured while installing therubyracer (0.9.10), and Bundler cannot continue. 
Make sure that `gem install therubyracer -v '0.9.10'` succeeds before bundling. 
+0

表示されます彼の問題は、Windows上でルビーレーサーと、これをチェックアウト:http://stackoverflow.com/questions/6356450/therubyracer-gem-on-windows –

+0

ええと...私は仕事でWindows上で開発に固執しています私の地元のGemfile – ScottJShea

+0

に感謝します。私は理由を知っている。libv8にはWindows用のバージョンがないためだ。 –

答えて

0

回避策は、スタンドバイCSSを使用するtwitter-bootstrap-railsのバージョンを使用することです.rubyracerに依存しません。あなたのGemfileでこれを試してみてください:

宝石 'Twitterのブートストラップ・レール'、:gitの=>「gitの:。//github.com/seyhunak/twitter-bootstrap-rails

2

クリフの回避策は、私を助けた理想的。私は、実際の問題を解決するが、私のgemfileに静的分岐を追加すると、二次窓のPC上で開発するための良い十分な回避策だったでしょうさえずり - ブートストラップ・レールのreadmeから

:。

静的CSS、JSを使用して(

twitter-bootstrap-rails最新の静的CSS、JSファイルだけを提供する独立したブランチ(w/o less)を持っています。最新のビルド(ブランチから)からインストールできます:

gem 'twitter-bootstrap-rails'、:git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git'、:branch私も、私がインストールしようとするなどの問題を抱えて

https://github.com/hiranpeiris/therubyracer_for_windows

、あなたがWindowsでtherubyracerをインストールすることができ

+0

スタティックブランチを使用する場合は、application.cssファイルに次の行を追加して、コンパイル済みのbootstrap.cssファイルをアセットパイプラインに追加する必要があります。 /* * =ブートストラップが必要です * / – Karl

1

=>「静的」は、その依存関係「therubyracer」をさえずり - ブートストラップ・レール、私は続きます(Windows 7)