PHP Installation libevent Extensions

Source: Internet
Author: User

1.   Download Extension official address HTTP://pecl.php.net/package/libevent Please select the appropriate version according to your PHP script
Such as
wget  http://pecl.php.net/get/libevent-0.0.4.tgz

2.Download wget http://pecl.php.net/get/libevent-0.0.4.tgzUnzip Tar-ZXVF libevent-0.0.4.TGZCD libevent-0.0.4phpize./configure--with-php-config=/local/php/bin/php-Config found error displayed as RE2C version too low from HTTP://www.re2c.org/Download and install thecontinue to./configure--with-php-config=/local/php/bin/php-Config error cannot find libevent headers need to install libevent Download Libevent official website http://libevent.org/wget HTTPS://github.com/downloads/libevent/libevent/libevent-2.0.20-stable.tar.gzTar-ZXVF Libevent-2.0.20-stable.tar.GZ CD libevent-2.0.20-Stable./configure--prefix=/local/libevent-2.0.20-stable/ Make&&Make install installs the extension again, joins--with-libevent
./configure--with-php-config=/home/users/suqian/.jumbo/php/bin/php-config--with-libevent=/local/ libevent-2.0.20-stable/

Make && make install

After you configure PHP.ini to move the generated. So files to the extensions_dir configured in php.ini
and add the configuration

extension= "Libevent.so"

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.