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

How to compile and install bzip2 under linux

伊谢尔伦
Release: 2016-11-25 14:46:39
Original
5072 people have browsed it

Download the source file installation package:

http://www.bzip.org/downloads.html

Unzip:

tar -xzvf bzip2-1.0.6.tar.gz
Copy after login

Enter the decompressed directory:

cd bzip2-1.0.6
Copy after login

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
Copy after login

Compile && Installation:

make && make install
Copy after login

At this point, you’re done!


Related labels:
source:php.cn
Statement of this Website
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
Latest Issues
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template