Comments (6)
已解决。
from swoole-cli.
c-ares 安装到指定目录:比如 /usr/c-ares
目录
export PKG_CONFIG_PATH=/usr/c-ares/lib/pkgconfig::$PKG_CONFIG_PATH
使用时需要这样指定
export LIBS=$(pkg-config --libs --static libcares )
from swoole-cli.
已解决。
请问一下咋解决的呀, 我配置了
export CPPFLAGS=$(pkg-config --cflags --static libcares)
export LIBS=$(pkg-config --libs --static libcares)
打印也是正确的目录, 就是build的时候 错误和你一模一样
from swoole-cli.
已解决。
请问一下咋解决的呀, 我配置了 export CPPFLAGS=$(pkg-config --cflags --static libcares) export LIBS=$(pkg-config --libs --static libcares)
打印也是正确的目录, 就是build的时候 错误和你一模一样
make clean 以后,重新构建
修改完代码,需要再次执行 php prepare.php --without-docker=1 @macos
from swoole-cli.
@1307super
我自己的暂时这么写
export XSL_CFLAGS=$(pkg-config --cflags --static libxslt) ;
export XSL_LIBS=$(pkg-config --libs --static libxslt) ;
pkgs='libcares readline icu-i18n icu-io icu-uc openssl ImageMagick'
CPPFLAGS=$(pkg-config --cflags-only-I --static $pkgs)
export CPPFLAGS="$CPPFLAGS -I<?= $this->getGlobalPrefix() ?>/libiconv/include -I/usr/include"
LDFLAGS=$(pkg-config --libs-only-L --static $pkgs )
export LDFLAGS="$LDFLAGS -L<?= $this->getGlobalPrefix() ?>/libiconv/lib -L/usr/lib"
LIBS=$(pkg-config --libs-only-l --static <?= $this->getOsType() ?> $pkgs)
export LIBS="$LIBS -liconv"
from swoole-cli.
@jingjingxyk 非常感谢~ 用这个成功了
from swoole-cli.
Related Issues (20)
- swoole-cli 各分支功能区别 HOT 4
- 使用 -Wl,–whole-archive -Wl,–start-group 和 -Wl,–end-group -Wl,-no-whole-archive。 解决brotli 链接问题 HOT 3
- make.sh all-library报错了 HOT 3
- swoole-cli main 分支构建步骤 HOT 2
- swoole-cli 添加扩展 、添加构建静态链接库例子 HOT 1
- windows 版的 swoole-cli.exe 不支持 cli_set_process_title,函数存在,但是一直报错 HOT 8
- ext/swoole/ext-src/swoole_http_response.cc:1018:13: error: use of undeclared identifier 'strlcat'; did you mean 'strncat'? HOT 2
- 使用 Swoole\WebSocket\Client 提示没有 HOT 3
- ./make.sh build 构建出错,已经试过很多次就一直卡在这里,不知道是哪个步骤不对,请大佬指点一下,在ubuntu22.04版本下构建 HOT 8
- GD 库 库支持.avif 格式的图片
- ./make.sh config 成功,但 ./make.sh build 报错 HOT 1
- 构建加速:方式
- 项目镜像地址
- Makefile:14198 HOT 4
- 是否不支持macos11 HOT 3
- macos 、linux 构建步骤 HOT 5
- 建议将Swoole Compiler的loader编译到cli中。 HOT 4
- gdb swoole-cli core.xx 提示 (no debugging symbols found) ...done. HOT 3
- 5.1 编译pdo 协程 有适配的方案吗? HOT 7
- 大佬,常用的国标加密库能不能加进去? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swoole-cli.