質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,6 +4,98 @@
|
|
4
4
|
bundle installしてrails sすると以下エラーが出るので解消したいです。
|
5
5
|
|
6
6
|
|
7
|
+
```
|
8
|
+
[WARNING] Please install gem 'therubyracer' to use Less.
|
9
|
+
<internal:/Users/oshita/.rbenv/versions/3.1.3/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:37:in `require': cannot load such file -- v8 (LoadError)
|
10
|
+
from <internal:/Users/oshita/.rbenv/versions/3.1.3/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
|
11
|
+
from /Users/oshita/pros/bbs/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:332:in `block in require'
|
12
|
+
from /Users/oshita/pros/bbs/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:299:in `load_dependency'
|
13
|
+
from /Users/oshita/pros/bbs/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:332:in `require'
|
14
|
+
from /Users/oshita/pros/bbs/vendor/bundle/ruby/3.1.0/gems/less-2.6.0/lib/less/java_script/v8_context.rb:2:in `<top (required)>'
|
15
|
+
from <internal:/Users/oshita/.rbenv/versions/3.1.3/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
|
16
|
+
from <internal:/Users/oshita/.rbenv/versions/3.1.3/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
|
17
|
+
from /Users/oshita/pros/bbs/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:332:in `block in require'
|
18
|
+
from /Users/oshita/pros/bbs/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:299:in `load_dependency'
|
19
|
+
from /Users/oshita/pros/bbs/vendor/bundle/ruby/3.1.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:332:in `require'
|
20
|
+
from /Users/oshita/pros/bbs/vendor/bundle/ruby/3.1.0/gems/less-2.6.0/lib/less/java_script.rb:9:in `default_context_wrapper'
|
21
|
+
from /Users/oshita/pros/bbs/vendor/bundle/ruby/3.1.0/gems/less-2.6.0/lib/less/java_script.rb:17:in `context_wrapper'
|
22
|
+
from /Users/oshita/pros/bbs/vendor/bundle/ruby/3.1.0/gems/less-2.6.0/lib/less/loader.rb:13:in `initialize'
|
23
|
+
from /Users/oshita/pros/bbs/vendor/bundle/ruby/3.1.0/gems/less-2.6.0/lib/less.rb:14:in `new'
|
24
|
+
from /Users/oshita/pros/bbs/vendor/bundle/ruby/3.1.0/gems/less-2.6.0/lib/less.rb:14:in `<module:Less>'
|
25
|
+
from /Users/oshita/pros/bbs/vendor/bundle/ruby/3.1.0/gems/less-2.6.0/lib/less.rb:9:in `<top (required)>'
|
26
|
+
from
|
27
|
+
|
28
|
+
```
|
29
|
+
|
30
|
+
警告にはtherubyracerをインストールするようにと出ているのですが、どう対処すればよいでしょうか。
|
31
|
+
また、当方m1チップのmacを使っているのですが、この問題となにか関係あるでしょうか。
|
32
|
+
|
33
|
+
一応Gemfileの中身も記載しておきます。
|
34
|
+
|
35
|
+
```
|
36
|
+
source 'https://rubygems.org'
|
37
|
+
|
38
|
+
ruby "3.1.3"
|
39
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
40
|
+
gem 'rails', '6.1.7'
|
41
|
+
# Use mysql as the database for Active Record
|
42
|
+
gem 'mysql2', '~> 0.4.10'
|
43
|
+
# Use SCSS for stylesheets
|
44
|
+
gem 'sass-rails'
|
45
|
+
# Use Uglifier as compressor for JavaScript assets
|
46
|
+
gem 'uglifier', '>= 1.3.0'
|
47
|
+
# Use CoffeeScript for .coffee assets and views
|
48
|
+
gem 'coffee-rails'
|
49
|
+
# See https://github.com/rails/execjs#readme for more supported runtimes
|
50
|
+
# gem 'therubyracer', platforms: :ruby
|
51
|
+
|
52
|
+
# Use jquery as the JavaScript library
|
53
|
+
gem 'jquery-rails'
|
54
|
+
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
55
|
+
gem 'turbolinks'
|
56
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
57
|
+
gem 'jbuilder', '~> 2.0'
|
58
|
+
# bundle exec rake doc:rails generates the API under doc/api.
|
59
|
+
gem 'sdoc', '~> 0.4.0', group: :doc
|
60
|
+
|
61
|
+
# Use ActiveModel has_secure_password
|
62
|
+
# gem 'bcrypt', '~> 3.1.7'
|
63
|
+
|
64
|
+
# Use Unicorn as the app server
|
65
|
+
# gem 'unicorn'
|
66
|
+
|
67
|
+
# Use Capistrano for deployment
|
68
|
+
# gem 'capistrano-rails', group: :development
|
69
|
+
|
70
|
+
group :development, :test do
|
71
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
72
|
+
gem 'byebug'
|
73
|
+
end
|
74
|
+
|
75
|
+
group :development do
|
76
|
+
# Access an IRB console on exception pages or by using <%= console %> in views
|
77
|
+
gem 'web-console', '~> 2.0'
|
78
|
+
|
79
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
80
|
+
gem 'spring'
|
81
|
+
end
|
82
|
+
gem 'kaminari'
|
83
|
+
gem 'pry-rails'
|
84
|
+
# gem 'compass-rails','~> 2.0'
|
85
|
+
gem 'sprockets', '>= 2.11.0'
|
86
|
+
gem 'whenever', require: false
|
87
|
+
group :production, :staging do
|
88
|
+
gem 'rails_12factor'
|
89
|
+
end
|
90
|
+
gem 'twitter'
|
91
|
+
# gem 'therubyracer' # javascript runtime。lessをコンパイルするために必要
|
92
|
+
gem 'mini_racer'
|
93
|
+
gem 'less-rails' # Railsでlessを使えるようにする。Bootstrapがlessで書かれているため
|
94
|
+
gem 'twitter-bootstrap-rails' # Bootstrapの本体
|
95
|
+
gem "ransack"
|
96
|
+
gem 'mechanize'
|
97
|
+
gem 'rake'
|
98
|
+
|
99
|
+
```
|
7
100
|
|
8
101
|
|
9
|
-
|