首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用PHPBrew在Ubuntu16.04上安装旧PHP版本(5.3.1)

使用PHPBrew在Ubuntu16.04上安装旧PHP版本(5.3.1)
EN

Ask Ubuntu用户
提问于 2017-10-08 16:18:24
回答 2查看 1.6K关注 0票数 0

我希望有人能在这里帮我。我花了很长时间想办法解决这个问题.还没有运气。我是Ubuntu/Linux的初学者。因此,我在某个地方找到了phpbrew的指令,并成功地安装了它,但我无法安装旧的php版本。要安装旧的php,我使用$phpbreeinstall5.3.1+默认值,下面会出现错误。即使我在谷歌上搜索这些错误,我也找不到任何解决方案。有人能给我一些提示如何安装旧的php版本吗?我有一个针对php版本的项目,所以我真的需要在我的本地机器上安装一些应用程序。

我所犯的错误:

代码语言:javascript
复制
===> Checking patches...
Checking patch for php5.3.29 multi-sapi patch.
Checking patch for php5.3.x on 64bit machine when intl is enabled.
3 changes patched.
Checking patch for openssl dso linking patch
===> Building...
Error: Make failed:
The last 5 lines in the log file:
ext/intl/grapheme/grapheme_string.o:(.rodata+0x8): undefined reference to `grapheme_extract_bytecount_iter'

ext/intl/grapheme/grapheme_string.o:(.rodata+0x10): undefined reference to `grapheme_extract_charcount_iter'

collect2: error: ld returned 1 exit status

Makefile:244: recipe for target 'sapi/cgi/php-cgi' failed

make: *** [sapi/cgi/php-cgi] Error 1

Please checkout the build log file for more details:
     tail /home/buntu/.phpbrew/build/php-5.3.1/build.log

===== build.log details below (/home/buntu/.phpbrew/build/php-5.3.1/build.log)
/home/buntu/.phpbrew/build/php-5.3.1/ext/openssl/openssl.c:917: undefined reference to `EVP_md2'
ext/openssl/xp_ssl.o: In function `php_openssl_setup_crypto':
/home/buntu/.phpbrew/build/php-5.3.1/ext/openssl/xp_ssl.c:324: undefined reference to `SSLv2_client_method'
/home/buntu/.phpbrew/build/php-5.3.1/ext/openssl/xp_ssl.c:344: undefined reference to `SSLv2_server_method'
ext/intl/grapheme/grapheme_string.o:(.rodata+0x0): undefined reference to `grapheme_extract_count_iter'
ext/intl/grapheme/grapheme_string.o:(.rodata+0x8): undefined reference to `grapheme_extract_bytecount_iter'
ext/intl/grapheme/grapheme_string.o:(.rodata+0x10): undefined reference to `grapheme_extract_charcount_iter'
collect2: error: ld returned 1 exit status
Makefile:244: recipe for target 'sapi/cgi/php-cgi' failed
make: *** [sapi/cgi/php-cgi] Error 1
EN

回答 2

Ask Ubuntu用户

发布于 2017-10-08 16:35:06

您可以将PHP作为XAMPP包的一部分来安装。XAMPP包含Apache、PHP、MySQL和Perl。XAMPP 1.7.7是PHP5.3版本中更新最多的XAMPP。

您可以找到有关堆栈过流的更多信息。

票数 0
EN

Ask Ubuntu用户

发布于 2018-01-31 18:38:05

如果您不需要openssl,只需将其从构建中省略

代码语言:javascript
复制
phpbrew install 5.3.1 +default-openssl
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/963094

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档