Skip to content

swoole-cli main 分支构建步骤 #324

@jingjingxyk

Description

@jingjingxyk

用main 分支构建步骤

# 准备PHP 运行时 (看提示,把 PHP 运行时导入环境变量PATH )
sh setup-php-runtime.sh

# 准备运行脚本(目的是为了生成构建容器的脚本,进入容器的脚本)【容器外】
composer update  
php prepare.php --without-docker --skip-download=1

# 查看用的构建命令
bash make.sh -h

# 构建容器运行环境
bash make.sh docker-build

# 启动容器运行环境,并进入容器
bash make.sh docker-bash


# 准备运行脚本( 下载各依赖库源码,生成构建脚本)【容器内】
composer update  
php prepare.php   +inotify +apcu +ds +xlswriter +ssh2  --with-swoole-pgsql=1


# 静态编译依赖库
bash make.sh  all-library 

# 静态编译 PHP 预处理
bash make.sh config 

# 静态编译PHP (汇编、编译、链接)
bash make.sh build 

# 静态编译PHP (打包)
bash make.sh archive 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions