go-sqlite3 icon indicating copy to clipboard operation
go-sqlite3 copied to clipboard

go build --tags "icu" error

Open nntaoli opened this issue 8 years ago • 2 comments

sqlite3-binding.c:171322:10:fatal error: 'unicode/utypes.h' file not found os: 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64

nntaoli avatar Mar 30 '18 14:03 nntaoli

fixed `

  1. brew install icu4c
  2. brew link icu4c
  3. CGO_CFLAGS="-I/usr/local/opt/icu4c/include" CGO_LDFLAGS="-L/usr/local/opt/icu4c/lib" go build --tags "icu

" `

nntaoli avatar Mar 30 '18 15:03 nntaoli

If you are building on Debian installing libicu-dev fixed this error for me.

chrjsrayman avatar Jan 21 '25 18:01 chrjsrayman