ruby on railsをインストールをしようと思い、rubyをインストールして
gem install rails
をじっこうしたところ下記がでました 助けてください
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
C:/Ruby24-x64/bin/ruby.exe 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:/Ruby24-x64/bin/$(RUBY_BASE_NAME)
C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:457:in `try_do': The compiler failed to gen
erate an executable file. (RuntimeError)
You have to install development tools first.
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:588:in `try_cpp'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:1095:in `block in have_header'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:945:in `block in checking_for'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:351:in `block (2 levels) in po
stpone'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:321:in `open'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:351:in `block in postpone'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:321:in `open'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:347:in `postpone'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:944:in `checking_for'
from C:/Ruby24-x64/lib/ruby/2.4.0/mkmf.rb:1094:in `have_header'
from extconf.rb:5:in `<main>'
Gem files will remain installed in C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nio4r-
2.1.0 for inspection.
Results logged to C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/nio4r-2.1.0/ext/nio4r/g
em_make.out
No.1ベストアンサー
- 回答日時:
>MSYS
MSYS2?
MSYS/Rubyをアンインストール→MSYSをインストール→Ruby 2.4をインストール→MSYS and MINGW development toolchain の実行→gemのインストール→railsのインストール
http://qiita.com/KTakata/items/1f30b8571764f7801 …
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
似たような質問が見つかりました
- Ruby Ruby / passenger のインストールについて 1 2023/01/30 18:31
- その他(プログラミング・Web制作) python fbprophetについて 1 2022/09/29 19:44
- Ruby Ruby on Railsでサーバーを立ち上げるには 1 2022/08/28 16:16
- その他(プログラミング・Web制作) python 2 2022/12/23 09:06
- Ruby MacBookAir起動時にRubyソースコードをコマンドラインで実行するには? MacのOS起動時 1 2022/04/18 01:55
- その他(プログラミング・Web制作) python flask から fastapiへの移行時のエラー対処 1 2023/02/05 12:26
- その他(SNS・コミュニケーションサービス) 自分のpcがハッキングされたようなメールが来たのですがどうすればいいですか? 4 2022/10/02 16:14
- 英語 できるだけ直訳で英語の翻訳をお願いします。(英語→日本語) 1 2022/10/15 20:59
- Mac OS MacOSのLaunchAgentsってなんですか?使い方など教えてください。 前の質問でLaunc 1 2022/04/24 02:06
- 英語 英文の添削をお願いします 4 2023/05/23 11:10
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
ruby serverが起動出来なく困っ...
-
rubygems, railsのインストール
-
Linuxの「find」コマンドについて
-
小文字wと大文字Wの区別
-
COBOLのIFの入れ子について
-
システムエンジニアの適正について
-
初心者 パイソンプログラム
-
Rubyでローカルにあるファイル...
-
Rubyで画像処理
-
rubyでcontinue 2;
-
エラーが起こる理由を教えてい...
-
VB.NETで階乗を求めるプログラ...
-
web上のhtmlファイルから文字デ...
-
OpenCV cvmatchtemplate
-
プログラミング講師はまだ需要...
-
python 素数判定コード
-
ruby.exeとrubyw.exeに違いがあ..
-
苦しんで覚えるc言語について
-
ActiveScriptRubyについて
-
プログラミング言語ベーシック
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
Ruby / passenger のインストー...
-
We're sorry, but something we...
-
WinXP+Apache2にerubyを入れま...
-
Linuxの「find」コマンドについて
-
Passengerがインストールできな...
-
Rubyのインストール
-
ruby on railsインストールでエ...
-
システムエンジニアの適正について
-
小文字wと大文字Wの区別
-
初心者 パイソンプログラム
-
プログラミング講師はまだ需要...
-
VB.NETで階乗を求めるプログラ...
-
web上のhtmlファイルから文字デ...
-
RubyでNo such file or directo...
-
プログラミング言語で大文字と...
-
Rubyの.soについて
-
九九の表示
-
ruby の Σ計算
-
バーコードのチェックデジット...
-
CかC++どちらを覚えるべきですか?
おすすめ情報