当前位置:网站首页>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
边栏推荐
- MD5 tool class
- The sandbox has reached a cooperation with digital Hollywood to accelerate the economic development of creators through human resource development
- mamp下缺少pcntl扩展的解决办法,Fatal error: Call to undefined function pcntl_signal()
- NFT Insider #64:电商巨头eBay提交NFT相关商标申请,毕马威将在Web3和元宇宙中投入3000万美元
- Duplicate ADMAS part name
- 攻防世界 MISC 高手进阶区 001 normal_png
- A complete tutorial for getting started with redis: redis shell
- Erik baleog and Olaf, advanced area of misc in the attack and defense world
- Summary of index operations in mongodb
- Insert sort, select sort, bubble sort
猜你喜欢

质量体系建设之路的分分合合

集群的概述与定义,一看就会

攻防世界 MISC 进阶 glance-50

Attack and defense world misc advanced area can_ has_ stdio?

Serial port data frame

Redis入门完整教程:有序集合详解

Talk about Middleware

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

A complete tutorial for getting started with redis: Pipeline

Redis入门完整教程:集合详解
随机推荐
Sword finger offer 67 Convert a string to an integer
[Lua] Int64 support
Google Earth Engine(GEE)——基于 MCD64A1 的 GlobFire 日常火灾数据集
Analog rocker controlled steering gear
Tla+ introductory tutorial (1): introduction to formal methods
Sword finger offer 65 Add without adding, subtracting, multiplying, dividing
SQL中MAX与GREATEST的区别
攻防世界 MISC 进阶 glance-50
Async await used in map
A complete tutorial for getting started with redis: transactions and Lua
Attack and defense world misc master advanced zone 001 normal_ png
Logo special training camp Section IV importance of font design
Unity Xiuxian mobile game | Lua dynamic sliding function (specific implementation of three source codes)
Hit the core in the advanced area of misc in the attack and defense world
页面关闭前,如何发送一个可靠请求
Prosperity is exhausted, things are right and people are wrong: where should personal webmasters go
【OpenGL】笔记二十九、抗锯齿(MSAA)
Redis入门完整教程:哈希说明
Talk about Middleware
Sword finger offer 68 - ii The nearest common ancestor of binary tree