-
Notifications
You must be signed in to change notification settings - Fork 18
Compile from master fails with error ext/swoole/php_swoole.h: No such file or directory #3
Comments
Are you ready to solve it |
same error. |
+1 |
My solution is by installing Swoole extension from source, not from PECL: this makes Swoole Async extension install (from source, of course) without issues. sudo apt-get install php-dev
git clone https://github.com/swoole/swoole-src
cd swoole-src/
phpize
./configure
make -j 4
sudo make install
git clone https://github.com/swoole/ext-async
cd ext-async/
phpize
./configure
make -j 4
sudo make install
# Add the two following lines to file /etc/php/7.2/cli/php.ini
# extension=swoole.so
# extension=swoole_async.so
php -m | grep swoole
# swoole
# swoole_async To be honest, I don't know why Swoole installation via PECL makes Swoole Async installation fail. I have PHP 7.2 on Ubuntu 18.04, completely fresh install. Hope this helps! |
Have same error on make -j 4 stage, i have installed |
How did you install it? Via PECL or via source code? Via PECL seems to be incompatible with Swoole Async installation via source code. |
Make sure the two versions are consistent |
@winslis2 what do you mean by "make sure the two versions are consistent" ? Swoole has version 4.4.4 now but ext-async only goes to 4.4.3 |
Hi everyone, |
swoole version 4.4.4 has coroutines model,ext-async is Outdated |
For now Swoole extensions (including the async extension) are not tagged/released the same way as Swoole, thus it could be painful when using them with old versions of Swoole. Here is my suggestion to use or install the async extension (and other Swoole extensions):
If you want to install with the latest code, please follow what @francescozanoni had suggested. |
@deminy thanks a lot! Cheers! |
I am using latest Swoole version 4.6.6. but this extension is confusing. My question is "can i make Asynchronous Client / Calls" in Swoole, without "ext-async" ? I mean is there an aleternate mechanism available ? to write Asynchrnous Client / Calls without "ext-async" ? OR, "ext-async" is one and only (mandatory) way in Swoole to write Asynchronous Client / Calls ? |
For some who have confusion about whether they should really use ext-async, or recommended swoole\coroutine\client for Swoole Asynchronous Clients / Calls.
|
Doing
make -j 4
generated the following error.The text was updated successfully, but these errors were encountered: