Comments (3)
快速验证,用到的所有命令如下:
bash sapi/quickstart/setup-php-runtime.sh --mirror china
bash sapi/quickstart/linux/run-alpine-container-full.sh
# 进入容器
bash sapi/quickstart/linux/connection-swoole-cli-alpine.sh
sh sapi/quickstart/linux/alpine-init.sh --mirror china
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
composer update --no-dev --optimize-autoloader
php prepare.php --with-download-mirror-url=https://swoole-cli.jingjingxyk.com/
# bash make.sh all-library (这步可省略,因为已经通过容器技术提前构建好依赖库,并打包到容器中,所运行容器已经包含依赖库)
bash make.sh config
bash make.sh build
# 验证编译好目标文件
file ./php-src/sapi/fpm/php-fpm
file ./php-src/sapi/cli/php
readelf -h ./php-src/sapi/fpm/php-fpm
readelf -h ./php-src/sapi/cli/php
./php-src/sapi/fpm/php-fpm -m
./php-src/sapi/fpm/php-fpm --ri swoole
./php-src/sapi/cli/php -m
./php-src/sapi/cli/php --ri swoole
from swoole-cli.
@nekic 这个文件
swoole-cli/sapi/src/template/make.php
Line 25 in 756ba55
执行 bash make.sh build
生成的目标二进制文件在这两个目录:
# fpm
/work/php-src/sapi/fpm/php-fpm -m
# cli
/work/php-src/sapi/cli/php -m
以上两个二进制文件拷贝出来就能用
from swoole-cli.
@jingjingxyk 感谢大佬!!!
from swoole-cli.
Related Issues (20)
- Makefile:14198 HOT 4
- 是否不支持macos11 HOT 3
- macos 、linux 构建步骤 HOT 5
- gdb swoole-cli core.xx 提示 (no debugging symbols found) ...done. HOT 3
- 5.1 编译pdo 协程 有适配的方案吗? HOT 7
- 大佬,常用的国标加密库能不能加进去? HOT 4
- main分支 alpine 容器内构建 make openssl 失败 HOT 3
- swoole-cli /sync-source-code.php 代码有问题 HOT 1
- windows 使用 Cygwin 构建 swool-cli 不成功。 HOT 18
- swoole-cli 5.1.1 不支持php-fpm运行了吗? HOT 1
- Cygwin 环境中的这个 swoole-cli 似乎不能够很好的支持 phpstan HOT 1
- swoole-cli 是否对 try catch 捕获的协程异常做了一些调整,使调用栈的错误信息不在控制台打印出来了? HOT 7
- build提示 ext/phar/phar_internal.h:619:1: error: expected identifier or '(' HOT 4
- fpm下安装composer失败 HOT 5
- 配合hyperf使用提示 swoole_signalfd_event_callback HOT 4
- Linux 下构建 oci8、pdo_oci 扩展,遇到的 Oracle Instant Client 库不是 .tar.gz 格式和无 Makefile 文件的问题。 HOT 1
- 不支持mongo了吗 HOT 1
- Warning: exec(): Unable to fork HOT 10
- Add FFI extension HOT 1
- Redis scan指令回调不执行
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.