개발자가 맥북 포맷후 해야할 것들
1 minute read
맥북이라면 여러 발생하는 오류들 대부분이 xcode로 인해 일어난다.
그냥 설치하는게 속편함.
brew 설치
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
pyenv 설치
brew install pyenv
brew install pyenv-virtualenv
기본 셸 변경
zsh
brew install zsh zsh-completions
curl -L http://install.ohmyz.sh | sh
chsh -s `which zsh`
chsh: /usr/local/bin/zsh: non-standard shell 오류 발생할 경우
sudo vim /etc/shells 맨 아래에 `which zsh`했을때의 결과를 추가 후 저장
현재 shell 확인법
echo $SHELL
pyenv 설정
vi ~/.zshrc
export PYENV_ROOT=/usr/local/var/pyenv
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi
python 셸 관련 설정
셸에서 방향키 관련 이슈 해결을 위한 유틸
brew install readline xz
pyenv를 사용해서 파이썬 3.5.2버전 설치
pyenv install 3.5.2
설치할 때 오류가 나면 대부분 xcode 때문…
xcode-select --install
I feedback.
Let me know what you think of this article in the comment section below!
Let me know what you think of this article in the comment section below!