Skip to content

Commit a426f60

Browse files
Automatic merge of master into galahad
2 parents b26998f + ee49ef2 commit a426f60

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

docs/getting-started/linux.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,25 @@ curl https://download.oracle.com/graalvm/<version>/latest/graalvm-jdk-<version>_
7171
curl https://download.oracle.com/java/<version>/archive/jdk-<version>_linux-<architecture>_bin.tar.gz
7272
```
7373

74-
For other installation options, visit the [GraalVM Downloads page](https://www.graalvm.org/downloads/){:target="_blank"}.
74+
For other installation options, visit the [GraalVM Downloads page](https://www.graalvm.org/downloads/){:target="_blank"}.
75+
76+
## Prerequisites for Native Image on Linux
77+
78+
Native Image depends on the local toolchain (header files for the C library, `glibc-devel`, `zlib`, `gcc`, and/or `libstdc++-static`).
79+
These dependencies can be installed (if not yet installed) using a package manager on your Linux machine.
80+
81+
On **Oracle Linux** use the `yum` package manager:
82+
```shell
83+
sudo yum install gcc glibc-devel zlib-devel
84+
```
85+
Some Linux distributions may additionally require `libstdc++-static`.
86+
You can install `libstdc++-static` if the optional repositories are enabled (_ol7_optional_latest_ on Oracle Linux 7, _ol8_codeready_builder_ on Oracle Linux 8, and _ol9_codeready_builder_ on Oracle Linux 9).
87+
88+
On **Ubuntu Linux** use the `apt-get` package manager:
89+
```shell
90+
sudo apt-get install build-essential zlib1g-dev
91+
```
92+
On **other Linux distributions** use the `dnf` package manager:
93+
```shell
94+
sudo dnf install gcc glibc-devel zlib-devel libstdc++-static
95+
```

docs/getting-started/macos.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ curl https://download.oracle.com/java/<version>/archive/jdk-<version>_macos-<arc
8080

8181
For other installation options, visit the [GraalVM Downloads page](https://www.graalvm.org/downloads/){:target="_blank"}.
8282

83+
## Prerequisites for Native Image on macOS
84+
85+
Native Image requires the Xcode command line tools.
86+
To install them, run:
87+
```shell
88+
xcode-select --install
89+
```
90+
8391
## Installation Notes
8492

8593
### On JAVA_HOME Command

0 commit comments

Comments
 (0)