因为要安装 mcrypt ,所以使用 brew install php56-mcrypt,但是安装完后,查看phpinfo()中没有加载mcrypt,坚持下来发现:
安装的php开启了debug模式,而mcrypt没有,在github上找到一个issue:
https://github.com/Homebrew/h...
中 用 brew install php56-mcrypt -fs 就可以解决,实际操作确实可以解决,
issue中的解释是 Just pass -fs to your install arguments. brew install example -fs. It'll skip the bottle block entirely.
但是没有弄清楚,加上-fs参数就是跳过`bottle block` 吗?`bottle block` 是什么?
因为要安装 mcrypt ,所以使用 brew install php56-mcrypt,但是安装完后,查看phpinfo()中没有加载mcrypt,坚持下来发现:
安装的php开启了debug模式,而mcrypt没有,在github上找到一个issue:
https://github.com/Homebrew/h...
中 用 brew install php56-mcrypt -fs 就可以解决,实际操作确实可以解决,
issue中的解释是 Just pass -fs to your install arguments. brew install example -fs. It'll skip the bottle block entirely.
但是没有弄清楚,加上-fs参数就是跳过`bottle block` 吗?`bottle block` 是什么?
bottle block是指bottle代码块,是brew用来直接下载二进制包进行安装的代码,加上-fs的意思是--build-from-source,也就是从源代码编译安装
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号