dongxiane0395 2019-05-11 00:17
浏览 63

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

I'm a new developer, and I'm setting up my ubuntu environment with virtual environments. I have installed anyenv, and i have managed to install node, python, ruby and elixir with their own manager. But i also need php, and here is where i have the problem, after trying installation is fails with: phpenv install 7.3.5 with this error krb5-config: command not found

i haven found what to do, i am a newbie at this.

$ 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


-----------------
|  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条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 角动量包络面如何用MATLAB绘制
    • ¥15 merge函数占用内存过大
    • ¥15 Revit2020下载问题
    • ¥15 使用EMD去噪处理RML2016数据集时候的原理
    • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
    • ¥15 单片机无法进入HAL_TIM_PWM_PulseFinishedCallback回调函数
    • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
    • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
    • ¥15 如何在炒股软件中,爬到我想看的日k线
    • ¥15 seatunnel 怎么配置Elasticsearch