Skip to content

Commit 9ecea44

Browse files
Merge pull request #4994 from lchen-2101/docs/udpate_readme_for_arm64
docs: added additional instructions for Apple arm64 chips
2 parents 1ce707a + a83ac51 commit 9ecea44

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,24 @@ arch -x86_64 asdf install java openjdk-13.0.2
152152
export JAVA_HOME=$HOME/.asdf/installs/java/openjdk-13.0.2
153153
```
154154

155+
---
156+
If `arch -x86_64` command shows error, e.g. `arch: posix_spawnp: asdf: Bad CPU type in executable`,
157+
you may need to launch a shell in the `x86_64` architecture, then run the asdf commands:
158+
```zsh
159+
env arch -x86_64 zsh --login
160+
```
161+
We can run `arch` command in terminal, and verify we're now in `i386` instead of `arm64`.
162+
163+
We can now do the installations in the x86 arch shell:
164+
```zsh
165+
asdf plugin-add java https://github.com/halcyon/asdf-java.git
166+
asdf install java openjdk-13.0.2
167+
```
168+
After installation finishes, we can `exit` the x86 shell, and set the `JAVA_HOME` environment variable
169+
```zsh
170+
export JAVA_HOME=$HOME/.asdf/installs/java/openjdk-13.0.2
171+
```
172+
155173
## Running Locally
156174
157175
### Running with sbt

0 commit comments

Comments
 (0)