Comments (10)
@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
暂时先用着呗 !
from static-php-cli.
近期会尝试。
from static-php-cli.
@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 暂时先用着呗 !
这个是什么,我还没看懂,我需要 sfx 方便打包 这是一个二进制似乎是PHP文件吧
from static-php-cli.
@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.
近期会尝试。
如果我自己docker 编译能自己加gmp扩展吗?需要怎么做?
from static-php-cli.
近期会尝试。
如果我自己docker 编译能自己加gmp扩展吗?需要怎么做?
from static-php-cli.
修改Dockerfile 即可
参考:https://www.cnblogs.com/jingjingxyk/p/16841551.html
from static-php-cli.
Dockerfile
看了一下并不懂,等待更新吧。swoole 也没搞懂
from static-php-cli.
生成的文件其实是: PHP 运行时+用户应用程序
from static-php-cli.
已在重构版增加。
from static-php-cli.
Related Issues (20)
- 大佬,拉取你新的代码 然后再github actions构建 又报错了,有时间您看一下吧 HOT 1
- xz dependency unavailable HOT 1
- win版中构建的micro.sfx HOT 1
- Build error with Postgres because of libxml2 HOT 3
- libuuid fails to build on linux HOT 1
- FreeBSD Support Not Working - "Current OS is not supported" HOT 10
- bug: Linux x86_64 build failed HOT 6
- Compiled Windows executable isn't running HOT 1
- Windows Defender SmartScreen HOT 4
- SSL operation failed with code 5 HOT 10
- In extreme cases micro.sfx using `--with-upx-pack` will build the wrong binary
- Extension request: `gd` on Windows
- postgresql: Failed to get pkg-config information HOT 3
- ncurses 6.5 not working with libreadline
- xz build failed on Linux and macOS
- download bug: for-extensions=redis does not download zstd
- Extension request: `intl` on Windows HOT 2
- `intl` ICU build errors HOT 2
- SAPI embed Support on Windows HOT 2
- Add the parallel extension HOT 3
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 static-php-cli.