我希望有人能在这里帮我。我花了很长时间想办法解决这个问题.还没有运气。我是Ubuntu/Linux的初学者。因此,我在某个地方找到了phpbrew的指令,并成功地安装了它,但我无法安装旧的php版本。要安装旧的php,我使用$phpbreeinstall5.3.1+默认值,下面会出现错误。即使我在谷歌上搜索这些错误,我也找不到任何解决方案。有人能给我一些提示如何安装旧的php版本吗?我有一个针对php版本的项目,所以我真的需要在我的本地机器上安装一些应用程序。
我所犯的错误:
===> 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发布于 2017-10-08 16:35:06
您可以将PHP作为XAMPP包的一部分来安装。XAMPP包含Apache、PHP、MySQL和Perl。XAMPP 1.7.7是PHP5.3版本中更新最多的XAMPP。
您可以找到有关堆栈过流的更多信息。
发布于 2018-01-31 18:38:05
如果您不需要openssl,只需将其从构建中省略
phpbrew install 5.3.1 +default-opensslhttps://askubuntu.com/questions/963094
复制相似问题