安装的新项目,webman2.1版本,就想先试一下二进制打包行不行,在phpstorm的自带终端和cmd运行打包命令都试了,不同版本的也试了,都报错Download php8.4.micro.sfx.zip failed, 301 Moved Permanently
php webman build:bin
php webman build:bin 8.1
php webman build:bin 8.4
Downloading PHP8.4 ...
Download php8.4.micro.sfx.zip failed, 301 Moved Permanently
composer.json
"require": {
"php": ">=8.1",
"workerman/webman-framework": "^2.1",
"monolog/monolog": "^2.0",
"webman/console": "^2.1"
},
刚刚测试本地和服务器上都正常
刚又挂梯子试了一下,还是报错,可能是我这边的网络被屏蔽了嘛
PS C:\Workspace\Project\Exp\webmannew\webxman> php webman build:bin
Warning: PHP Startup: Unable to load dynamic library 'pdo_firebird' (tried: ext\pdo_firebird (鎵句笉鍒版寚瀹氱殑妯″潡銆?, ext\php_pdo_firebird.dll (鎵句笉鍒版寚瀹氱殑妯″潡銆?) in Unknown on line 0
PHP Warning: Module "pdo_pgsql" is already loaded in Unknown on line 0
Warning: Module "pdo_pgsql" is already loaded in Unknown on line 0
PHP Warning: Module "pgsql" is already loaded in Unknown on line 0
Warning: Module "pgsql" is already loaded in Unknown on line 0
Phar packing...
Files collect complete, begin add file to Phar.
Write requests to the Phar archive, save changes to disk.
Downloading PHP8.4 ...
Download php8.4.micro.sfx.zip failed, 301 Moved Permanently
PS C:\Workspace\Project\Exp\webmannew\webxman> php webman build:bin 8.3
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_firebird' (tried: ext\pdo_firebird (鎵句笉鍒版寚瀹氱殑妯″潡銆?, ext\php_pdo_firebird.dll (鎵句笉鍒版寚瀹氱殑妯″潡銆?) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'pdo_firebird' (tried: ext\pdo_firebird (鎵句笉鍒版寚瀹氱殑妯″潡銆?, ext\php_pdo_firebird.dll (鎵句笉鍒版寚瀹氱殑妯″潡銆?) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_firebird' (tried: ext\pdo_firebird (鎵句笉鍒版寚瀹氱殑妯″潡銆?, ext\php_pdo_firebird.dll (鎵句笉鍒版寚瀹氱殑妯″潡銆?) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'pdo_firebird' (tried: ext\pdo_firebird (鎵句笉鍒版寚瀹氱殑妯″潡銆?, ext\php_pdo_firebird.dll (鎵句笉鍒版寚瀹氱殑妯″潡銆?) in Unknown on line 0
PHP Warning: Module "pdo_pgsql" is already loaded in Unknown on line 0
Warning: Module "pdo_pgsql" is already loaded in Unknown on line 0
PHP Warning: Module "pgsql" is already loaded in Unknown on line 0
Warning: Module "pgsql" is already loaded in Unknown on line 0
Phar packing...
Files collect complete, begin add file to Phar.
Write requests to the Phar archive, save changes to disk.
Downloading PHP8.3 ...
Download php8.3.micro.sfx.zip failed, 301 Moved Permanently
可能是你
DNS
问题,可以直接下载 php8.4.micro.sfx.zip 放到build
目录,然后重新执行php webman build:bin 8.4
试了一下可以了,感谢