You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started/graalvm-enterprise/oci/compute-instances.md
+71-35Lines changed: 71 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,6 @@ For more details, refer to the [Connecting to Your Linux Instance Using SSH](ht
33
33
1. Having connected to the instance, verify which GraalVM Enterprise RPMs are available for the installation, narrowing down the search to the latest release, and Java 11.
34
34
35
35
```shell
36
-
yum check-update
37
36
sudo yum provides graalvm22-ee-11-jdk
38
37
```
39
38
The resulting list includes both current and previous versions of all of the core package and additional features.
@@ -44,62 +43,98 @@ For example, to install the latest version of "Oracle GraalVM Enterprise Edition
44
43
```shell
45
44
sudo yum install graalvm22-ee-11-jdk
46
45
```
47
-
The dependent packages, e.g., `libpolyglot`, `llvm` and so on, will also be resolved.
46
+
Confirm if the installed package size is okay by typing `yes` at the prompt.
47
+
It will install the latest version of **graalvm22-ee-11-jdk** which includes the JVM runtime, the Graal compiler, and all dependent packages, for example, `libpolyglot`, `llvm`, etc.
48
48
49
-

49
+
After the installation, the GraalVM Enterprise binary is placed in _/usr/lib64/graalvm_. You can check this with:
50
50
51
-
After the installation, the GraalVM Enterprise binary is placed in _/usr/lib64/graalvm_.
52
-
53
-
3. Set up environment variables to point to the GraalVM Enterprise directory.
54
-
55
-
- Configure the `PATH` and `JAVA_HOME` environment variables in the bash configuration to point to GraalVM Enterprise for this SSH session with the following commands:
3. Configure environment variables to point to the GraalVM Enterprise installation for this SSH session. After the installation, the package files are placed in the `/usr/lib64/graalvm` directory, and binaries in `bin` accordingly.
56
+
57
+
- Set the `PATH` and `JAVA_HOME` environment variables in the bash configuration to point to GraalVM Enterprise with the following commands:
- Verify the values of `PATH` and `JAVA_HOME` to check if the change was successful:
65
-
```shell
66
-
echo$JAVA_HOME
67
-
echo$PATH
68
-
```
69
67
70
-
Now you have a ready-to-go VM instance with GraalVM Enterprise installed and ready to use.
68
+
```shell
69
+
source~/.bashrc
70
+
```
71
+
72
+
- Verify the values of `PATH` and `JAVA_HOME` to check if it was successful:
73
+
74
+
```shell
75
+
echo$JAVA_HOME
76
+
echo$PATH
77
+
```
78
+
79
+
Now you have a ready-to-go VM instance with GraalVM Enterprise installed.
71
80
72
81
## Install Additional Features
73
82
74
-
1. Check what additional features are available for your current GraalVM Enterprise version:
83
+
GraalVM Enterprise is shipped with core components (to save the filesize) and can be extended with more features on demand. For example, you can install Native Image, the Node.js runtime, the LLVM toolchain, etc. Find information on available features [here](https://docs.oracle.com/en/graalvm/enterprise/22/docs/overview/architecture/).
84
+
85
+
To add additional features to GraalVM Enterprise, use the `yum install <package_name>` command.
86
+
87
+
1. Check what additional features are available for your current GraalVM Enterprise installation:
75
88
76
89
```shell
77
-
yum check-update
78
90
sudo yum provides graalvm22*
79
91
```
80
-
81
-
2. Look up the necessary RPM package name and add it to GraalVM Enterprise with the `yum install <package_name> command` command.
82
-
For example, to install [Native Image](../../../reference-manual/native-image/README.md), which is a technology to turn your Java application into a standalone native executable, run this command:
92
+
The printed list is enormous. If you are interested in a particular component, for example, the Python runtime, narrow down the search providing the exact package name:
83
93
84
94
```shell
85
-
sudo yum install graalvm22-ee-11-native-image
95
+
sudo yum provides graalvm21-ee-11-python*
86
96
```
87
-
All required dependencies will be automatically installed:
88
97
89
-

98
+
2. Install the component to GraalVM Enterprise with the `yum install <package_name> command` command. To install the Python runtime, run:
90
99
91
-
> **Note:** To add Native Image to GraalVM Enterprise on Oracle Linux 8, currently run these commands:
For Linux images with `dnf` or `microdnf` default package managers, run:
103
+
Confirm if the installed package size is okay by typing `yes` at the prompt.
104
+
105
+
### Install Native Image
106
+
107
+
[Native Image](../../../reference-manual/native-image/README.md) is a technology to turn your Java application into a standalone native executable and has to be installed to GraalVM Enterprise core installation.
108
+
109
+
110
+
1. Search for Native Image PRMs available for your installation:
111
+
98
112
```shell
99
-
dnf update -y oraclelinux-release-el8
100
-
dnf --enablerepo ol8_codeready_builder
101
-
dnf install graalvm22-ee-11-native-image
113
+
sudo yum provides graalvm21-ee-11-native-image*
102
114
```
115
+
2. Install Native Image using the `yum install <package_name> command` command. All required dependencies will be automatically resolved.
116
+
117
+
- On Oracle Linux 7.9, run:
118
+
```shell
119
+
sudo yum install graalvm22-ee-11-native-image
120
+
```
121
+
Confirm if the installed package size is okay by typing `yes` at the prompt.
122
+
123
+
- On Oracle Linux 8, run these commands one by one:
0 commit comments