doilux’s tech blog

ITに関する備忘録。 DDP : http://doiluxng.hatenablog.com/entry/2018/01/01/195409

echo-scaffoldを取得しようとしてハマったのでメモ

Go始めました。tour of goが終わったので、Webアプリケーションでも作ってみようかと(でも横着してWAF使って作ろうと)思って、echo-scaffoldを入れようとしたらハマったのでメモ。

go get github.com/mattn/echo-scaffold 

Mercurialがねーぞっていうエラーに

go: missing Mercurial command. See https://golang.org/s/gogetcmd
package bitbucket.org/pkg/inflect: exec: "hg": executable file not found in $PATH

Mercurial入れる

brew install mercurial

brew linkに失敗するというエラーに

Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

下記の通りにやったらうまく行きました

qiita.com