Centos-6.3/PHP5.3.23P without recompiling PHP add IMAP extension module

Source: Internet
Author: User
Find the package installed before, or re-download the unzip installation package: 1. Enter the source code installation package [root@hexu.org ~] $ Cddatasoftsphp_packetphp-5.3.23extimap2. Install IMAP dependency [root@hexu.orgimap] $ yuminstall-ylibc-client-devel [root@hexu.orgimap] $ ln-susrlib64libc

Find the package installed before, or re-download the unzip installation package: 1. Enter the source code installation package [root@hexu.org ~] $ Cd/data/softs/PHP packet/php-5.3.23/ext/imap 2. install IMAP dependency [root@hexu.org imap] $ yum install-y libc-client-devel [root@hexu.org imap] $ ln-s/usr/lib64/libc

Find the previously installed package or download and unzip the installation package again:
1. Enter the source code installation package

[root@hexu.org ~]$ cd /data/softs/php_packet/php-5.3.23/ext/imap

2. Install IMAP Dependencies

[root@hexu.org imap]$ yum install -y libc-client-devel[root@hexu.org imap]$ ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so

3. Install

[root@hexu.org imap]$ /usr/local/php/bin/phpize[root@hexu.org imap]$ ./configure --with-php-config=/usr/local/php/bin/php-config --with-imap --with-imap-ssl --with-kerberos[root@hexu.org imap]$ make && make install

4. Finally, adjust php. ini.

[root@hexu.org imap]$ vi /usr/local/php/lib/php.ini##vi php.ini add following config[imap]extension = imap.so

5. Check whether the installation is successful.

[Root@hexu.org imap] # php-vPHP 5.3.23 (cli) (built: Apr 7 2013 23:20:21) Copyright (c) 1997-2013 The PHP GroupZend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies [root@hexu.org imap] # php-m | grep imapimap # see here, it indicates that the installation is successful

If an error is found, follow the prompts to find the corresponding dependency package for installation. The following example shows two errors encountered during the installation process.
1. Because libc-client-devel is not installed, follow the steps above to install libc-client-devel. Error info:

checking for utf8_mime2text signature... newchecking for U8T_DECOMPOSE... configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

2. cannot find the libc-client.a library, you need to manually add the File link, Errof info:

checking for crypt in -lcrypt... yesconfigure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

Solution:

[root@hexu.org]$ ln -s /usr/lib64/libc-client.so /usr/lib/libc-client.so

Reference: http://blog.csdn.net/alexdream/article/details/7408453

Centos-6.3/PHP5.3.23 P does not recompile PHP to add IMAP extension module, thanks to the original author to share.

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.