version-fox/vfox

[BUG]: 安装不了php,报错configure: error: /bin/sh ./build/config.sub sodium failed

Opened this issue · 1 comments

Version
vfox version 0.6.10

OS
macOS 15.6 (24G84) M系列芯片

Describe the bug
安装不了php,报错configure: error: /bin/sh ./build/config.sub sodium failed

Screenshots[optional]

➜  Downloads vfox install php
No php version provided, do you want to select a version to install? [y/N]: Yes
Please select a version of php to install [type to search]:
->  v8.4.10
   v8.4.8
   v8.4.7
   v8.4.6
   v8.4.5
   v8.4.4
   v8.4.3
   v8.4.2
   v8.4.1
   v8.3.23
   v8.3.22
   v8.3.21
   v8.3.20
   v8.3.19
   v8.3.17
   v8.3.16
   v8.3.15
   v8.3.14
   v8.3.13
   v8.3.12
Press ↑/↓ to select and press ←/→ to page, and press Enter to confirm
Preinstalling php@8.4.10...
Downloading... 100% [=============================================================================================] (8.5 MB/s)
Verifying checksum bd25c40ece60d1b3c879c11f517d335b8d6a872174c32ebb088b9494d8bb2cf2...
Unpacking /Users/Jayden/.version-fox/cache/php/php-8.4.10.tar.gz...
Running buildconfig...
buildconf: Checking installation
buildconf: autoconf version 2.72 (ok)
buildconf: Forcing buildconf. The configure files will be regenerated.
buildconf: Cleaning cache and configure files
buildconf: Rebuilding configure
buildconf: Rebuilding main/php_config.h.in
buildconf: Run ./configure to proceed with customizing the PHP build.
Running ./configure sodium not found, not including in installation
--with-gmp=/opt/homebrew/opt/gmp --prefix=/Users/Jayden/.version-fox/cache/php/v-8.4.10/php-8.4.10     --enable-bcmath     --enable-calendar     --enable-dba     --enable-exif     --enable-fpm     --enable-ftp     --enable-gd     --enable-gd-native-ttf     --enable-intl     --enable-mbregex     --enable-mbstring     --enable-mysqlnd     --enable-pcntl     --enable-shmop     --enable-soap     --enable-sockets     --enable-sysvmsg     --enable-sysvsem     --enable-sysvshm     --enable-wddx     --enable-zip     --sysconfdir=/Users/Jayden/.version-fox/cache/php/v-8.4.10/php-8.4.10     --with-config-file-path=/Users/Jayden/.version-fox/cache/php/v-8.4.10/php-8.4.10     --with-config-file-scan-dir=/Users/Jayden/.version-fox/cache/php/v-8.4.10/php-8.4.10/conf.d     --with-curl     --with-external-gd     --with-fpm-group=www-data     --with-fpm-user=www-data     --with-gd     --with-mhash     --with-mysql=mysqlnd     --with-mysqli=mysqlnd     --with-pdo-mysql=mysqlnd     --with-xmlrpc     --with-zip     --with-zlib     --without-snmp --with-pear --without-pcre-jit
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: found,
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: unrecognized options: --enable-gd-native-ttf, --enable-wddx, --enable-zip, --with-gd, --with-mysql, --with-xmlrpc
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking build system type... Invalid configuration 'sodium': machine 'sodium-unknown' not recognized
configure: error: /bin/sh ./build/config.sub sodium failed
plugin [PostInstall] method error: /Users/Jayden/.version-fox/plugin/php/hooks/post_install.lua:75: Compilation Failure.
stack traceback:
	[G]: in function 'error'
	/Users/Jayden/.version-fox/plugin/php/hooks/post_install.lua:75: in function 'CompileInstallPHP'
	/Users/Jayden/.version-fox/plugin/php/hooks/post_install.lua:13: in main chunk
	[G]: ?
failed to install php

在Mac上建议你直接用laravel herd来配置php环境会方便很多。我之前没用vfox的时候,用phpenv、asdf安装php时都是构建有问题,给我弄头大了,最后直接用laravel开发的这个直接一次性就装好了,什么事都没有