Skip to content
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

能增加 gmp 扩展吗 #23

Closed
TNT-ma opened this issue Feb 2, 2023 · 10 comments
Closed

能增加 gmp 扩展吗 #23

TNT-ma opened this issue Feb 2, 2023 · 10 comments
Labels
fixed Fixed issue kind/extension Issues related to extensions

Comments

@TNT-ma
Copy link

TNT-ma commented Feb 2, 2023

web3 上诸多项目都需要用到gmp扩展函数
能增加一下吗

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Feb 2, 2023

@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

@crazywhalecc
Copy link
Owner

近期会尝试。

@TNT-ma
Copy link
Author

TNT-ma commented Feb 2, 2023

@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文件吧

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Feb 2, 2023

@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运行时

@TNT-ma
Copy link
Author

TNT-ma commented Feb 2, 2023

近期会尝试。

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

1 similar comment
@TNT-ma
Copy link
Author

TNT-ma commented Feb 2, 2023

近期会尝试。

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

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Feb 2, 2023

@TNT-ma
Copy link
Author

TNT-ma commented Feb 2, 2023

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

@jingjingxyk
Copy link
Contributor

jingjingxyk commented Feb 4, 2023

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

@crazywhalecc crazywhalecc added the kind/extension Issues related to extensions label Feb 28, 2023
@crazywhalecc
Copy link
Owner

已在重构版增加。

@crazywhalecc crazywhalecc added the fixed Fixed issue label Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed Fixed issue kind/extension Issues related to extensions
Projects
No open projects
Development

No branches or pull requests

3 participants