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
+89-44Lines changed: 89 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -18,22 +18,24 @@ To replicate the steps in this guide, [create a compute VM instance and connect
18
18
19
19
## Install GraalVM Enterprise
20
20
21
-
For convenient installation, GraalVM Enterprise RPMs have been made available in the OCI YUM repository.
21
+
For convenience, GraalVM Enterpriise RPMs are available in the Oracle YUM repository.
22
+
Each RPM is self-contained and will automatically pull in all the required dependencies.
23
+
22
24
That means that OCI customers can use the GraalVM Enterprise environment in their cloud instances by installing it with `yum` - a package-management utility for the Linux operating systems.
23
25
24
-
For demonstration purposes, a demo-instance of the **VM.Standard.E4.Flex** shape with the **Oracle Linux 7.9** pre-built image was created.
25
-
The following SSH command is then used to connect to a Linux instance from a Unix-style system:
26
-
```shell
27
-
ssh -i .ssh/id_rsa opc@INSTANCE_PUBLIC_IP
28
-
```
26
+
The following instructions have been tested on an OCI Compute Instance with **Oracle Linux 7.9** and **VM.Standard.E4.Flex** with 1 OCPU and 16 GB RAM.
27
+
Use the following command to connect to the OCI Compute Instance from a Unix-style system:
28
+
29
+
```shell
30
+
ssh -i .ssh/id_rsa opc@INSTANCE_PUBLIC_IP
31
+
```
29
32
30
-
In this instance, `.ssh/id_rsa` is the full path and name of the file containing the private SSH key, `opc` is the default name for the Oracle Linux image, and `INSTANCE_PUBLIC_IP` is the instance IP address provisioned from the console.
33
+
The `.ssh/id_rsa` part is the full path and name of the file containing the private SSH key, `opc` is the default name for the Oracle Linux image, and `INSTANCE_PUBLIC_IP` is the instance IP address provisioned from the console.
31
34
For more details, refer to the [Connecting to Your Linux Instance Using SSH](https://docs.cloud.oracle.com/iaas/Content/GSG/Tasks/testingconnection.htm) tutorial.
32
35
33
36
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
37
35
38
```shell
36
-
yum check-update
37
39
sudo yum provides graalvm22-ee-11-jdk
38
40
```
39
41
The resulting list includes both current and previous versions of all of the core package and additional features.
@@ -44,62 +46,104 @@ For example, to install the latest version of "Oracle GraalVM Enterprise Edition
44
46
```shell
45
47
sudo yum install graalvm22-ee-11-jdk
46
48
```
47
-
The dependent packages, e.g., `libpolyglot`, `llvm` and so on, will also be resolved.
49
+
Confirm if the installed package size is okay by typing `yes` at the prompt.
50
+
It will install the latest version of **graalvm22-ee-11-jdk** which includes the JVM runtime with the Graal compiler.
48
51
49
-

52
+
After the installation, the GraalVM Enterprise binary is placed in _/usr/lib64/graalvm_. You can check this with:
50
53
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.
59
+
60
+
- 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
70
70
-
Now you have a ready-to-go VM instance with GraalVM Enterprise installed and ready to use.
71
+
```shell
72
+
source~/.bashrc
73
+
```
74
+
75
+
- Verify the values of `PATH` and `JAVA_HOME`:
76
+
77
+
```shell
78
+
echo$JAVA_HOME
79
+
echo$PATH
80
+
```
81
+
- Run the following command to confirm the version of GraalVM Enterprise JDK installed:
82
+
83
+
```shell
84
+
java -version
85
+
```
86
+
87
+
Now you have a ready-to-go VM instance with GraalVM Enterprise installed.
71
88
72
89
## Install Additional Features
73
90
74
-
1. Check what additional features are available for your current GraalVM Enterprise version:
91
+
GraalVM Enterprise consists of different features and components - JDK, Native Image, Python runtime, Node.js runtime, LLVM toolchain, etc. - each of which can be installed separately or as an add-on to an existing component.
92
+
See [Distribution Components List](https://docs.oracle.com/en/graalvm/enterprise/22/docs/overview/architecture/#distribution-components-list) for more information.
93
+
94
+
To add additional features to GraalVM Enterprise, use the `yum install <package_name>` command.
95
+
96
+
1. Check what additional features are available for your current GraalVM Enterprise installation:
75
97
76
98
```shell
77
-
yum check-update
78
99
sudo yum provides graalvm22*
79
100
```
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:
101
+
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
102
84
103
```shell
85
-
sudo yum install graalvm22-ee-11-native-image
104
+
sudo yum provides graalvm22-ee-11-python*
86
105
```
87
-
All required dependencies will be automatically installed:
88
106
89
-

107
+
2. Install the component to GraalVM Enterprise with the `yum install <package_name> command` command. To install the Python runtime, run:
90
108
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:
112
+
Confirm if the installed package size is okay by typing `yes` at the prompt.
113
+
114
+
### Install Native Image
115
+
116
+
[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.
117
+
118
+
119
+
1. Search for Native Image PRMs available for your installation:
120
+
98
121
```shell
99
-
dnf update -y oraclelinux-release-el8
100
-
dnf --enablerepo ol8_codeready_builder
101
-
dnf install graalvm22-ee-11-native-image
122
+
sudo yum provides graalvm22-ee-11-native-image*
102
123
```
124
+
2. Install Native Image using the `yum install <package_name> command` command. All required dependencies will be automatically resolved.
125
+
126
+
- On Oracle Linux 7.9, run:
127
+
```shell
128
+
sudo yum install graalvm22-ee-11-native-image
129
+
```
130
+
Confirm if the installed package size is okay by typing `yes` at the prompt.
131
+
132
+
- On Oracle Linux 8, run these commands one by one:
Confirm if the installed package size is okay by typing `yes` at the prompt.
139
+
140
+
- On Oracle Linux 8 with `dnf` or `microdnf` default package managers, run these commands one by one:
141
+
```shell
142
+
dnf update -y oraclelinux-release-el8
143
+
dnf --enablerepo ol8_codeready_builder
144
+
dnf install graalvm22-ee-11-native-image
145
+
```
146
+
Confirm if the installed package size is okay by typing `yes` at the prompt.
103
147
104
148
## Update GraalVM Enterprise
105
149
@@ -118,15 +162,16 @@ The `yum` package manager for Oracle Linux can be used to update an existing Gra
118
162
java -version
119
163
```
120
164
121
-
The **graalvm22-ee-17-jdk** package is installed alongside **graalvm21-ee-11-jdk** in the _/usr/lib64/graalvm_ directory. Note that regardless the version printed to the console, the `PATH` and `JAVA_HOME` environment variables still point to the old version. Reset the variables as described in [Install GraalVM Enterprise](#install-graalvm-enterprise), step 3.
165
+
The **graalvm22-ee-17-jdk** package is installed alongside **graalvm22-ee-11-jdk**in the _/usr/lib64/graalvm_ directory. Note that regardless the version printed to the console, the `PATH` and `JAVA_HOME` environment variables still point to the old version. Reset the variables as described in [Install GraalVM Enterprise](#install-graalvm-enterprise), step 3.
122
166
123
167
### Note on `yum upgrade`
124
168
125
169
The `yum upgrade`command can be used to update on the same year package line, for example, to upgrade from GraalVM Enterprise 22.0.0 to version 22.0.1 when this RPM package becomes available:
126
170
127
171
```shell
128
-
sudo yum upgrade graalvm22-ee-17-jdk
172
+
sudo yum upgrade graalvm22-ee-11-jdk
129
173
```
174
+
As there are no newer package available, you will see the `No packages marked for update` message.
130
175
131
176
It will update the whole system and remove the obsolete GraalVM Enterprise installation.
0 commit comments