ruby-on-rails – 使用less(2.2.1)引发需要therubyracer的错误(无法在windows上安装therubyracer)

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – 使用less(2.2.1)引发需要therubyracer的错误(无法在windows上安装therubyracer)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我一直在努力让twitter-bootstrap-rails gem在我的 windows机器上工作,并且在尝试安装’the rubyracer’宝石时遇到了错误,这是一个较旧版本的较少宝石的依赖.

我认为升级到较低的2.2.1,这不依赖于therubyracer,但尽管它似乎认为我仍然需要安装therubyracer.这是我尝试启动rails服务器’rails s’时得到的错误输出.

$rails s
[警告]请安装gem’therubyracer’以使用Less.
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.8/lib/act
ive_support / dependencies.rb:251:in require’:无法加载此类文件 – v8(LoadE
RROR)
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / lib / active_support / dependencies.rb:251:inblock in require’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / lib / active_support / dependencies.rb:236:in load_dependency’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / LIB / active_support / dependencies.rb:251:inrequire”
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/less-2.2.2/lib
/less/java_script/v8_context.rb:2:in< top(required)>‘
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / LIB / active_support / dependencies.rb:251:inrequire”
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / lib / active_support / dependencies.rb:251:in block in require’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / lib目录/ active_support / dependencies.rb:236:inload_dependency”
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / lib / active_support / dependencies.rb:251:in require’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/less-2.2.2/lib
/less/java_script.rb:9:indefault_context_wrapper”
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/less-2.2.2/lib
/less/java_script.rb:17:in context_wrapper’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/less-2.2.2/lib
/less/loader.rb:10:ininitialize”
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/less-2.2.2/lib
/less.rb:14:in new’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/less-2.2.2/lib
/less.rb:14:in’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/less-2.2.2/lib
/less.rb:9:in< top(required)>‘
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / LIB / active_support / dependencies.rb:251:inrequire”
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / lib / active_support / dependencies.rb:251:in block in require’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / lib目录/ active_support / dependencies.rb:236:inload_dependency”
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / lib / active_support / dependencies.rb:251:in require’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/less-rails-2.2
0.3 / LIB /少/ rails.rb:6:在
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / lib / active_support / dependencies.rb:251:in require’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / lib / active_support / dependencies.rb:251:inblock in require’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / lib / active_support / dependencies.rb:236:in load_dependency’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / LIB / active_support / dependencies.rb:251:inrequire”
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/less-rails-2.2
.3 / lib / less-rails.rb:1:in< top(required)>‘
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / LIB / active_support / dependencies.rb:251:inrequire”
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / lib / active_support / dependencies.rb:251:in block in require’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / lib目录/ active_support / dependencies.rb:236:inload_dependency”
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
3.2.8 / lib / active_support / dependencies.rb:251:in require’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/twitter-bootst
说唱导轨-2.1.2 / LIB / Twitter的自举-rails.rb:9:在
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/runtime.rb:68:in要求’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/runtime.rb:68:inblock(2个级别)in require’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/runtime.rb:66:in each’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/runtime.rb:66:inblock in require’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/runtime.rb:55:in each’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/runtime.rb:55:inrequire”
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler.rb:122:in要求’
来自C:/Sites/alliance/config/application.rb:9:in’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.8
/lib/rails/commands.rb:53:in require’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.8
/lib/rails/commands.rb:53:inblock in’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.8
/lib/rails/commands.rb:50:in tap’
来自c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.8
/lib/rails/commands.rb:50:in’
来自script / rails:6:in require’
来自script / rails:6:in’

这是我的Gemfile和Gemfile.lock文件.任何人都可以帮我弄清楚如何告诉我的应用程序它不需要’therubyracer’安装?

—- —-的Gemfile
来源’https://rubygems.org’

宝石’轨道’,’〜> 3.2.3′
宝石’jquery-rails’
宝石’haml-rails’
宝石’simple_form’
宝石’decent_exposure’
gem“devise”,:git => “混帐://github.com/plataformatec/devise.git”
宝石’康康’
宝石’虾’
宝石’洗劫’
gem’actomachine’,’= 1.0.0.rc.4′
gem’therubyracer’,: platforms => :ruby

组:资产
宝石’execjs’
宝石’sass-rails’,’〜> 3.2.3′
gem’coffee-rails’,’〜> 3.2.1′
宝石’bootstrap-sass’
宝石’twitter-bootstrap-rails’
宝石’uglifier’,’> = 1.0.3′
结束

group:开发,:test do
宝石’调试器’
宝石’rails_best_practices’
gem’factory_girl_rails’,’〜> 2.0′
宝石’sqlite3′
gem’simplecov’,require:false
宝石’rspec-rails’
宝石’rspec-instafail’
宝石’rspec-steps’
gem’factory_girl_rails’,’〜> 2.0′
宝石“水豚”
宝石“selenium-webdriver”
gem’stuny”提供save_and_open_page
宝石’fuubar’

