LoginSignup
22
10

More than 5 years have passed since last update.

go install時にno install location for directory ○○○ outside GOPATHのエラーが出る件について

Posted at

Go言語でちょろっとアプリケーション作ろうと思った時に、タイトルのエラーが出たので対処した記録を。

どう対処したのか?

どうもタイトルのエラーは/binに実行ファイルを生成しようとしてるけども、GOBINというパスが設定されていないよ!というエラーみたいです。

なので対処としては以下の様な感じ。

$ export GOBIN=$GOPATH/bin

これで実行できるようになります!

go getとかでも同じようなエラーが出るので、もし出た方は上記の対処をしてみてください!

22
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
22
10