๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
IT-Engineering/TroubleShooting

[Mac] ์—ฌ๋Ÿฌ๊ฐœ์˜ ruby ๋ฒ„์ „ ์‚ฌ์šฉ์„ ์œ„ํ•œ rbenv ์„ค์น˜ ์˜ค๋ฅ˜ ํ•ด๊ฒฐ

by ๐Ÿงž‍โ™‚๏ธ 2020. 12. 1.
๋ฐ˜์‘ํ˜•
Error: Your CLT does not support macOS 11.0.
It is either outdated or was modified.
Please update your CLT or delete it if no updates are available.
Error: An exception occurred within a child process:
SystemExit: exit

๋งฅ์—์„œ ruby ์—ฌ๋Ÿฌ ๋ฒ„์ „ ์‚ฌ์šฉ์„ ์œ„ํ•œ rbenv ์„ค์น˜์‹œ ์œ„์˜ ์—๋Ÿฌ๋ฌธ์ œ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•œ ํฌ์ŠคํŒ…์„ ํ•œ๋‹ค.

ํ„ฐ๋ฏธ๋„๋กœ iTerm์„ ์‚ฌ์šฉํ•˜์˜€๊ณ , Homebrew๋Š” ์„ค์น˜๋œ ์ƒํƒœ๋กœ ๊ฐ€์ •ํ•œ๋‹ค.

Homebrew๋Š” ์•„๋ž˜์˜ ์ปค๋งจ๋“œ๋กœ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ๋‹ค.

# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

์—ฌ๊ธฐ์„œ rbenv๋ฅผ ์„ค์น˜ํ•˜๋ ค๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ๋œ๋‹ค.

# Install rbenv and ruby-build
brew install rbenv

๋ณธ ํฌ์ŠคํŒ…์€ ์ด ๊ฒฝ์šฐ์— ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๋ฉ”์‹œ์ง€๊ฐ€ ๋‚˜์˜ค๋ฉด์„œ ์„ค์น˜๊ฐ€ ๋˜์ง€ ์•Š์€ ๊ฒฝ์šฐ์— ๋Œ€ํ•œ troubleshooting ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์ด๋‹ค.

Error: Your CLT does not support macOS 11.0.
It is either outdated or was modified.
Please update your CLT or delete it if no updates are available.

Command Line Tool(CLT)๋ฅผ ์ƒˆ๋กœ ๊ฐˆ์•„์ฃผ์–ด์•ผ ํ•œ๋‹ค.

1. CLT ์‚ญ์ œ

sudo rm -rf /Library/Developer/CommandLineTools

ํ•ด๋‹น ๋ช…๋ น์–ด๋กœ CLT๋ฅผ ์™„์ „ํžˆ ์‚ญ์ œํ•ด์ค€๋‹ค.

2. xcode-select ์„ค์น˜

sudo xcode-select --install

3. xcode ์•ฑ์„ ์„ ํƒํ•œ๋‹ค

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

4. xcode ๋ฒ„์ „ ํ™•์ธ

/usr/bin/xcodebuild -version

 

์ด์ œ ๋‹ค์‹œ brew install rbenv๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ์„ค์น˜๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ๋˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€