Code Monkey home page Code Monkey logo

Comments (3)

jingjingxyk avatar jingjingxyk commented on August 23, 2024 2

@nekic

快速验证,用到的所有命令如下:

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.

jingjingxyk avatar jingjingxyk commented on August 23, 2024

@nekic 这个文件

后面添加一行。如下图:

image

执行 bash make.sh build 生成的目标二进制文件在这两个目录:

# fpm 
/work/php-src/sapi/fpm/php-fpm  -m 

# cli 
/work/php-src/sapi/cli/php -m

以上两个二进制文件拷贝出来就能用

from swoole-cli.

nekic avatar nekic commented on August 23, 2024

@jingjingxyk 感谢大佬!!!

from swoole-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.