当前位置:网站首页>The solution to the lack of pcntl extension under MAMP, fatal error: call to undefined function pcntl_ signal()
The solution to the lack of pcntl extension under MAMP, fatal error: call to undefined function pcntl_ signal()
2022-07-04 22:58:00 【Song Xiaoyu】
mac By default, the self-contained PHP, Cause configuration mamp Of PHP Never succeed
1. How to use the default PHP Replace with mamp Integrated environment PHP
- modify bash Configuration in
// Open profile
vim .bash_profile
// Add the configuration
export PATH="/Applications/MAMP/bin/php/php7.1.20/bin:$PATH"
// Profile validation
source .bash_profile
- modify zsh Configuration in
// Open profile
vim .zshrc
// Add the configuration
export PATH="/Applications/MAMP/bin/php/php7.1.20/bin:$PATH"
// Profile validation There are still questions
source .zshrc
2. add to pcntl Expand
- Download the corresponding version of PHP http://www.php.net/releases/
- Unzip the file tar -xzvf php-7.1.20.tar.gz
- Get into pcntl Catalog cd php-7.1.20/ext/pcntl
- Conduct phpize variation /Applications/MAMP/bin/php/php7.1.20/bin/phpize
- Carry out orders ./configure
–with-php-config=/Applications/MAMP/bin/php/php7.1.20/bin/php-config --prefix=/Applications/MAMP/bin/php/php7.1.20/bin/php - make compile `make && make install
- The terminal displays the following information , That is success
Installing shared extensions: /Applications/MAMP/bin/php/php7.1.20/lib/php/extensions/no-debug-non-zts-20170718/
- open mamp Corresponding version php The configuration file of add extension=pcntl.so
MAMP PRO menu->File ->Edit Template->PHP->7.1.20
- perform php --ri pcntl after , Terminal display pcntl pcntl support => enabled That's it .
Reference documents
https://www.jianshu.com/p/ec88a61a0fa8
https://stackoverflow.com/questions/47806090/how-to-enable-pcntl-extensions-in-mamp-pro/50266295
边栏推荐
- 微信小程序显示样式知识点总结
- 浅聊一下中间件
- [machine learning] handwritten digit recognition
- 业务太忙,真的是没时间搞自动化理由吗?
- Redis入门完整教程:集合详解
- [the 2023 autumn recruitment of MIHA tour] open [the only exclusive internal push code of school recruitment eytuc]
- 记录:关于Win10系统中Microsoft Edge上的网页如何滚动截屏?
- MD5 tool class
- 攻防世界 MISC 进阶区 Ditf
- mamp下缺少pcntl扩展的解决办法,Fatal error: Call to undefined function pcntl_signal()
猜你喜欢

The Sandbox 和数字好莱坞达成合作,通过人力资源开发加速创作者经济的发展

Redis introduction complete tutorial: slow query analysis

Unity vscode emmylua configuration error resolution

堆排序代码详解

位运算符讲解
![[machine learning] handwritten digit recognition](/img/26/cabdc5c92035181d82f6f809e6df0f.png)
[machine learning] handwritten digit recognition

Co create a collaborative ecosystem of software and hardware: the "Joint submission" of graphcore IPU and Baidu PaddlePaddle appeared in mlperf

Google Earth engine (GEE) - globfire daily fire data set based on mcd64a1

Li Kou 98: verify binary search tree

Talk about Middleware
随机推荐
通过Go语言创建CA与签发证书
MYSQL架构——逻辑架构
Feature scaling normalization
Analysis of the self increasing and self decreasing of C language function parameters
质量体系建设之路的分分合合
It is said that software testing is very simple, but why are there so many dissuasions?
【OpenGL】笔记二十九、抗锯齿(MSAA)
企业如何跨越数字化鸿沟?尽在云原生2.0
Redis入门完整教程:Redis使用场景
Sword finger offer 65 Add without adding, subtracting, multiplying, dividing
Naacl-22 | introduce the setting of migration learning on the prompt based text generation task
EditPlus--用法--快捷键/配置/背景色/字体大小
vim编辑器知识总结
Redis入门完整教程:列表讲解
Analog rocker controlled steering gear
安装人大金仓数据库
Redis入门完整教程:HyperLogLog
9 - 类
String类中的常用方法
Redis的持久化机制