国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

PHP7.1安裝libevent-devel擴(kuò)展包失敗(CentOS)

kenny534

按照文檔中的方法,執(zhí)行#yum install libevent2-devel -yLoaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
? base: mirrors.aliyun.com
?
epel: mirrors.aliyun.com
? extras: mirrors.aliyun.com
?
updates: mirrors.aliyun.com
No package libevent2-devel available.
Error: Nothing to do
?
而執(zhí)行:
yum install libevent-devel -y倒是沒有報(bào)錯(cuò):
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
? base: mirrors.aliyun.com
?
epel: mirrors.aliyun.com
? extras: mirrors.aliyun.com
?
updates: mirrors.aliyun.com
Package libevent-devel-2.0.21-4.el7.x86_64 already installed and latest version
Nothing to do
?
由于現(xiàn)在使用的是PHP7.1故請(qǐng)問如何安裝event擴(kuò)展依賴的libevent-devel包

6594 2 0
2個(gè)回答

智佳思遠(yuǎn)

Package libevent-devel-2.0.21-4.el7.x86_64 already installed and latest version
Nothing to do
?
意思是已經(jīng)安裝了最新版本,已經(jīng)安裝過了

lllpaw

可以手動(dòng)編譯安裝

  1. 安裝event 支持庫 libevent
    下載
    wget?https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz
    解壓
    tar zxvf?libevent-2.1.11-stable.tar.gz
    cd?libevent-2.1.11-stable
    ./configure --prefix=/usr/local/libevent-2.1.11-stable
    make && make install
    ?
  2. 安裝 event
    下載
    wget?https://pecl.php.net/get/event-2.5.3.tgz
    解壓
    tar zxvf event-2.5.3.tgz
    cd event-2.5.3
    /usr/local/php/bin/phpize
    ./configure --with-php-config=/usr/local/php/bin/php-config --with-event-libevent-dir=/usr/local/libevent-2.1.11-stable
    make && make install
    ?
  3. 最后在php.ini配置文件中開啟 event.so 擴(kuò)展
    extension=event.so
    ?
  • kenny534 2019-10-10

    追問一下:如何測試event擴(kuò)展被調(diào)用了,而不再使用框架里的Select.php呢?

年代過于久遠(yuǎn),無法發(fā)表回答
??