PHPBrew编译错误PHP 5.4.31与apxs2

时间:2014-09-10 09:50:20

标签: php linux compiler-errors ubuntu-14.04

我正在尝试使用PHPBrew编译支持apxs2的PHP。我的PHP版本是5.4.31。以下命令正确编译

phpbrew install 5.4.31 +default +gd +json

但是以下命令会出错

phpbrew install 5.4.31 +default +gd +json +apxs2=/usr/bin/apxs2

我收到以下错误

  

家/萨默尔/ .phpbrew /建造/ PHP-31年4月5日/ EXT /标准/ browscap.c:401:   未定义引用' php_pcre_exec' ext / pcre / php_pcre.o:在   功能' zm_info_pcre':   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:128:   未定义引用' php_pcre_version' ext / pcre / php_pcre.o:在   功能' zm_startup_pcre':   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:154:   未定义引用' php_pcre_version' ext / pcre / php_pcre.o:在   功能' make_subpats_table':   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:193:   未定义引用' php_pcre_fullinfo'   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:202:   未定义引用' php_pcre_fullinfo'   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:203:   未定义引用' php_pcre_fullinfo' ext / pcre / php_pcre.o:在   功能' pcre_get_compiled_regex_cache':   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:267:   未定义引用' php_pcre_fullinfo'   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:399:   未定义引用' php_pcre_compile'   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:395:   未定义引用' php_pcre_maketables'   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:417:   未定义引用' php_pcre_study' ext / pcre / php_pcre.o:在   功能' php_pcre_match_impl':   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:624:   未定义引用' php_pcre_fullinfo'   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:659:   未定义引用' php_pcre_exec'   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:678:   未定义引用' php_pcre_get_substring_list'   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:749:   未定义引用' php_pcre_free' ext / pcre / php_pcre.o:在   功能' php_pcre_replace_impl':   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:1056:   未定义引用' php_pcre_fullinfo'   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:1087:   未定义引用' php_pcre_exec' ext / pcre / php_pcre.o:在   功能' php_pcre_split_impl':   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:1520:   未定义引用' php_pcre_fullinfo'   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:1536:   未定义引用' php_pcre_exec'   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:1600:   未定义引用' php_pcre_exec' ext / pcre / php_pcre.o:在   功能' php_pcre_grep_impl':   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:1784:   未定义引用' php_pcre_fullinfo'   /home/samer/.phpbrew/build/php-5.4.31/ext/pcre/php_pcre.c:1808:   未定义引用' php_pcre_exec'   ext / fileinfo / libmagic / softmagic.o:在函数' check_fmt':   /home/samer/.phpbrew/build/php-5.4.31/ext/fileinfo/libmagic/softmagic.c:357:   未定义引用' php_pcre_exec' EXT /滤波器/ logical_filters.o:   在函数' php_filter_validate_regexp':   /home/samer/.phpbrew/build/php-5.4.31/ext/filter/logical_filters.c:439:   未定义引用' php_pcre_exec' EXT /滤波器/ logical_filters.o:   在功能' php_filter_validate_email':   /home/samer/.phpbrew/build/php-5.4.31/ext/filter/logical_filters.c:547:   未定义引用' php_pcre_exec' ext / readline / readline.o:In   功能' zif_readline_info':   /home/samer/.phpbrew/build/php-5.4.31/ext/readline/readline.c:278:   未定义引用' rl_mark'   /home/samer/.phpbrew/build/php-5.4.31/ext/readline/readline.c:251:   未定义引用' rl_mark'   /home/samer/.phpbrew/build/php-5.4.31/ext/readline/readline.c:253:   未定义的引用" rl_pending_input'   /home/samer/.phpbrew/build/php-5.4.31/ext/readline/readline.c:287:   未定义的引用" rl_pending_input'   /home/samer/.phpbrew/build/php-5.4.31/ext/readline/readline.c:290:   未定义的引用" rl_pending_input' ext / readline / readline.o:In   功能' zif_readline_list_history':   /home/samer/.phpbrew/build/php-5.4.31/ext/readline/readline.c:371:   未定义参考' history_list' ext / spl / spl_iterators.o:In   function' zim_spl_RegexIterator_accept':   /home/samer/.phpbrew/build/php-5.4.31/ext/spl/spl_iterators.c:2022:   未定义引用' php_pcre_exec' ext / zip / php_zip.o:在功能上   ' php_zip_pcre&#39 ;:   /home/samer/.phpbrew/build/php-5.4.31/ext/zip/php_zip.c:708:undefined   引用' php_pcre_exec' collect2:错误:ld返回1退出   状态make: * [sapi / cli / php]错误1

我该如何解决这个问题?我已经安装了PHPBrew需求页面上提到的所有依赖项,但这并不起作用。

0 个答案:

没有答案