我尝试在 Ubuntu 14.04.2 上安装 jlint-3.0 以对 java .class 文件进行静态代码分析。我得到的错误:
gcc -c -Wall -O2 -g antic.c
gcc -g -lz -o antic antic.o
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make: *** [antic] Error 1
我该如何解决这个错误?
我尝试在 Ubuntu 14.04.2 上安装 jlint-3.0 以对 java .class 文件进行静态代码分析。我得到的错误:
gcc -c -Wall -O2 -g antic.c
gcc -g -lz -o antic antic.o
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make: *** [antic] Error 1
我该如何解决这个错误?