GaryKam 发表于 2024-10-9 17:05:48

lnmp2.1安装swoole问题

第一步更加贴子上军哥提供的php7.4使用4.8.13,修改version.sh发现(https://soft.lnmp.com/web/swoole/)没有该版本

+-----------------------------------------------------------------------+
|            Addons script for LNMP V2.1, Written by Licess             |
+-----------------------------------------------------------------------+
|    A tool to Install cache,optimizer,accelerator...addons for LNMP    |
+-----------------------------------------------------------------------+
|         For more information please visit https://lnmp.org          |
+-----------------------------------------------------------------------+
====== Installing PHP Swoole ======

Press any key to start...or Press Ctrl+c to cancel

Notice: swoole-4.8.13.tgz not found!!!download now...
--2024-10-09 16:53:29--https://soft.lnmp.com/web/swoole/swoole-4.8.13.tgz
Resolving soft.lnmp.com (soft.lnmp.com)... 43.175.152.66, 43.152.29.77, 101.33.11.246, ...
Connecting to soft.lnmp.com (soft.lnmp.com)|43.175.152.66|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-10-09 16:53:30 ERROR 404: Not Found.

Uncompress swoole-4.8.13.tgz...
tar (child): swoole-4.8.13.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
cd swoole-4.8.13...
include/main.sh: line 783: cd: swoole-4.8.13: No such file or directory
Cannot find config.m4.
Make sure that you run '/usr/local/php/bin/phpize' in the top level source directory of the module

include/php_swoole.sh: line 30: ./configure: No such file or directory
make: *** No targets specified and no makefile found.Stop.
/home/lnmp2.1/src
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm NOTICE: PHP message: PHP Warning:PHP Startup: Unable to load dynamic library 'swoole.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20190902/swoole.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
done
PHP Swoole install failed!

GaryKam 发表于 2024-10-9 17:09:30

自己已修复
把 php_swoole.sh 版本修改好即可
页: [1]
查看完整版本: lnmp2.1安装swoole问题