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

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

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

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

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

Q&A

解決済

1回答

215閲覧

RailsをWindows10にインストールしたい

anharu

総合スコア28

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

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

0グッド

0クリップ

投稿2017/09/20 01:22

編集2017/09/20 01:48
PS C:\Ruby22-x64\devkit> gem install rails Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/nio4r-2.1.0/ext/nio4r C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20170920-23484-1r7gyhb.rb extconf.rb checking for unistd.h... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/Ruby22-x64/bin/$(RUBY_BASE_NAME) C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. You have to install development tools first. from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:587:in `try_cpp' from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:1060:in `block in have_header' from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:911:in `block in checking_for' from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:351:in `block (2 levels) in postpone' from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:321:in `open' from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:351:in `block in postpone' from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:321:in `open' from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:347:in `postpone' from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:910:in `checking_for' from C:/Ruby22-x64/lib/ruby/2.2.0/mkmf.rb:1059:in `have_header' from extconf.rb:5:in `<main>' To see why this extension failed to compile, please check the mkmf.log which can be found here: C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/nio4r-2.1.0/mkmf.log extconf failed, exit code 1 Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/nio4r-2.1.0 for inspection. Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/nio4r-2.1.0/gem_make.out

gem install railsをしたらこうなりました。
どうしたらrails をインストールできますか?

Rubyinstaller の2.2.6の64bitをインストールし、64ビット版のdevkitをインストールしました。そして、gem install rails。

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

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

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

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

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

m.ts10806

2017/09/20 01:30

エラーメッセージは調べてみましたか?また、参考にしたサイトなどありましたらURLも質問本文に追記してください。
anharu

2017/09/20 01:48

本を参考にしました。編集しておきました。
m.ts10806

2017/09/20 01:57

できれば、その本のタイトルもお願いします。
anharu

2017/09/20 02:01

Ruby on Rails5超入門です
anharu

2017/09/20 02:02

Rubyinstaller の2.2.6の64bitをインストールし、64ビット版のdevkitをインストールしました。そして、gem install railsをしただけです
guest

回答1

0

ベストアンサー

初心者なら、RailsInstallerのほうがいいんじゃないでしょうか。
使った事無いですけど。

https://www.ruby-lang.org/ja/downloads/ より:

Windows版Rubyバイナリ

Windows向けのバイナリが有志により配布されています。
ActiveScriptRuby 安定版に幾つかの便利なライブラリを加え、さらにRubyをCOMサーバとしても利用可能にしたもの。ベースはmswin32版
RubyInstaller (英語) 安定版に多数の便利なライブラリを加えたもの。ベースはmingw32版
RailsInstaller (英語) RubyInstaller に Rails の開発に必要なものを加えたもの。

投稿2017/09/20 03:51

otn

総合スコア84499

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問