当前位置:网站首页>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
边栏推荐
- Wake up day, how do I step by step towards the road of software testing
- 啃下大骨头——排序(二)
- Attack and defense world misc advanced zone 2017_ Dating_ in_ Singapore
- The new version judges the code of PC and mobile terminal, the mobile terminal jumps to the mobile terminal, and the PC jumps to the latest valid code of PC terminal
- 攻防世界 MISC 進階區 Erik-Baleog-and-Olaf
- A complete tutorial for getting started with redis: transactions and Lua
- 特征缩放 标准化 归一化
- About stack area, heap area, global area, text constant area and program code area
- 10 schemes to ensure interface data security
- Serial port data frame
猜你喜欢
攻防世界 MISC 进阶 glance-50
攻防世界 MISC 高手进阶区 001 normal_png
Unity-VScode-Emmylua配置报错解决
小程序vant tab组件解决文字过多显示不全的问题
攻防世界 MISC 进阶区 Ditf
[machine learning] handwritten digit recognition
Erik baleog and Olaf, advanced area of misc in the attack and defense world
Advanced area of attack and defense world misc 3-11
攻防世界 MISC 进阶区 can_has_stdio?
攻防世界 MISC 进阶区 hong
随机推荐
Business is too busy. Is there really no reason to have time for automation?
Unity-VScode-Emmylua配置报错解决
繁華落盡、物是人非:個人站長該何去何從
The Sandbox 和数字好莱坞达成合作,通过人力资源开发加速创作者经济的发展
攻防世界 MISC 进阶区 Erik-Baleog-and-Olaf
The difference between Max and greatest in SQL
On-off and on-off of quality system construction
MySQL Architecture - user rights and management
共创软硬件协同生态:Graphcore IPU与百度飞桨的“联合提交”亮相MLPerf
Tla+ introductory tutorial (1): introduction to formal methods
Three stage operations in the attack and defense drill of the blue team
Insert sort, select sort, bubble sort
Taobao commodity review API interface (item_review get Taobao commodity review API interface), tmall commodity review API interface
Install the gold warehouse database of NPC
A complete tutorial for getting started with redis: hyperloglog
Talk about Middleware
Notepad++--编辑的技巧
Google Earth Engine(GEE)——基于 MCD64A1 的 GlobFire 日常火灾数据集
[cooking record] - stir fried 1000 pieces of green pepper
PMO: compare the sample efficiency of 25 molecular optimization methods