質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.35%
Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

解決済

1回答

1501閲覧

bundle install のエラーの解決方法がわからない

olive-miu

総合スコア5

Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2020/05/20 01:40

bundle install をすると以下のエラーが発生してしまいます。

C:\Users\名前\rails\asagao>bundle install Fetching gem metadata from https://rubygems.org/............. Fetching gem metadata from https://rubygems.org/. Resolving dependencies...NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/sass-3.7.4.gemspec:21. .NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/sprockets-3.7.2.gemspec:19. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/i18n-0.9.5.gemspec:17. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Fetching gem metadata from https://rubygems.org/............. Fetching gem metadata from https://rubygems.org/. Resolving dependencies...NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/sass-3.7.4.gemspec:21. .NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/sprockets-3.7.2.gemspec:19. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/i18n-0.9.5.gemspec:17. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/rack-test-0.6.3.gemspec:17. . NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/archive-zip-0.12.0.gemspec:16. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/coderay-1.1.2.gemspec:21. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/coffee-rails-4.2.2.gemspec:16. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/coffee-script-source-1.12.2.gemspec:16. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/erubis-2.7.0.gemspec:17. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/formatador-0.2.5.gemspec:18. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/minitest-reporters-1.1.14.gemspec:17. Using rake 13.0.1 Using concurrent-ruby 1.1.6 Using i18n 1.8.2 中略 Using jbuilder 2.10.0 Using method_source 1.0.0 Fetching puma 3.11.0 Installing puma 3.11.0 with native extensions 警告: mingw-w64-x86_64-openssl-1.1.1.f-1 は最新です -- スキップ Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/puma-3.11.0/ext/puma_http11 C:/Ruby24-x64/bin/ruby.exe -I C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0 -r ./siteconf20200520-7592-1jllvnv.rb extconf.rb checking for BIO_read() in -lcrypto... no checking for BIO_read() in -llibeay32... no creating Makefile current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/puma-3.11.0/ext/puma_http11 make "DESTDIR=" clean current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/puma-3.11.0/ext/puma_http11 make "DESTDIR=" generating puma_http11-x64-mingw32.def compiling http11_parser.c Cannot create temporary file in C:\Users????\AppData\Local\Temp\: Invalid argument make: *** [Makefile:242: http11_parser.o] エラー 3 make failed, exit code 2 Gem files will remain installed in C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/puma-3.11.0 for inspection. Results logged to C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/puma-3.11.0/gem_make.out An error occurred while installing puma (3.11.0), and Bundler cannot continue. Make sure that `gem install puma -v '3.11.0' --source 'https://rubygems.org/'` succeeds before bundling. In Gemfile: puma

名前の部分はひらがなです

bundle installをする前に
gem install puma を行うと下記の内容が返されます

C:\Users\名前\rails\asagao>gem install puma -v '3.11' NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/archive-zip-0.12.0.gemspec:16. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. 中略 NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from C:/Ruby24-x64/lib/ruby/gems/2.4.0/specifications/sprockets-3.7.2.gemspec:19. Temporarily enhancing PATH for MSYS/MINGW... Installing required msys2 packages: mingw-w64-x86_64-openssl 警告: mingw-w64-x86_64-openssl-1.1.1.f-1 は最新です -- スキップ Building native extensions. This could take a while... ERROR: Error installing puma: ERROR: Failed to build gem native extension. current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/puma-3.11.0/ext/puma_http11 C:/Ruby24-x64/bin/ruby.exe -I C:/Ruby24-x64/lib/ruby/site_ruby/2.4.0 -r ./siteconf20200520-19360-1rw6yn6.rb extconf.rb checking for BIO_read() in -lcrypto... no checking for BIO_read() in -llibeay32... no creating Makefile current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/puma-3.11.0/ext/puma_http11 make "DESTDIR=" clean current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/puma-3.11.0/ext/puma_http11 make "DESTDIR=" generating puma_http11-x64-mingw32.def compiling http11_parser.c Cannot create temporary file in C:\Users????\AppData\Local\Temp\: Invalid argument make: *** [Makefile:242: http11_parser.o] エラー 3 make failed, exit code 2 Gem files will remain installed in C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/puma-3.11.0 for inspection. Results logged to C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/puma-3.11.0/gem_make.out

この文の意味がよくわからないので、どう解決すればよいかわかりません
誰か教えて頂けると幸いです

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

technocore

2020/05/20 03:12

>C:\Users\名前\rails >名前の部分はひらがなです まずアドバイスですが、パスに全角文字を含めるのは止めたほうが 良いです。 予期せぬトラブルの元になりますので。
guest

回答1

0

ベストアンサー

Cannot create temporary file in C:\Users????\AppData\Local\Temp: Invalid

最近、同じ質問に回答しました。

ユーザー環境変数TEMPTMPに、
・全角文字や空白を含まない
・自分に書き込み権限のある
ディレクトリを指定してください。

新規でC:\Tempを作って(DドライブがあるならD:でも)、それを指定するのが良いと思います。

今後の無用なエラーを避けるために、インストール先も、C:\Users\名前\rails\~~を止めて、C:\rails\~とかにした方が良いです。

さらに言うと、
RailsのようなLinux由来の複雑なプロダクトを、Windows直下で動かそうとするのはかなりハードルが高いです。仮想マシンでLinuxをインストールしてそこで作業する方を薦める人が多いようです。

投稿2020/05/20 13:12

otn

総合スコア85901

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.35%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問