Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

homebrew - Can't install PHP trader extension with Pecl into Macbook M1 chip, on macOS Big Sur

i'm trying to install a trade extension module to php buy using:

pecl install trader

at the beginning of the installation i'm getting the some warnings such as:

Warning: Invalid argument supplied for foreach() in PEAR/Downloader.php on line 594

Warning: Invalid argument supplied for foreach() in /usr/local/lib/php/PEAR/Downloader.php on line 594

But then installation is going forward, after a while i'm getting this error:

**#include "php.h"
         ^~~~~~~
1 error generated.
make: *** [functions/trader_acos.lo] Error 1
ERROR: `make' failed**

the version of the Pecl is:

PEAR Version: 1.10.12
PHP Version: 7.3.24-(to be removed in future macOS)
Zend Engine Version: 3.3.24

I tried also to turnaround the "m1 chip problem" by installing with like this>

arch -x86_64 sudo pecl install trader

but I get the same issue.

someone can tell me if this problem is related to the M1 chip or with the php version and how can I solve it?

thank you

question from:https://stackoverflow.com/questions/66048836/cant-install-php-trader-extension-with-pecl-into-macbook-m1-chip-on-macos-big

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...