rbenv installすると下記のような結果になります。
どうか力を貸してほしいです、、、
shell
1$sudo yum -y install git 2$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv 3 4$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile 5$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile 6$ exec $SHELL -l 7上記execコマンドを実行したら 8コンピュータ名@ユーザ名:~$ 9の「コンピュータ名@ユーザ名」の部分が緑色から白に変わる理由もわからない。 10また別ターミナル立ち上げて、そこで 11rbenv --version 12しても見つからないと言われるのもわからない 13下記のように「exec」コマンドしたターミナルのみrbenvが使えている 14 15$ rbenv --version 16rbenv 1.1.1-39-g59785f6 17 18$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build 19 20$ rbenv install -v 2.5.1 21/tmp/ruby-build.20181130202228.14210 ~ 22Downloading ruby-2.5.1.tar.bz2... 23-> https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.bz2 242018-11-30 20:23:41 URL:https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.bz2 [14000644/14000644] -> "ruby-2.5.1.tar.bz2" [1] 25Installing ruby-2.5.1... 26/tmp/ruby-build.20181130202228.14210/ruby-2.5.1 /tmp/ruby-build.20181130202228.14210 ~ 27checking for ruby... false 28checking build system type... x86_64-pc-linux-gnu 29checking host system type... x86_64-pc-linux-gnu 30checking target system type... x86_64-pc-linux-gnu 31checking for gcc... no 32checking for cc... no 33checking for cl.exe... no 34configure: error: in `/tmp/ruby-build.20181130202228.14210/ruby-2.5.1': 35configure: error: no acceptable C compiler found in $PATH 36See `config.log' for more details 37 38BUILD FAILED (Ubuntu 18.04 using ruby-build 20181106-14-g1ec9abd) 39 40Inspect or clean up the working tree at /tmp/ruby-build.20181130202228.14210 41Results logged to /tmp/ruby-build.20181130202228.14210.log 42 43Last 10 log lines: 44checking for ruby... false 45checking build system type... x86_64-pc-linux-gnu 46checking host system type... x86_64-pc-linux-gnu 47checking target system type... x86_64-pc-linux-gnu 48checking for gcc... no 49checking for cc... no 50checking for cl.exe... no 51configure: error: in `/tmp/ruby-build.20181130202228.14210/ruby-2.5.1': 52configure: error: no acceptable C compiler found in $PATH 53See `config.log' for more details 54
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。