我正在WindowsWSL2.0上尝试在Arch中配置一个开发环境。
在本指南教程(pt-br)视频:O Melhor Setup Dev com Arch e WSL2 (最好的开发安装与Arch和WSL2)中,我从秋田在Rails上遵循的拱形配置
到现在为止还好。我访问了官方的github (asdf-vm)插件(所有插件) PHP页面(asdf-php),并遵循了下面的说明:
~ ················································································································ 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并获得以下错误:
❯ 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列表显示:“没有安装版本”,但我不知道需要配置什么才能完成这项工作。
我甚至尝试更新插件:
~ ················································································································ 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
❯但最终,我还是遇到了同样的问题:“没有安装版本”。我不知道在哪里能找到关于这个问题的文件。
有什么想法吗?谢谢
发布于 2022-05-20 12:46:03
我也有同样的问题。
它丢失了库,下面的命令解决了它。
yay -S libpnghttps://stackoverflow.com/questions/71241718
复制相似问题