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".
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!