-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macos 、linux 构建步骤 #504
Comments
linux 构建步骤:
git clone -b main https://github.com/swoole/swoole-cli.git
cd swoole-cli
git submodule update --init
bash setup-php-runtime.sh --mirror china
composer install
php prepare.php
# 构建容器
bash make.sh docker-build china
# 进入容器
bash make.sh docker-bash
php prepare.php
# 查看可用的构建命令
bash make.sh -h
# 静态编译依赖库
bash make.sh all-library
# 静态编译 PHP 预处理
bash make.sh config
# 静态编译PHP (编译、汇编、链接)
bash make.sh build
# 静态编译PHP (打包)
bash make.sh archive
要支持其它版本PHP ,使用 build_native_php 分支即可,步骤如上,关键点如下:
# 执行清理无用文件
bash sapi/quickstart/clean-folder.sh
php prepare.php --with-php-version=8.2.6
linux 环境配置:
bash sapi/quickstart/linux/run-alpine-container.sh
bash sapi/quickstart/linux/connection-swoole-cli-alpine.sh
# 可跳过构建依赖库
# bash sapi/quickstart/linux/run-alpine-container-full.sh
bash sapi/quickstart/linux/alpine-init.sh --mirror china
一条命令执行整个构建流程:cp -f build-release-example.sh build-release.sh
sh build-release.sh --mirror china
|
简易辅助构建工具: https://swoole-cli-ui.jingjingxyk.com/ |
可以更新一个linux arm版本的swoole-cli吗? |
可以的。 |
谢谢你
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年1月6日(周六) 晚上6:13
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [swoole/swoole-cli] macos 、linux 构建步骤 (Issue #504)
可以更新一个linux arm版本的swoole-cli吗?
可以的。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
macos 构建步骤:
要支持其它版本PHP ,使用 build_native_php 分支即可,步骤如上,关键点如下:
# 执行清理无用文件 bash sapi/quickstart/clean-folder.sh php prepare.php --with-php-version=8.2.6
macos 环境配置:
一条命令执行整个构建流程:
The text was updated successfully, but these errors were encountered: