我正在尝试设置现有项目,
运行<div class="outer">
<div class="inner">
this is pretty longggggg
</div>
</div>
<br>
<p><strong>Alternative</strong></p>
<div class="alternative outer">
<div class="inner">
this is pretty longgggggggggggg
</div>
</div>
<div class="alternative outer">
<div class="inner no-max-width">
this is pretty long
</div>
</div>
时,我遇到了以下错误。
我尝试了很多可能的解决方案,但对我没有用,我也运行了建议的命令,如bundle install
,但对我没用。
gem pristine bcrypt --version 3.1.10
bipashant@bipashant-Inspiron-5537:~/sanokam$ bundle install
Ignoring bcrypt-3.1.10 because its extensions are not built. Try: gem pristine bcrypt --version 3.1.10
Ignoring curb-0.9.3 because its extensions are not built. Try: gem pristine curb --version 0.9.3
Ignoring debug_inspector-0.0.2 because its extensions are not built. Try: gem pristine debug_inspector --version 0.0.2
Ignoring eventmachine-1.0.3 because its extensions are not built. Try: gem pristine eventmachine --version 1.0.3
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring ffi-1.9.8 because its extensions are not built. Try: gem pristine ffi --version 1.9.8
Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7
Ignoring gherkin-2.12.2 because its extensions are not built. Try: gem pristine gherkin --version 2.12.2
Ignoring http_parser.rb-0.5.3 because its extensions are not built. Try: gem pristine http_parser.rb --version 0.5.3
Ignoring kgio-2.8.1 because its extensions are not built. Try: gem pristine kgio --version 2.8.1
Ignoring mysql2-0.3.14 because its extensions are not built. Try: gem pristine mysql2 --version 0.3.14
Ignoring nokogiri-1.6.7 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.7
Ignoring ruby-prof-0.14.2 because its extensions are not built. Try: gem pristine ruby-prof --version 0.14.2
Your Ruby version is 2.3.0, but your Gemfile specified 2.1.2
而且我还有一个ruby版Gemfile。
bipashant@bipashant-Inspiron-5537:~/sanokam$ rvm list
rvm rubies
=* ruby-2.1.2 [ x86_64 ]
ruby-2.3.0 [ x86_64 ]
ruby-2.3.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
任何建议都将不胜感激,谢谢。
答案 0 :(得分:1)
您的Gemfile可能包含以下行:
ruby '2.1.2'
你正在使用ruby 2.3.0,所以你可以:
ruby '2.3.0'
和bundle install
答案 1 :(得分:1)
错误似乎很清楚。您必须更改Gemfile中指定的ruby版本,或者通过执行rvm use 2.1.2
更改您正在使用的ruby版本。您可以使用rvm --default use 2.1.2
将其设为默认版本。