0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

gooseパッケージの取得に失敗する(goose not found)

Posted at

事象

  • gooseパッケージを以下のように取得しようとすると失敗してしまう
$ go get -u -v bitbucket.org/liamstask/goose/cmd/goose
$ which goose
goose not found

原因

  • GOPATHを設定していなかった

対応

  • 以下のようにGOPATHを通す
$ echo 'export GOPATH=$HOME/go' >> ~/.zshrc 
$ echo 'export PATH=$PATH:$GOPATH/bin' >> ~/.zshrc 
$ source ~/.zshrc  // 設定を保存する
  • 再度、go getしてみる。そしてPATHが通っているか確認してみる。
$ go get -u -v bitbucket.org/liamstask/goose/cmd/goose
$ which goose                              
/Users/[userName]/go/bin/goose

go get でインストールしたツールの実行ファイルは /Users/ユーザ名/go/bin 配下に配置されます。
無事にgooseがあることを確認できました!

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?