아요 개발 일기

[GitHub_ERROR] While executing gem ... (Gem::FilePermissionError) 본문

GitHub

[GitHub_ERROR] While executing gem ... (Gem::FilePermissionError)

소진이 2023. 1. 10. 10:40

안녕하세요 소진입니다🐣

pod 파일 만들려는데 오류가 자꾸 나서 데리고 왔어요,,

 

 ⚠️ 오류

ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.

 

 

 ⚠️ 오류 이유

: 시스템이 ruby를 이용하고 있기때문에 권한이 없어 gem 설치가 안되서 생김

 

해결하기

아래 순서로 코드를 작성하면 해결됩니다!

 

brew update
brew install rbenv ruby-build

 

마지막으로 잘 설치되었는지 버전 확인!

rbenv versions