2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Rubyのインストールでエラーになった

Posted at

リモートワークで少し時間が出来たので
railsチュートリアル用にローカル環境を構築しようと思ったらrubyのインストールでハマったので備忘

$ rbenv install 2.6.3

上記コマンドで下記のようなエラーになった。

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
configure: error: clang version 3.0 or later is required

OSアップデートの影響らしい
下記コマンドを実行してxcodeをインストールしたら無事にrubyのインストールできました

$ rbenv install 2.6.3
ruby-build: use openssl from homebrew
Downloading ruby-2.6.3.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.3.tar.bz2
Installing ruby-2.6.3...
ruby-build: use readline from homebrew
Installed ruby-2.6.3 to /Users/name/.rbenv/versions/2.6.3

rubyのインストールができたので
railsの環境構築に進みます!

以下参考にさせていただきました。ありがとうございます:bow: :bow: :bow:
https://qiita.com/nishina555/items/e23d73067a5cac182a63

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?