Giter VIP home page Giter VIP logo

Comments (10)

jingjingxyk avatar jingjingxyk commented on May 18, 2024 1

@TNT-ma 刚才我查看了一下,确实没有配置GMP扩展

查看过程如下:

 wget https://dl.zhamao.xin/php-bin/file/php-8.1.8-static-bin-x86_64.tar.gz
tar -zxvf php-8.1.8-static-bin-x86_64.tar.gz
mv php php-8.1.8
./php-8.1.8 --ri gmp

暂时可以去下载这个(这个包含了gmp扩展) https://github.com/swoole/swoole-src/releases 或者 https://www.swoole.com/download
暂时先用着呗 !

截图 2023-02-02 14-41-53

from static-php-cli.

crazywhalecc avatar crazywhalecc commented on May 18, 2024

近期会尝试。

from static-php-cli.

TNT-ma avatar TNT-ma commented on May 18, 2024

@TNT-ma 刚才我查看了一下,确实没有配置GMP扩展

查看过程如下:

 wget https://dl.zhamao.xin/php-bin/file/php-8.1.8-static-bin-x86_64.tar.gz
tar -zxvf php-8.1.8-static-bin-x86_64.tar.gz
mv php php-8.1.8
./php-8.1.8 --ri gmp

暂时可以去下载这个(这个包含了gmp扩展) https://github.com/swoole/swoole-src/releases 或者 https://www.swoole.com/download 暂时先用着呗 !

截图 2023-02-02 14-41-53

这个是什么,我还没看懂,我需要 sfx 方便打包 这是一个二进制似乎是PHP文件吧

from static-php-cli.

jingjingxyk avatar jingjingxyk commented on May 18, 2024

@TNT-ma https://github.com/crazywhalecc/static-php-cli/blob/master/README.md 【打包成一个文件,相当于:PHP运行时和源代码一起分发】

里面的关键点: micro 将 PHP 源码和 PHP 二进制构建为一个文件分发! (意思: micro 默认包含了PHP运行时)

现在自己更换PHP运行时,你就不认识了吗?

重点:

源代码和运行时打包成一个文件 存在授权问题,详情请看这里: swoole/swoole-cli#8

(强行整合为一个可执行文件,具有一定的迷惑性)

最好是还是这样

把应用程序打包成 一个 phar文件,运行程序是 选择指定版本的PHP运行时

from static-php-cli.

TNT-ma avatar TNT-ma commented on May 18, 2024

近期会尝试。

如果我自己docker 编译能自己加gmp扩展吗?需要怎么做?

from static-php-cli.

TNT-ma avatar TNT-ma commented on May 18, 2024

近期会尝试。

如果我自己docker 编译能自己加gmp扩展吗?需要怎么做?

from static-php-cli.

jingjingxyk avatar jingjingxyk commented on May 18, 2024

修改Dockerfile 即可

参考:https://www.cnblogs.com/jingjingxyk/p/16841551.html

from static-php-cli.

TNT-ma avatar TNT-ma commented on May 18, 2024

Dockerfile
看了一下并不懂,等待更新吧。swoole 也没搞懂

from static-php-cli.

jingjingxyk avatar jingjingxyk commented on May 18, 2024

生成的文件其实是: PHP 运行时+用户应用程序

from static-php-cli.

crazywhalecc avatar crazywhalecc commented on May 18, 2024

已在重构版增加。

from static-php-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.