vagrantにログインしている状態でRuby, Railsを扱いたい
ドットインストールでRailsの学習を行おうとしたとこと、仮想マシン上にRubyがインストールされていないようでした。Rubyをインストールしようとしてもエラーが出てしまいます。ターミナルなどの扱いも初心者ですので何をすればいいのか全くわかりません。
発生している問題・エラーメッセージ
仮想マシンにSSHでログインし、「rbenv install 2.1.3」を試したところ、以下のメッセージが出ました。 Downloading ruby-2.1.3.tar.bz2... -> https://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.3.tar.bz2 Installing ruby-2.1.3... WARNING: ruby-2.1.3 is past its end of life and is now unsupported. It no longer receives bug fixes or critical security updates. BUILD FAILED (CentOS Linux 7 using ruby-build 20190130-6-g2ab166e) Inspect or clean up the working tree at /tmp/ruby-build.20190307190742.21125 Results logged to /tmp/ruby-build.20190307190742.21125.log Last 10 log lines: /tmp/ruby-build.20190307190742.21125/ruby-2.1.3 /tmp/ruby-build.20190307190742.21125 ~ checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/tmp/ruby-build.20190307190742.21125/ruby-2.1.3': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。