Note: as of jq v1.7
the project offers pre-built native macOS releases for ARM64 based architechtures.
A quick n' dirty Bash script to install the following:
autoconf
.automake
.libtool
jq
- from source.
The aim/need was to create an M1 (ARM64) compile of jq
- which isn't wasn't (until September 2023) available via releases and avoid using Homebrew.
Tested successfully under a Apple M1 Pro
MacBook running macOS Monterey 12.4
.
Will likely require Xcode CLI tools. Can be installed via the following:
$ xcode-select --install
Enjoy!
hi after running your script JQ can run well but i found that the nodejs can not run properly...
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CC(target) Release/obj.target/tree_sitter/vendor/tree-sitter/lib/src/lib.o
LIBTOOL-STATIC Release/tree_sitter.a
Usage: /usr/local/bin/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool: error: unrecognised option: '-static'
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build', '--jobs', 8 ]
CXX(target) Release/obj.target/nortti/src/external_copy/serializer_nortti.o
CXX(target) Release/obj.target/nortti/src/isolate/allocator_nortti.o
In file included from ../src/external_copy/serializer_nortti.cc:1:
In file included from ../src/external_copy/serializer.h:2:
In file included from ../src/external_copy/external_copy.h:2:
/Users/ypy/Library/Caches/node-gyp/18.20.2/include/node/v8.h:21:10: fatal error: 'memory' file not found
#include
^~~~~~~~
In file included from ../src/isolate/allocator_nortti.cc:1:
In file included from ../src/isolate/allocator.h:2:
/Users/ypy/Library/Caches/node-gyp/18.20.2/include/node/v8.h:21:10: fatal error: 'memory' file not found
Any ideas? Seems it overwrites the default setting of CommandLineTools. Any way to rollback the changes?