Standalone PHP expansion library under Ubuntu12.1
Ubuntu is a very good system in the Linux world, where the installation of PHP is very common, so how to install a separate PHP extension library?
The reference steps are as follows:
1. Enter the PHP source package ext; (here PHP version php-5.4.37, that extension package GD library example)
[Email protected]:~/temp/php-5.4.37/ext$ CD GD
2. Generate configure script files from the Phpize tool
[Email protected]:~/temp/php-5.4.37/ext/gd$ sudo phpize
3. You can start compiling the extension package according to the normal compilation method.
$./configure$ make# Make Install
Note: If you have more than one PHP installed, you need to specify which PHP to compile, as in the following example:
./configure --with-php-config=/usr/local/lib/php/extensions
In addition, make will be generated in the source package under the/ext/gd/modules gd.so Library, you can choose not to perform the make install, through the manual copy gd.so to the required path.
Reference Address: http://php.net/manual/zh/install.pecl.phpize.php