-
카테고리
-
세부 분야
프로그래밍 언어
-
해결 여부
미해결
go install 명령어를 실행시켰는데요
19.01.11 19:19 작성 조회수 101
0
no install location for directory /Users/skan/documents/study/golang/src/section1 outside GOPATH
For more details see: 'go help gopath'
라고 뜨면서 오류가 납니다. 아마 GOPATH 문제인거 같은데
그전에 환경설치 하면서 .bash/profile 내용을 추가해줬는데요 영상에서 본거랑 제꺼랑 좀 다르더라고요 그래서 밑처럼 수정을 했습니다.
# added by Anaconda3 2018.12 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "/anaconda3/etc/profile.d/conda.sh" ]; then
. "/anaconda3/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="/anaconda3/bin:$PATH:$GOPATH:$GOBIN"
fi
fi
unset __conda_setup
# <<< conda init <<<
export GOPATH="/Users/skan/Documetns/study/golang"
export GOBIN=$GOPATH/bin
잘못 설정한걸 까요?
답변을 작성해보세요.
답변 0