宝石’database_cleaner’
宝石’rantly’
宝石’heroku’
gem’rb-fsevent’#,:require =>如果RUBY_PLATFORM =〜/ darwin / i,则为false
宝石’guard-rspec’
结束

组:生产做
宝石’MysqL2′
宝石’瘦’
宝石’pg’
结束

—- —- Gemfile.lock的

GIT
remote:git://github.com/plataformatec/devise.git
修订版:f7dd59839cd39ed3c57948d37e8a95c697c14647
眼镜:
设计(2.1.2)
bcrypt-ruby(〜> 3.0)
orm_adapter(〜> 0.1)
铁路(〜> 3.1)
监狱长(〜> 1.2.1)

宝石
远程:https://rubygems.org/
眼镜:
Ascii85(1.0.1)
动作制作者(3.2.8)
actionpack(= 3.2.8)
邮件(〜> 2.4.4)
actionpack(3.2.8)
activemodel(= 3.2.8)
activesupport(= 3.2.8)
构建器(〜> 3.0.0)
erubis(〜> 2.7.0)
旅程(〜> 1.0.4)
机架(〜> 1.4.0)
rack-cache(〜> 1.2)
机架测试(〜> 0.6.1)
链轮(〜> 2.1.3)
activemodel(3.2.8)
activesupport(= 3.2.8)
构建器(〜> 3.0.0)
activerecord(3.2.8)
activemodel(= 3.2.8)
activesupport(= 3.2.8)
arel(〜> 3.0.2)
tzinfo(〜> 0.3.29)
activeresource(3.2.8)
activemodel(= 3.2.8)
activesupport(= 3.2.8)
activesupport(3.2.8)
i18n(〜> 0.6)
multi_json(〜> 1.0)
可寻址的(2.3.2)
arel(3.0.2)
awesome_print(1.0.2)
bcrypt-ruby(3.0.1-x86-mingw32)
bootstrap-sass(2.1.0.0)
建设者(3.0.1)
康康(1.6.8)
水豚(1.1.2)
mime-types(> = 1.16)
nokogiri(> = 1.3.3)
机架(> = 1.0.0)
机架测试(> = 0.5.4)
selenium-webdriver(〜> 2.0)
xpath(〜> 0.1.4)
子进程(0.3.5)
ffi(〜> 1.0,> = 1.0.6)
咖啡轨(3.2.2)
咖啡脚本(> = 2.2.0)
铁路(〜> 3.2.0)
咖啡脚本(2.2.0)
咖啡脚本源
execjs
coffee-script-source(1.3.3)
有色(1.2)
列(0.3.6)
commonjs(0.2.6)
守护进程(1.1.9)
database_cleaner(0.8.0)
调试器(1.2.0)
列化(> = 0.3.1)
debugger-linecache(〜> 1.1.1)
debugger-ruby_core_source(〜> 1.1.3)
debugger-linecache(1.1.2)
debugger-ruby_core_source(> = 1.1.1)
debugger-ruby_core_source(1.1.3)
decent_exposure(1.0.2)
差异(1.1.3)
erubis(2.7.0)
eventmachine(1.0.0.rc.4-x86-mingw32)
excon(0.16.2)
execjs(1.4.0)
multi_json(〜> 1.0)
factory_girl(3.0.0)
activesupport(> = 3.0.0)
factory_girl_rails(2.0.0)
factory_girl(〜> 3.0.0)
铁路(> = 3.0.0)
ffi(1.1.5)
fuubar(1.0.0)
rspec(〜> 2.0)
rspec-instafail(〜> 0.2.0)
ruby-progressbar(〜> 0.0.10)
后卫(1.3.2)
听(> = 0.4.2)
thor(> = 0.14.6)
guard-rspec(1.2.1)
守卫(> = 1.1)
haml(3.1.7)
haml-rails(0.3.4)
actionpack(〜> 3.0)
activesupport(〜> 3.0)
haml(〜> 3.0)
铁路(〜> 3.0)
hashery(2.0.1)
heroku(2.31.2)
heroku-api(〜> 0.3.4)
launchy(> = 0.3.2)
netrc(〜> 0.7.7)
rest-client(〜> 1.6.1)
rubyzip
heroku-api(0.3.4)
excon(〜> 0.16.1)
徒步旅行(1.2.1)
i18n(0.6.1)
旅程(1.0.4)
jquery-rails(2.1.2)
铁路(> = 3.1.0,< 5.0)
thor(〜> 0.14)
json(1.7.5)
launchy(2.1.2)
可寻址的(〜> 2.3)
少(2.2.2)
commonjs(〜> 0.2.6)
少轨(2.2.3)
actionpack(> = 3.1)
少(〜> 2.2.0)
libwebsocket(0.1.5)
寻址
听(0.5.0)
邮件(2.4.4)
i18n(> = 0.4.0)
哑剧类型(〜> 1.16)
树梢(〜> 1.4.8)
哑剧型(1.19)
multi_json(1.3.6)
MysqL2(0.3.11-x86-mingw32)
netrc(0.7.7)
nokogiri(1.5.5-x86-mingw32)
orm_adapter(0.4.0)
pdf阅读器(1.2.0)
Ascii85(〜> 1.0.0)
hashery(〜> 2.0)
rubyRC4
pg(0.14.1-x86-mingw32)
多孔的(0.5.0)
activerecord(〜> 3.0)
多语言(0.3.3)
虾(0.12.0)
pdf-reader(> = 0.9.0)
ttfunk(〜> 1.0.2)
进度条(0.11.0)
机架(1.4.1)
机架缓存(1.2)
机架(> = 0.4)
rack-ssl(1.3.2)

