-
[CI/CD] Error : gem executables will not run카테고리 없음 2022. 8. 1. 23:07
gem install bundler를 하려고 하지만 오류 발생 - 해결 과정을 담았는데 정확히 왜 해결이 됐는지 더 공부할 필요가 있다.
Mac
Monetry ver.1.첫번째 시도 : 문서에 나와있는대로 실행 -> x
gem install bundler --user-install
https://bundler.io/doc/troubleshooting.html
Bundler: The best way to manage a Ruby application's gems
Troubleshooting common issues Stuck using Bundler? Browse these common issues before filing a new issue. Permission denied when installing bundler Certain operating systems such as MacOS and Ubuntu have versions of Ruby that require elevated privileges to
bundler.io
2. gem env확인
2.PATH입력해주기 -> x
맨 처음에 에러에 나온 PATH를 넣어줌. 그리고 확인했는데 똑같음. 그리고 1번 시도 후 env를 확인해봤을 때도 Gems path에 들어가있었던 상태.
3.ruby version, rbenv version체크
확인해보니 rbenv는 system으로 돼있었다... 이게 문제인가
*rbenv란 ??
→
# ruby 설치 brew install ruby # rbenv: ruby version 매니저 # homebrew를 통해 설치한 루비를 사용하도록 하기 위해 zsh로 경로 추가(>>)해주는 것. echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc source ~/.zshrc
그리고 rbenv versions다시 확인해보니 system이었다.
그런데
gem install bundler다시 실행해보니
된다????????
다시 해봐야겠다