Home  >  Article  >  Backend Development  >  How to compile and install bzip2 under linux

How to compile and install bzip2 under linux

伊谢尔伦
伊谢尔伦Original
2016-11-25 14:46:394954browse

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!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn