Bootstrapを導入したいが...
Railsでアプリ開発を勉強している最中、Bootstrap4を導入しようと思い、Qiitaの説明のとおりGemの追加やbundle install などを済ませ、ページを読み込もうとすると、
Autoprefixer doesn’t support Node v0.10.48. Update it.
というエラーが出ました。
皆さんここまではよくある話のようで解決方法がQiitaにびっしり書いてありましたがほとんど mini_racer を導入すると治るとのことだったので
gem 'mini_racer'
をGemFileに追加して bundle install するとエラーコードが。
current directory: /home/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/mini_racer-0.2.6/ext/mini_racer_extension /home/vagrant/.rbenv/versions/2.6.5/bin/ruby -I /home/vagrant/.rbenv/versions/2.6.5/lib/ruby/site_ruby/2.6.0 -r ./siteconf20191108-11866-1xx80oe.rb extconf.rb checking for -lpthread... yes <stdin>:2:5: error: #error A compiler that supports at least C++11 is required in order to compile this project. WARNING: C++11 support is required for compiling mini_racer. Please make sure you are using a compiler that supports at least C++11. Examples of such compilers are GCC 4.7+ and Clang 3.2+. If you are using Travis, consider either migrating your build to Ubuntu Trusty or installing GCC 4.8. See mini_racer's README.md for more information. creating Makefile current directory: /home/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/mini_racer-0.2.6/ext/mini_racer_extension make "DESTDIR=" clean current directory: /home/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/mini_racer-0.2.6/ext/mini_racer_extension make "DESTDIR=" compiling mini_racer_extension.cc cc1plus: 警告: command line option "-Wimplicit-int" is valid for C/ObjC but not for C++ mini_racer_extension.cc:12:18: error: atomic: そのようなファイルやディレクトリはありません In file included from ///省略 cc1plus: 警告: unrecognized command line option "-Wno-tautological-compare" cc1plus: 警告: unrecognized command line option "-Wno-self-assign" cc1plus: 警告: unrecognized command line option "-Wno-parentheses-equality" cc1plus: 警告: unrecognized command line option "-Wno-constant-logical-operand" cc1plus: 警告: unrecognized command line option "-Wno-cast-function-type" make: *** [mini_racer_extension.o] エラー 1 make failed, exit code 2 Gem files will remain installed in /home/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/mini_racer-0.2.6 for inspection. Results logged to /home/vagrant/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0-static/mini_racer-0.2.6/gem_make.out An error occurred while installing mini_racer (0.2.6), and Bundler cannot continue. Make sure that `gem install mini_racer -v '0.2.6' --source 'https://rubygems.org/'` succeeds before bundling.
version指定のインストール
nodejsの再インストールは試しましたが効果なし。
### 環境
win10
vagrant
centos6.1
ruby 2.6.5
rails 5.1.7
nodejs 0.10.48
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/11/10 15:19