当前位置:网站首页>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
边栏推荐
- UML图记忆技巧
- 【OpenGL】笔记二十九、抗锯齿(MSAA)
- Sword finger offer 65 Add without adding, subtracting, multiplying, dividing
- PMO: compare the sample efficiency of 25 molecular optimization methods
- 特征缩放 标准化 归一化
- Sword finger offer 68 - ii The nearest common ancestor of binary tree
- SHP data making 3dfiles white film
- 该如何去选择证券公司,手机上开户安不安全
- 质量体系建设之路的分分合合
- NFT insider 64: e-commerce giant eBay submitted an NFT related trademark application, and KPMG will invest $30million in Web3 and metauniverse
猜你喜欢

攻防世界 misc 高手进阶区 a_good_idea
[the 2023 autumn recruitment of MIHA tour] open [the only exclusive internal push code of school recruitment eytuc]

业务太忙,真的是没时间搞自动化理由吗?

Redis入门完整教程:客户端通信协议

Detailed explanation of heap sort code

Redis getting started complete tutorial: publish and subscribe

Set up a website with a sense of ceremony, and post it to 1/2 of the public network through the intranet

Breakpoint debugging under vs2019 c release

vim编辑器知识总结

【机器学习】手写数字识别
随机推荐
Feature scaling normalization
Google collab trample pit
蓝队攻防演练中的三段作战
The sandbox has reached a cooperation with digital Hollywood to accelerate the economic development of creators through human resource development
Locust performance test - environment construction and use
Lost in the lock world of MySQL
堆排序代码详解
Unity修仙手游 | lua动态滑动功能(3种源码具体实现)
Sword finger offer 68 - I. nearest common ancestor of binary search tree
Wake up day, how do I step by step towards the road of software testing
10 schemes to ensure interface data security
Redis入门完整教程:Pipeline
攻防世界 MISC 進階區 Erik-Baleog-and-Olaf
MySQL Architecture - user rights and management
Breakpoint debugging under vs2019 c release
Redis getting started complete tutorial: publish and subscribe
Async await used in map
Sword finger offer 68 - ii The nearest common ancestor of binary tree
Erik baleog and Olaf, advanced area of misc in the attack and defense world
Logo special training camp Section IV importance of font design