Standalone PHP expansion library under Ubuntu12.1

Source: Internet
Author: User
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.