How to compile and install php gmp

藏色散人
Release: 2023-03-17 12:12:01
Original
1846 people have browsed it

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

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

tar -xvf gcc-4.1.0.tar 或 tar -xvf *.tar
Copy after login

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

Finally:

./configure  --with-gmp
Copy after login

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!

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template