I am trying to install HD-Wallet Derive on my new MacBook Pro with the Apple A1 chip.
For which I need to install the latest version of PHP (7.3 at this current time).
So when I hit this command brew install [email protected]
on my terminal (Z shell) and I get this error message:
Error: [email protected]: no bottle available!
You can try to install from source with:
brew install --build-from-source [email protected]
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew’s GitHub, Twitter or any other
official channels.
I am building it from source, using the repository hd-wallet-derive. I was able to execute this commands curl https://getcomposer.org/installer -o installer.php
and this php installer.php
successfully. But when I ran this one: php composer.phar install
I get this error:
No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file.
Loading composer repositories with package information
Updating dependenciesYour requirements could not be resolved to an installable set of packages.
Problem 1
- mdanter/ecc[v0.5.0, …, 0.5.x-dev] require ext-gmp * -> it is missing from your system. Install or enable PHP’s gmp extension.
- bitwasp/bitcoin dev-master requires mdanter/ecc ^0.5.0 -> satisfiable by mdanter/ecc[v0.5.0, v0.5.1, v0.5.2, 0.5.x-dev].
- Root composer.json requires bitwasp/bitcoin dev-master#8782bc6c470e342d4e0cb67eb036974f133b950b -> satisfiable by bitwasp/bitcoin[dev-master].
I believe I have to do a GMP extension, but how?
2
Answers
Apple A1 is an ARM architecture chip. You are going to have to install from source (and compile them yourself) or wait for maintainers to update Homebrew scripts with switches for ARM architectures more about it at Homebrew installation on ARM #357.
Note: PHP 7.3 is end of life by 6 Dec 2021.