【问题标题】:rake aborted cannot load such file --v8 windowsrake aborted 无法加载此类文件 --v8 windows
【发布时间】:2013-09-17 17:15:49
【问题描述】:

请帮忙,这是我的 gemfile。这是我在 ubuntu 12.04 上创建的旧项目,现在我正在尝试在 Windows 8 上运行它。

来源'https://rubygems.org'

gem 'rails', '3.2.13'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'pg'
gem 'devise', '2.2.4'
gem 'execjs', :git => 'git://github.com/kennyj/execjs.git', :branch => 'rails_issue_2880'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  #gem 'therubyracer', :platforms => :ruby
  gem 'twitter-bootstrap-rails'
  gem 'less-rails'
  gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'

命令提示符:

C:\Users\manu\Documents\projets\rails\xibart>rake db:migrate
[WARNING] Please install gem 'therubyracer' to use Less.
rake aborted!
cannot load such file -- v8
C:/Users/manu/Documents/projets/rails/xibart/config/application.rb:7:in `<top (r
equired)>'
C:/Users/manu/Documents/projets/rails/xibart/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)

【问题讨论】:

  • 我安装了nodejs并重新启动了我的笔记本电脑,现在它可以正常工作了

标签: ruby-on-rails-3 execjs


【解决方案1】:

取消注释 ruby​​ racer 线以安装它:

gem 'therubyracer', :platforms => :ruby

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-03-20
  • 2014-09-15
  • 1970-01-01
  • 2021-04-08
  • 1970-01-01
  • 2019-12-18
  • 2021-05-16
相关资源
最近更新 更多