Home > Article > Backend Development > How to compile and install bzip2 under linux
Download the source file installation package:
http://www.bzip.org/downloads.html
Unzip:
tar -xzvf bzip2-1.0.6.tar.gz
Enter the decompressed directory:
cd bzip2-1.0.6
Prepare for compilation and create the libbz2.so dynamic link library (This step is very important. If there is no this step when installing python, python will not be able to install the bz2 module):
make -f Makefile-libbz2_so
Compile && Installation:
make && make install
At this point, you’re done!