revelのexample bookingを動かす。#golangjp
http://robfig.github.io/revel/samples/booking.html
Mac OSXでhomebrewがインストールしてある前提
- brew install pkgconfig sqlite3
- revel run github.com/robfig/revel/samples/booking
おこ
Go Compilation Error
The Go code ../github.com/robfig/revel/samples/booking/app/tmp/main.go does not compile: cannot find package >"github.com/mattn/go-sqlite3" in any of:
おこ
go get github.com/mattn/go-sqlite3
pkg-config --cflags sqlite3
Package sqlite3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sqlite3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sqlite3' found
exit status 1
なので
.bash_profileに
export PKG_CONFIG_PATH=/usr/local/Cellar/sqlite/3.7.17/lib/pkgconfig
これもおこられたので入れる
go get github.com/robfig/cron
できた。