首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Windows WSL 2.0环境下Arch Linux下从ASDF安装(编译) PHP 7.2.34的问题

Windows WSL 2.0环境下Arch Linux下从ASDF安装(编译) PHP 7.2.34的问题
EN

Stack Overflow用户
提问于 2022-02-23 17:42:01
回答 1查看 866关注 0票数 0

我正在WindowsWSL2.0上尝试在Arch中配置一个开发环境。

在本指南教程(pt-br)视频:O Melhor Setup Dev com Arch e WSL2 (最好的开发安装与Arch和WSL2)中,我从秋田在Rails上遵循的拱形配置

到现在为止还好。我访问了官方的github (asdf-vm)插件(所有插件) PHP页面(asdf-php),并遵循了下面的说明:

代码语言:javascript
复制
  ~ ················································································································ at  11:37:47
❯ asdf plugin-add php https://github.com/asdf-community/asdf-php.git
  ~ ····································································································· took  17s at  11:38:28
php
  No versions installed
  ~ ················································································································ at  11:38:37
❯

然后,我尝试安装PHP7.2.34并获得以下错误:

代码语言:javascript
复制
❯ asdf install php 7.2.34
Determining configuration options...
/home/rod/.asdf/plugins/php/bin/install: line 323: locate: command not found
/home/rod/.asdf/plugins/php/bin/install: line 324: locate: command not found
Downloading source code...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   133  100   133    0     0      8      0  0:00:16  0:00:16 --:--:--    34
100 16.9M    0 16.9M    0     0   496k      0 --:--:--  0:00:35 --:--:-- 3791k
Extracting source code...
Running buildconfig...
Forcing buildconf
Removing configure caches
buildconf: checking installation...
buildconf: autoconf version 2.71 (ok)
rebuilding aclocal.m4
rebuilding configure
...
If configure fails try --with-webp-dir=<DIR>
If configure fails try --with-jpeg-dir=<DIR>
configure: error: png.h not found.
  ~ ··································································································· took  1m 9s at  11:46:33
❯ asdf list php
  No versions installed
  ~ ················································································································ at  11:48:23
❯

当完成时,ASDF列表显示:“没有安装版本”,但我不知道需要配置什么才能完成这项工作。

我甚至尝试更新插件:

代码语言:javascript
复制
  ~ ················································································································ at  11:52:30
❯ asdf plugin update php
Updating php to master
Already on 'master'
Your branch is up to date with 'origin/master'.
  ~ ····································································································· took  17s at  11:52:59
❯

但最终,我还是遇到了同样的问题:“没有安装版本”。我不知道在哪里能找到关于这个问题的文件。

有什么想法吗?谢谢

EN

回答 1

Stack Overflow用户

发布于 2022-05-20 12:46:03

我也有同样的问题。

它丢失了库,下面的命令解决了它。

代码语言:javascript
复制
yay -S libpng
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71241718

复制
相关文章

相似问题

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