Update from 2023/01: The ARM version of SAP HANA Clients for macOS is available as of version 2.15, for example from https://tools.hana.ondemand.com/#hanatools. |
hdbcli
on an Apple M1 Chip: creating a copy of a terminal app that starts us....arch
commandarch
command.man arch
explains:By default, the operating system will select the architecture that most closely matches the processor type. ... Thearch
command can be used to alter the operating system's normal selection order.
Thearch
command with no arguments, displays the machine's architecture type.
arm64
value.x86_64
translation mode, you can execute:/usr/bin/arch -arch x86_64 <command>
sysctl
to display, if a process is native or translated.sysctl sysctl.proc_translated
/usr/bin/arch -arch x86_64 sysctl sysctl.proc_translated
file /path/to/binary
:file $(which sysctl)
file $(which zsh)
file $(which python3)
python3 -V
arch -arch x86_64 python3 -V
conda
is ARM64-only:file $(which python)
python -V
arch -arch x86_64 python -V
hdbcli
using pip
on Apple siliconhdbcli
using pip
today (with no "universal" version of HDBCLI for Apple M1 available yet), then I get:ERROR: Could not find a version that satisfies the requirement hdbcli (from versions: none)
ERROR: No matching distribution found for hdbcli
myhana
Conda's environment...conda create -n myhana python=3.9
conda activate myhana
x86_64
compatible architecture...arch -x86_64 zsh
export PS1='x86$ '
arch
uname -m
🤔 I must admit thisi386
vsx86_64
is still confusing me. I will appreciate, if you share your explanation in comments, should you know why these two values are different.
hdbcli
in x86_64 processhdbcli
using pip
.python3 -m pip install hdbcli
python3 -m pip show hdbcli
I assume, it is because it got arm64-compatible binary of Python only -- as we have checked above. And I have not found a way yet to install universal binary of Python into a conda's environment yet. Have you?
/usr/bin/arch -x86_64 /bin/zs
.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
26 | |
24 | |
21 | |
13 | |
9 | |
9 | |
9 | |
9 | |
8 | |
8 |