go get github.com/mattn/go-sqlite3
でエラー。
# github.com/mattn/go-sqlite3 /usr/bin/gcc-4.2 did not produce error at completed:1 on input: #line 8 "/Users/shinriyo/gopath/src/github.com/mattn/go-sqlite3/sqlite3.go"
ってなんだ・・・?
gccのバージョンを見た。
gcc-4.2 --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.0.0 Thread model: posix
関係あるかわからないけど調べた。
Compiling on OSX fails · Issue #80 · mattn/go-sqlite3 · GitHub
cd /usr/local/bin sudo ln -s gcc-4.2 gcc
その後で、更に
go get github.com/mattn/go-sqlite3
をしてみたがだめ。。。
brew install apple-gcc42