###前提・実現したいこと
rails new ○○ したときのエラーを解消したい
###エラーメッセージ
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- mkmf (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
require'
from extconf.rb:1:in `<main>'
Gem files will remain installed in /home/xxxx/a/vendor/bundle/gems/json-1.8.6
for inspection.
Results logged to
/home/xxxxxx/a/vendor/bundle/gems/json-1.8.6/ext/json/ext/generator/gem_make.out
An error occurred while installing json (1.8.6), and Bundler cannot continue.
Make sure that gem install json -v '1.8.6'
succeeds before bundling.
###環境
Rails version: 5.0.1
Ruby version: 2.3.1 (x86_64-linux)
※ただしWindows 10のBash on Ubuntu on Windowsを利用しています
###試したこと
gem install json -v '1.8.6'とあったので指示通りjsonをインストールするもダメでした
railsの環境作っている途中でしたがlocalhost:3000は大丈夫です
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/01/24 10:16