gpt4 book ai didi

ruby-on-rails - 安装 therubyracer 时出错

转载 作者:行者123 更新时间:2023-12-04 19:56:12 26 4
gpt4 key购买 nike

我在捆绑安装更新时收到错误消息。这是我的 gem 文件:

source 'https://rubygems.org'

gem 'rails', '3.2.1'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'mysql2'
gem 'libv8'
gem 'therubyracer'
gem 'haml'
gem 'haml-rails'
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'compass-rails'
gem 'chosen-rails'
gem "bootstrap-wysihtml5-rails", "~> 0.3.1.10"
gem 'hpricot'
gem "rest-open-uri", "~> 1.0.0"
gem 'jquery-datatables-rails', github: 'rweng/jquery-datatables-rails'

# Gems used only for assets and not required
# in production environments by default.
group :assets do

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer'

gem 'uglifier', '>= 1.0.3'
gem "commonjs", "~> 0.2.6"
gem "less", "~> 2.2.2"
gem "less-rails", "~> 2.2.6"
end


gem 'jquery-rails'
gem 'simple_form'
gem 'client_side_validations'
gem 'client_side_validations-simple_form'

# To use ActiveModel has_secure_password
gem 'bcrypt-ruby', '~> 3.0.0'

这是在生产环境中运行 bundle install 命令后出现的错误:

An error occured while installing therubyracer (0.11.0), and Bundler cannot continue. Make sure that gem install therubyracer -v '0.11.0' succeeds before bundling.

最佳答案

我做了以下对我有用的事情:

  • 我从我的 Gemfile 中注释掉了 therubyracer
  • 运行“捆绑安装”
  • 使用“gem install therubyracer”安装了最新版本的 therubyracer(在撰写本文时为 0.11.2)
  • 我取消了 therubyracer 的注释以将其放回我的 Gemfile
  • 再次运行“bundle install”,一切正常

关于ruby-on-rails - 安装 therubyracer 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13786905/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com