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

    报告相同问题?

    悬赏问题

    • ¥15 求解 yolo算法问题
    • ¥15 虚拟机打包apk出现错误
    • ¥30 最小化遗憾贪心算法上界
    • ¥15 用visual studi code完成html页面
    • ¥15 聚类分析或者python进行数据分析
    • ¥15 三菱伺服电机按启动按钮有使能但不动作
    • ¥15 js,页面2返回页面1时定位进入的设备
    • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
    • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
    • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