Install php trader on mac os

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

I am trying to install on my MAC the trader modul from PHP. I am running on PHP 7.1

Here my error:

sudo pecl install trader

Warning: Invalid argument supplied for foreach() in Downloader.php on line 592

Warning: Invalid argument supplied for foreach() in /usr/local/php5-7.1.1-20170213-100732/lib/php/PEAR/Downloader.php on line 592
downloading trader-0.5.0.tgz ...
Starting to download trader-0.5.0.tgz (299,829 bytes)
.........................................................done: 299,829 bytes

Warning: Invalid argument supplied for foreach() in Validator.php on line 870

Warning: Invalid argument supplied for foreach() in /usr/local/php5-7.1.1-20170213-100732/lib/php/PEAR/PackageFile/v2/Validator.php on line 870
332 source files, building
running: phpize
Configuring for:
PHP Api Version:         20160303
Zend Module Api No:      20160303
Zend Extension Api No:   320160303
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

ERROR: `phpize' failed
profilepic.png
manpreet 2 years ago

Apparently autoconf is not installed on your system.

The easiest way to get that is to install Homebrew, then run:

brew install autoconf

Generally, I would recommend installing third-party dependencies through Homebrew, since you won't need to run sudo to do anything with these packages. See this guide for some more info.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.