新しいmacに開発環境の構築をしています。
OS:Mojave
- Homebrewのインストール→完了
- rbenvのインストール→完了
- rubyのインストール→イマココ
rbenv install 2.5.1
を実行すると、
Installing ruby-2.5.1... BUILD FAILED (OS X 10.14 using ruby-build 20180822) Inspect or clean up the working tree at /var/folders/gk/vj2yx8z93fs8cz0hzn85flpr0000gn/T/ruby-build.20180929171935.15032 Results logged to /var/folders/gk/vj2yx8z93fs8cz0hzn85flpr0000gn/T/ruby-build.20180929171935.15032.log Last 10 log lines: checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for cd using physical directory... cd -P checking whether CFLAGS is valid... yes checking whether LDFLAGS is valid... no configure: error: something wrong with LDFLAGS="-L/Users/hoge/.rbenv/versions/2.5.1/lib " make: *** No targets specified and no makefile found. Stop.
となっていしまいます。
ぐぐってみたところ、Xcodeを更新する必要がある?ということで、下記を実行。
xcode-select --install
すると、
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
このような結果になります。
どうればよいでしょうか・・。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。