asdf-php: PHP don't install MacOS on Apple Silicon
I’m trying install and getting this error:
-> % asdf install php 8.07RC1
Determining configuration options...
Downloading source code...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 145 0 --:--:-- --:--:-- --:--:-- 145
100 14 100 14 0 0 7 0 0:00:02 0:00:01 0:00:01 19
Extracting source code...
tar: Error opening archive: Unrecognized archive format
Anyone know what happening?
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 4
- Comments: 30 (10 by maintainers)
This is happening to me too, but I don’t run Apple silicon, just a standard intel. Exact same trace.
Thanks @imjoehaines, I was indeed able to install version 7.4.28 by using your fix.
I took a few mins to prepare a pull request based on your suggestions, stripping out the postgres stuff and adding PCRE JIT disabling feature as an option.
Please find it here: #120
I was able to get past Postgres issue like this:
But if you run it, you will encounter other issues. The main cause is that when you set
PHP_CONFIGURE_OPTIONS
some default configure parameters are not set, and it generates some errors. I had to tinker with install script to get past them. I’ve attached a patch file for install script (with txt extension, GH does not allow patch extension?).install.txt
@smorimoto What do you think about this patch? Is there any reason to ignore os-specific detection when
PHP_CONFIGURE_OPTIONS
is set?But then again, it failed (see #94).
I’m writing this so it may help you @polotto.
No worries at all! Cool! I think it’s enough to just pass
-f
or--fail
where we are calling curl. Some other plugins are actually doing this! https://curl.se/docs/manpage.html