英文:
I am having problems creating my GOPATH on my mac
问题
Andres-Air:~ iivri.andre$ echo 'export GOPATH = $HOME' >> $HOME/.profile
Andres-Air:~ iivri.andre$ source $HOME/.profile
-bash: export: =': 不是有效的标识符 -bash: export:
/Users/iivri.andre': 不是有效的标识符
Andres-Air:~ iivri.andre$ source $HOME/.profile
-bash: export: =': 不是有效的标识符 -bash: export:
/Users/iivri.andre': 不是有效的标识符
我正在尝试将其导出到我的环境中,但是我遇到了这些错误。如何确保正确创建了根目录?
英文:
Andres-Air:~ iivri.andre$ echo 'export GOPATH = $HOME'>> $HOME/.profile
Andres-Air:~ iivri.andre$ source $HOME/.profile
-bash: export: `=': not a valid identifier
-bash: export: `/Users/iivri.andre': not a valid identifier
Andres-Air:~ iivri.andre$ source $HOME/.profile
-bash: export: `=': not a valid identifier
-bash: export: `/Users/iivri.andre': not a valid identifier
I am attempting to export it to my environment but I am getting these errors. How do I ensure that created the root directory correctly ?
答案1
得分: 1
应该是这样的:
echo 'export GOPATH=$HOME' >> $HOME/.profile
英文:
It should be:
echo 'export GOPATH=$HOME' >> $HOME/.profile
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论