当前位置:网站首页>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
边栏推荐
- Unity Xiuxian mobile game | Lua dynamic sliding function (specific implementation of three source codes)
- 【室友用一局王者荣耀的时间学会了用BI报表数据处理】
- vim编辑器知识总结
- Close system call analysis - Performance Optimization
- Li Kou 98: verify binary search tree
- sobel过滤器
- Mongodb aggregation operation summary
- 剑指 Offer 67. 把字符串转换成整数
- Detailed explanation of heap sort code
- 9 - 类
猜你喜欢
【机器学习】手写数字识别
Google Earth engine (GEE) - globfire daily fire data set based on mcd64a1
On-off and on-off of quality system construction
PMO: compare the sample efficiency of 25 molecular optimization methods
攻防世界 misc 高手进阶区 a_good_idea
Logo special training camp Section IV importance of font design
Redis introduction complete tutorial: client communication protocol
[roommate learned to use Bi report data processing in the time of King glory in one game]
攻防世界 MISC 进阶区 hong
A complete tutorial for getting started with redis: hyperloglog
随机推荐
云服务器设置ssh密钥登录
Attack and defense world misc advanced area ditf
繁華落盡、物是人非:個人站長該何去何從
Advanced area a of attack and defense world misc Masters_ good_ idea
【图论】拓扑排序
Create Ca and issue certificate through go language
Advanced area of attack and defense world misc 3-11
Duplicate ADMAS part name
攻防世界 MISC 高手进阶区 001 normal_png
攻防世界 MISC 进阶区 can_has_stdio?
攻防世界 MISC 进阶区 3-11
该如何去选择证券公司,手机上开户安不安全
啃下大骨头——排序(二)
Detailed explanation of heap sort code
Logo special training camp section II collocation relationship between words and graphics
[Lua] Int64 support
图片懒加载的原理
Tla+ introductory tutorial (1): introduction to formal methods
特征缩放 标准化 归一化
剑指 Offer 67. 把字符串转换成整数