簡體   English   中英

phpbrew 安裝特定的 php 版本構建失敗(make: *** [sapi/cli/php] ERROR 1)

[英]phpbrew install specific php version build fail(make: *** [sapi/cli/php] ERROR 1)

我在使用 phpbrew install php 時遇到了一些問題。 我用:

phpbrew install 5.3.10 +default +apxs2=/usr/bin/apxs2

顯示一個錯誤:

Build failing with error:
/home/admin/.phpbrew/build/php-5.3.10/ext/dom/node.c: In function 'dom_canonicalization':
/home/admin/.phpbrew/build/php-5.3.10/ext/dom/node.c:1898:21: error: dereferencing pointer to incomplete type
/home/admin/.phpbrew/build/php-5.3.10/esolutionxt/dom/node.c:1900:5: error: dereferencing pointer to incomplete type
make: *** [ext/dom/node.lo] Error 1

所以我在谷歌上找到了一個解決方案------>用補丁構建:

 phpbrew install --patch /path/to/patch 5.3.10 +default +apxs2=/usr/bin/apxs2

補丁網址: https : //mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt

但我得到了一個不同的錯誤:

php_pcre.c:(.text+0x5d1): undefined reference to `php_pcre_fullinfo'
php_pcre.c:(.text+0x5f1): undefined reference to `php_pcre_fullinfo'
ext/pcre/.libs/php_pcre.o: In function `php_pcre_replace_impl.constprop.13':
php_pcre.c:(.text+0x113c): undefined reference to `php_pcre_fullinfo'
php_pcre.c:(.text+0x1316): undefined reference to `php_pcre_exec'
ext/pcre/.libs/php_pcre.o: In function `pcre_get_compiled_regex_cache':
php_pcre.c:(.text+0x175b): undefined reference to `php_pcre_compile'
php_pcre.c:(.text+0x18a2): undefined reference to `php_pcre_info'
php_pcre.c:(.text+0x1949): undefined reference to `php_pcre_maketables'
php_pcre.c:(.text+0x196a): undefined reference to `php_pcre_study'
ext/pcre/.libs/php_pcre.o: In function `php_pcre_match_impl':
php_pcre.c:(.text+0x2541): undefined reference to `php_pcre_fullinfo'
php_pcre.c:(.text+0x2621): undefined reference to `php_pcre_exec'
php_pcre.c:(.text+0x2670): undefined reference to `php_pcre_get_substring_list'
php_pcre.c:(.text+0x2ba2): undefined reference to `php_pcre_free'
ext/pcre/.libs/php_pcre.o: In function `php_pcre_replace_impl':
php_pcre.c:(.text+0x31e9): undefined reference to `php_pcre_fullinfo'
php_pcre.c:(.text+0x32ea): undefined reference to `php_pcre_exec'
ext/pcre/.libs/php_pcre.o: In function `php_pcre_split_impl':
php_pcre.c:(.text+0x4624): undefined reference to `php_pcre_fullinfo'
php_pcre.c:(.text+0x4701): undefined reference to `php_pcre_exec'
php_pcre.c:(.text+0x4b4f): undefined reference to `php_pcre_exec'
ext/pcre/.libs/php_pcre.o: In function `php_pcre_grep_impl':
php_pcre.c:(.text+0x4db9): undefined reference to `php_pcre_fullinfo'
php_pcre.c:(.text+0x4f9a): undefined reference to `php_pcre_exec'
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] ERROR 1

我沒有找到任何解決方案,有什么想法嗎?謝謝!

我遇到了同樣的問題並修復了它,安裝了 ubuntu 的所有要求。

在github上使用了這個手冊

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM