当前位置:网站首页>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
边栏推荐
- Redis入门完整教程:有序集合详解
- A complete tutorial for getting started with redis: hyperloglog
- 攻防世界 MISC 进阶区 hit-the-core
- 共创软硬件协同生态:Graphcore IPU与百度飞桨的“联合提交”亮相MLPerf
- Sword finger offer 68 - I. nearest common ancestor of binary search tree
- Advanced area a of attack and defense world misc Masters_ good_ idea
- Three stage operations in the attack and defense drill of the blue team
- One of the commonly used technical indicators, reading boll Bollinger line indicators
- Li Kou 98: verify binary search tree
- The overview and definition of clusters can be seen at a glance
猜你喜欢
攻防世界 misc 高手进阶区 a_good_idea
PMO: compare the sample efficiency of 25 molecular optimization methods
Redis入门完整教程:哈希说明
Advanced area of attack and defense world misc 3-11
攻防世界 MISC 高手进阶区 001 normal_png
Wake up day, how do I step by step towards the road of software testing
【剑指offer】1-5题
【剑指Offer】6-10题
堆排序代码详解
Talk about Middleware
随机推荐
Unity Xiuxian mobile game | Lua dynamic sliding function (specific implementation of three source codes)
9 - 类
Redis入门完整教程:发布订阅
Google Earth engine (GEE) -- take modis/006/mcd19a2 as an example to batch download the daily mean, maximum, minimum, standard deviation, statistical analysis of variance and CSV download of daily AOD
Create Ca and issue certificate through go language
Lost in the lock world of MySQL
攻防世界 MISC 进阶区 hong
Advanced area a of attack and defense world misc Masters_ good_ idea
Complete tutorial for getting started with redis: bitmaps
Attack and defense world misc advanced grace-50
MySQL Architecture - logical architecture
Redis入门完整教程:哈希说明
Analysis of environmental encryption technology
Redis: redis configuration file related configuration and redis persistence
【剑指Offer】6-10题
堆排序代码详解
Set up a website with a sense of ceremony, and post it to 1/2 of the public network through the intranet
繁華落盡、物是人非:個人站長該何去何從
NFT insider 64: e-commerce giant eBay submitted an NFT related trademark application, and KPMG will invest $30million in Web3 and metauniverse
Co create a collaborative ecosystem of software and hardware: the "Joint submission" of graphcore IPU and Baidu PaddlePaddle appeared in mlperf