机架测试(0.6.1)
机架(> = 1.0)
铁轨(3.2.8)
actionmailer(= 3.2.8)
actionpack(= 3.2.8)
activerecord(= 3.2.8)
activeresource(= 3.2.8)
activesupport(= 3.2.8)
捆绑器(〜> 1.0)
铁路(= 3.2.8)
rails_best_practices(1.10.1)
的ActiveSupport
awesome_print
有色
erubis
国际化
进度条
sexp_processor
铁路(3.2.8)
actionpack(= 3.2.8)
activesupport(= 3.2.8)
rack-ssl(〜> 1.3.2)
耙(> = 0.8.7)
rdoc(〜> 3.4)
thor(> = 0.14.6,< 2.0)
耙子(0.9.2.2)
搜索(0.7.0)
actionpack(〜> 3.0)
activerecord(〜> 3.0)
多孔的(〜> 0.5.0)
rantly(0.3.1)
rb-fsevent(0.9.1)
rdoc(3.12)
json(〜> 1.4)
休息客户(1.6.7)
mime-types(> = 1.16)
rspec(2.11.0)
rspec-core(〜> 2.11.0)
rspec-expectations(〜> 2.11.0)
rspec-mocks(〜> 2.11.0)
rspec-core(2.11.1)
rspec-expectations(2.11.3)
diff-lcs(〜> 1.1.3)
rspec-instafail(0.2.4)
rspec-mocks(2.11.2)
rspec-rails(2.11.0)
actionpack(> = 3.0)
activesupport(> = 3.0)
铁路(> = 3.0)
rspec(〜> 2.11.0)
rspec-steps(0.0.8)
rspec(> = 2.6)
ruby-progressbar(0.0.10)
ruby-rc4(0.1.5)
rubyzip(0.9.9)
sass(3.2.1)
sass-rails(3.2.5)
铁路(〜> 3.2.0)
sass(> = 3.1.10)
倾斜(〜> 1.3)
selenium-webdriver(2.25.0)
子进程(> = 0.2.5)
libwebsocket(〜> 0.1.3)
multi_json(〜> 1.0)
rubyzip
sexp_processor(4.0.1)
simple_form(2.0.2)
actionpack(〜> 3.0)
activemodel(〜> 3.0)
simplecov(0.6.4)
multi_json(〜> 1.0)
simplecov-html(〜> 0.5.3)
simplecov-html(0.5.3)
链轮(2.1.3)
徒步旅行(〜> 1.2)
机架(〜> 1.0)
倾斜(〜> 1.1,!= 1.3.0)
sqlite3(1.3.6-x86-mingw32)
薄(1.4.1)
守护进程(> = 1.0.9)
eventmachine(> = 0.12.6)
机架(> = 1.0.0)
索尔(0.16.0)
倾斜(1.3.3)
树梢(1.4.10)
通晓多国语言
多语言(> = 0.3.1)
ttfunk(1.0.3)
twitter-bootstrap-rails(2.1.2)
actionpack(> = 3.1)
less-rails(〜> 2.2.3)
铁路(> = 3.1)
tzinfo(0.3.33)
uglifier(1.3.0)
execjs(> = 0.3.0)
multi_json(〜> 1.0,> = 1.0.2)
监狱长(1.2.1)
机架(> = 1.0)
xpath(0.1.4)
nokogiri(〜> 1.3)

PLATFORMS
x86架构的mingw32

相关内容
自举萨斯
可以可以
水豚
咖啡轨(〜> 3.2.1)
database_cleaner
调试器
decent_exposure
设计!
eventmachine(= 1.0.0.rc.4)
execjs
factory_girl_rails(〜> 2.0)
fuubar
看守的RSpec
HAML护栏
Heroku的
jQuery的轨道
launchy
MysqL2
皮克

导轨(〜> 3.2.3)
rails_best_practices
洗劫
rantly
RB-fsevent
rspec的-instafail
RSpec的护栏
rspec的步骤
sass-rails(〜> 3.2.3)
硒的webdriver
简单的形式
simplecov
sqlite3的
therubyracer

Twitter的引导护栏
uglifier(> = 1.0.3)

解决方法

我强烈建议你遵循Daniel Kehoe的优秀:
https://github.com/RailsApps/rails3-bootstrap-devise-cancan,如果你还没有.

关于我在你的Gemfile中可以看到的唯一可疑的东西是它里面有’rubyracer’.那为什么?尝试删除它.当然,不要忘记在进行任何更改时捆绑安装.

猜你在找的Ruby相关文章