asdf-community / asdf-community/asdf-php
Unable to run asdf install php latest
- Dominant language
- Shell
- Stars
- 256
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
### Provide environment information
```bash
OS:
Linux LAPTOP-LOAJQON5 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
SHELL:
GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
BASH VERSION:
5.2.21(1)-release
ASDF VERSION:
0.18.0 (revision unknown)
ASDF INTERNAL VARIABLES:
ASDF_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/username/.asdf
ASDF_CONFIG_FILE=/home/username/.asdfrc
ASDF INSTALLED PLUGINS:
nodejs https://github.com/asdf-vm/asdf-nodejs.git
90b8ecaa556916daba983a7b01869a9ea682f285
php https://github.com/asdf-community/asdf-php.git
4d64cffb7aa96fe6b461605c0a9c26cd7b9d8afd
```
### To Reproduce
1. Install asdf via brew
2. Install asdf plugin
3. Run `asdf install php latest`
### Describe the Bug
I run the command above and got the following error:
```sh
username@LAPTOP-LOAJQON5:~$ asdf install php latest
Downloading PHP source from https://github.com/php/php-src/archive/php-8.5.0.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 22834k 0 22834k 0 0 5392k 0 --:--:-- 0:00:04 --:--:-- 6966k
Extracting PHP source...
Determining configuration options...
/home/username/.asdf/plugins/php/bin/install: line 10: get_download_file_path: command not found
/home/username/.asdf/plugins/php/bin/install: line 336: locate: command not found
/home/username/.asdf/plugins/php/bin/install: line 337: locate: command not found
Downloading source code...
/home/username/.asdf/plugins/php/bin/install: line 64: download_source: command not found
error installing version: failed to run install callback: exit status 127
```
I've tried to install the packages inside workflow.yml, then I realized, they are failing too. I swear, I think I was able to make it work before this, but I just got a new reset laptop and trying to do my work again.
### Expected Behaviour
Installation successful
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.