windows10
ruby2.7.1
rails6
bundleをしたところ
Fetching bcrypt 3.1.16 Installing bcrypt 3.1.16 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bcrypt-3.1.16/ext/mri C:/Ruby27-x64/bin/ruby.exe -I C:/Ruby27-x64/lib/ruby/site_ruby/2.7.0 -r ./siteconf20200924-3060-15vz77i.rb extconf.rb creating Makefile current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bcrypt-3.1.16/ext/mri make "DESTDIR=" clean current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bcrypt-3.1.16/ext/mri make "DESTDIR=" generating bcrypt_ext-x64-mingw32.def compiling bcrypt_ext.c Cannot create temporary file in C:\Users???J?I??\AppData\Local\Temp\: Invalid argument make: *** [Makefile:244: bcrypt_ext.o] エラー 3 make failed, exit code 2 Gem files will remain installed in C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/bcrypt-3.1.16 for inspection. Results logged to C:/Ruby27-x64/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/bcrypt-3.1.16/gem_make.out Make sure that `gem install bcrypt -v '3.1.16' --source 'https://rubygems.org/'` succeeds before bundling. In Gemfile: devise-i18n was resolved to 1.9.2, which depends on devise was resolved to 4.7.3, which depends on bcrypt
このようなエラーが出てしまいます。
ふつうに
gem install bcrypt -v '3.1.16'
をやっても
Building native extensions. This could take a while... ERROR: Error installing bcrypt: ERROR: Failed to build gem native extension.
と出ていしまいます。
ほかにも
gem install bcrypt --platform ruby
や
bundle update
もやりましたが変わりませんでした。
何かわかる方は回答お願いします。
gem 'rails', '~> 6.0.3', '>= 6.0.3.2' gem 'pg', '>= 0.18', '< 2.0' gem 'puma', '~> 4.1' gem 'sass-rails', '>= 6' gem 'webpacker', '~> 4.0' gem 'turbolinks', '~> 5' gem 'jbuilder', '~> 2.7' gem 'bootsnap', '>= 1.4.2', require: false gem 'diff-lcs' group :development, :test do gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] end group :development do gem 'web-console', '>= 3.3.0' gem 'brakeman', :require => false end group :test do gem 'capybara', '>= 2.15' gem 'selenium-webdriver' gem 'webdrivers' end gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] gem 'ridgepole' gem 'slim-rails' gem 'html2slim' gem 'devise' gem 'carrierwave' gem 'dotenv-rails' gem "jquery-rails" gem 'ransack' gem 'kaminari' gem "bootstrap-sass" gem 'stripe' gem 'devise-i18n' gem 'devise-i18n-views' gem 'omniauth' gem 'omniauth-stripe-connect'
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。