zoukankan      html  css  js  c++  java
  • PHP安装yaf在ubuntu下面的问题解决

    1.在执行make的时候出现如下错误:

    In file included from /root/yaf-2.1.2/yaf_router.c:28:

    /usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory

    In file included from /root/yaf-2.1.2/yaf_router.c:28:

    /usr/include/php/ext/pcre/php_pcre.h:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

    /usr/include/php/ext/pcre/php_pcre.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

    /usr/include/php/ext/pcre/php_pcre.h:52: error: expected specifier-qualifier-list before ‘pcre’

    make: *** [yaf_router.lo] 错误 1

    centos下面解决办法:# yum install pcre-devel

    ubuntu下面解决办法:

    sudo apt-get update 
    sudo apt-get install libpcre3 libpcre3-dev 

    你可能还需要安装
    sudo apt-get install openssl libssl-dev

  • 相关阅读:
    [SCOI2007]降雨量
    [SCOI2005]骑士精神
    LUOGU P1342 请柬
    spfa的复活
    Luogu P2396 yyy loves Maths VII
    Luogu P2801 教主的魔法
    HEOI2012 采花
    USACO05DEC Cleaning Shifts
    CF438D The Child and Sequence
    Codechef October Challenge 2019 Div.2
  • 原文地址:https://www.cnblogs.com/miaoshiqian/p/4048814.html
Copyright © 2011-2022 走看看