When a software is installed on 64-bit Ubuntu, it is always a compilation error. I remember that this error was not reported on a 32-bit machine... Almost gave up... Later, I tried to give it to me... Download idea
When a software is installed on 64-bit Ubuntu, it is always a compilation error. I remember that this error was not reported on a 32-bit machine... Almost gave up... Later, I tried to give it to me...
Download
Http://www.zlib.net/zlib-1.2.3.tar.gz
Http://www.bzip.org/1.0.5/bzip2-1.0.5.tar.gz
Both are direct
./Configure
Make
Make install
There is no problem with installation, but when compiling other software, the problem may occur on 64-bit machines:
/Usr/bin/ld:/usr/local/lib/libbz2.a: relocation R_X86_64_32 against 'a local symplo' can not be used when making a shared object; recompile with-fPIC
Solution
./Configure
Vi Makefile
Add-fPIC to CFLAGS
CFLAGS =-fPIC xxxxxxxxxxxxxxxxxx
Make & make install & make clean
Haha, right?