railsの環境構築をしようとしています。
bundle installを行ったのですが、
[!] There was an error parsing `Gemfile`: compile error - syntax error, unexpected ':', expecting $end gem 'therubyracer',platforms: :ruby ^. Bundler cannot continue. # from /vagrant/project/Gemfile:19 # ------------------------------------------- # # See https://github.com/rails/execjs#readme for more supported runtimes > gem 'therubyracer',platforms: :ruby # # -------------------------------------------
というエラーが出ました。
Gemfileを見てみても、特に文法上のエラーは見つからず、therubyracerのエラーだと思い、
http://l-light-note.hatenablog.com/entry/2014/09/17/134807
に従って色々試してみましたが、結果は変わりません。
改善策を教えてください。
【追記】
rubyはデフォルトでインストールされているものです。
Gemfile全文↓
Gemfile
1source 'https://rubygems.org' 2 3git_source(:github) do |repo_name| 4 repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") 5 "https://github.com/#{repo_name}.git" 6end 7 8# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 9gem 'rails', '~> 5.1.5' 10# Use sqlite3 as the database for Active Record 11gem 'sqlite3' 12# Use Puma as the app server 13gem 'puma', '~> 3.7' 14# Use SCSS for stylesheets 15gem 'sass-rails', '~> 5.0' 16# Use Uglifier as compressor for JavaScript assets 17gem 'uglifier', '>= 1.3.0' 18# See https://github.com/rails/execjs#readme for more supported runtimes 19gem 'therubyracer', platforms: :ruby 20 21# Use CoffeeScript for .coffee assets and views 22gem 'coffee-rails', '~> 4.2' 23# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks 24gem 'turbolinks', '~> 5' 25# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 26gem 'jbuilder', '~> 2.5' 27# Use Redis adapter to run Action Cable in production 28# gem 'redis', '~> 4.0' 29# Use ActiveModel has_secure_password 30# gem 'bcrypt', '~> 3.1.7' 31 32# Use Capistrano for deployment 33# gem 'capistrano-rails', group: :development 34 35group :development, :test do 36 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 37 gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] 38 # Adds support for Capybara system testing and selenium driver 39 gem 'capybara', '~> 2.13' 40 gem 'selenium-webdriver' 41end 42 43group :development do 44 # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. 45 gem 'web-console', '>= 3.3.0' 46 gem 'listen', '>= 3.0.5', '< 3.2' 47 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 48 gem 'spring' 49 gem 'spring-watcher-listen', '~> 2.0.0' 50end 51 52# Windows does not include zoneinfo files, so bundle the tzinfo-data gem 53gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 54 55gem 'sass' 56gem 'unicorn' 57
回答2件
あなたの回答
tips
プレビュー