Home>Article>Backend Development> How to compile and install php gmp

How to compile and install php gmp

藏色散人
藏色散人 Original
2022-11-08 09:35:52 1770browse

php gmp compilation and installation method: 1. Decompress the php package through "bzip2 -d gcc-4.1.0.tar.bz2"; 2. Execute "tar -xvf gcc-4.1.0.tar" or "tar -xvf *.tar" command; 3. Install gmp through "make install".

How to compile and install php gmp

The operating environment of this tutorial: linux5.9.8 system, PHP version 8.1, Dell G3 computer.

php gmp How to compile and install?

Compile php and install gmp extension

I downloaded php-5.2.17.tar.bz2 on the Internet

Then use the following method:

bzip2 -d gcc-4.1.0.tar.bz2

---After decompressing the above, execute the following command.

tar -xvf gcc-4.1.0.tar 或 tar -xvf *.tar

After the solution is completed, there will be one more folder gcc-4.1.0

Finally:

./configure --with-gmp

Then make

Finally make install

You can use gmp

The generated so file is in the /usr/lib64/ folder

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to compile and install php gmp. For more information, please follow other related articles on the PHP Chinese website!

php
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