记录一下安装sqlite3的一个错误
sqite3-shell.o sqlite3-sqlite3.o -lz -lm -ldl -lpthread
sqlite3-shell.o: In function zipfileDeflate': /home/uptech/下载/sqlite-autoconf-3330000/shell.c:6314: undefined reference to
deflateBound’
sqlite3-shell.o: In function sqlarCompressFunc': /home/uptech/下载/sqlite-autoconf-3330000/shell.c:7556: undefined reference to
compressBound’
collect2: error: ld returned 1 exit status
Makefile:505: recipe for target ‘sqlite3’ failed
make: *** [sqlite3] Error 1
出错原因:-lz 链接压缩库时出错
解决方法 安装压缩库
apt-get install zlib1g-dev