강의

멘토링

로드맵

Inflearn Community Q&A

xt06805615's profile image
xt06805615

asked

GO Language Programming Core Basics Introduction Course, Easy and Quick to Complete

Development Environment Setup (2-2) - Final Setup & Hello World Output (Mac)

go install 명령어를 실행시켰는데요

Written on

·

193

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

잘못 설정한걸 까요?

go

Answer

This question is waiting for answers
Be the first to answer!
xt06805615's profile image
xt06805615

asked

Ask a question