FreeBSD go get 安装 iconv-go提示无 iconv.h 文件

go get github.com/djimenez/iconv-go

提示:../../github.com/djimenez/iconv-go/converter.go:8:19: error: iconv.h: No such file or directory


复制iconv.h至系统include目录,创建 libiconv 软连接,如果没有libiconv, 先执行 pkg install libiconv

cp /usr/local/include/iconv.h /usr/include/

ln -s /usr/local/lib/libiconv.so.3 /usr/lib/libiconv.so

你可能感兴趣的:(FreeBSD go get 安装 iconv-go提示无 iconv.h 文件)