asdf-php icon indicating copy to clipboard operation
asdf-php copied to clipboard

unable to install php

Open lecneri opened this issue 4 months ago • 0 comments

Provide environment information

> asdf info
OS:
Linux EST-024 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:
zsh 5.9 (x86_64-ubuntu-linux-gnu)

BASH VERSION:
5.2.21(1)-release

ASDF VERSION:
v0.18.0 (revision 2114f1e)

ASDF INTERNAL VARIABLES:
ASDF_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/luizneri/.asdf
ASDF_CONFIG_FILE=/home/luizneri/.asdfrc

ASDF INSTALLED PLUGINS:
php       https://github.com/asdf-community/asdf-php.git
          4d64cffb7aa96fe6b461605c0a9c26cd7b9d8afd

To Reproduce

Similar to https://github.com/asdf-community/asdf-php/issues/198

> export PHP_CONFIGURE_OPTIONS="--with-ldap --with-openssl --with-readline --with-libedit --with-mysqli --with-pgsql --enable-cli --with-kerberos --with-zlib --enable-bcmath --with-bz2 --enable-intl --with-curl --with-gd --enable-gd-native-ttf --enable-mbstring --enable-mbregex --with-sodium --with-pdo-mysql -enable-shmop  --enable-soap --enable-sockets --with-tidy --enable-zip --with-imap --with-imap-ssl --with-pcre-regex --with-pdo-pgsql --enable-opcache
> asdf install php 8.4.15
Downloading PHP source from https://github.com/php/php-src/archive/php-8.4.15.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 20.6M    0 20.6M    0     0  5111k      0 --:--:--  0:00:04 --:--:-- 6865k
Extracting PHP source...
Determining configuration options...
/home/luizneri/.asdf/plugins/php/bin/install: line 10: get_download_file_path: command not found
Downloading source code...
/home/luizneri/.asdf/plugins/php/bin/install: line 64: download_source: command not found

Describe the Bug

When I try to install php using asdf I get 2 errors:

~/.asdf/plugins/php/bin/install: line 10: get_download_file_path: command not found

and

~/.asdf/plugins/php/bin/install: line 64: download_source: command not found

The error from line 64 I belive it's because some how the download file wasn't loaded since the functions exists there at line 22.

Expected Behaviour

install a working version of php.

lecneri avatar Dec 09 '25 20:12 lecneri