如何使用phpenv和anyenv在ubuntu 19.04中安装多个php版本?

时间:2019-05-11 00:18:00

标签: php virtual-environment ubuntu-19.04

我是一名新开发人员,并且正在使用虚拟环境设置我的ubuntu环境。我已经安装了anyenv,并且已经设法用自己的管理器安装了node,python,ruby和elixir。但是我也需要php,这是我遇到问题的地方,尝试安装失败后出现:phpenv安装7.3.5,出现此错误krb5-config:找不到命令

我还没有发现要做什么,我是这个领域的新手。

$ phpenv install 7.3.5
[Info]: Loaded extension plugin
[Info]: Loaded apc Plugin.
[Info]: Loaded composer Plugin.
[Info]: Loaded github Plugin.
[Info]: Loaded uprofiler Plugin.
[Info]: Loaded xdebug Plugin.
[Info]: Loaded xhprof Plugin.
[Info]: Loaded zendopcache Plugin.
[Info]: php.ini-production gets used as php.ini
[Info]: Building 7.3.5 into /home/alex/.anyenv/envs/phpenv/versions/7.3.5
[Skipping]: Already downloaded and extracted https://secure.php.net/distributions/php-7.3.5.tar.bz2
[Preparing]: /tmp/php-build/source/7.3.5

-----------------
|  BUILD ERROR  |
-----------------

Here are the last 10 lines from the log:

-----------------------------------------

The `krb5-config' command exists in these Python versions:
  anaconda3-2019.03

pyenv: krb5-config: command not found

The `krb5-config' command exists in these Python versions:
  anaconda3-2019.03

configure: error: Please reinstall the BZip2 distribution
-----------------------------------------

The full Log is available at '/tmp/php-build.7.3.5.20190510190547.log'.
[Warn]: Aborting build.
``

what should i do to install php?

0 个答案:

没有答案