2020-06-08 13:55:34 +03:00
|
|
|
---
|
|
|
|
layout: developer-doc
|
|
|
|
title: Getting Enso
|
|
|
|
category: summary
|
|
|
|
tags: [contributing, installation]
|
|
|
|
order: 5
|
|
|
|
---
|
|
|
|
|
|
|
|
# Getting Enso
|
2020-07-21 15:59:40 +03:00
|
|
|
|
2021-01-06 11:57:02 +03:00
|
|
|
Enso packages are best obtained from the
|
|
|
|
[releases](https://github.com/enso-org/enso/releases) page of the repository.
|
|
|
|
Each release has an "Assets" section at the bottom. You can click on this to
|
|
|
|
view the list of artifacts from which you can download the most appropriate
|
|
|
|
version.
|
|
|
|
|
2024-07-16 17:30:23 +03:00
|
|
|
These assets contain bundles that include the `ensoup` updater, an engine
|
|
|
|
version, and GraalVM, allowing you to get up and running immediately.
|
|
|
|
Alternatively, you can download just the updater, which will handle downloading
|
|
|
|
and installing the required components for you.
|
2020-06-08 13:55:34 +03:00
|
|
|
|
|
|
|
<!-- MarkdownTOC levels="2,3" autolink="true" -->
|
|
|
|
|
2021-01-06 11:57:02 +03:00
|
|
|
- [Nightly Builds](#nightly-builds)
|
|
|
|
- [Dependencies](#dependencies)
|
|
|
|
- [Running Enso](#running-enso)
|
|
|
|
- [Troubleshooting](#troubleshooting)
|
2020-06-08 13:55:34 +03:00
|
|
|
|
|
|
|
<!-- /MarkdownTOC -->
|
|
|
|
|
2021-01-06 11:57:02 +03:00
|
|
|
## Nightly Builds
|
|
|
|
|
|
|
|
In addition to the official releases, we provide nightly snapshots built on our
|
|
|
|
CI. These can be obtained from
|
|
|
|
[the build workflow on GitHub Actions](https://github.com/enso-org/enso/actions?query=workflow%3A%22Engine+CI%22+branch%3Amain),
|
|
|
|
which should show a list of recent CI builds. The workflow of interest is
|
|
|
|
`Engine CI`. You can navigate to the most recent build, which will display a
|
|
|
|
list of attached artifacts. The artifact of interest is `enso-engine-<version>`
|
|
|
|
(currently `enso-engine-0.2.1-SNAPSHOT`).
|
|
|
|
|
|
|
|
### Dependencies
|
2020-07-21 15:59:40 +03:00
|
|
|
|
2020-06-08 13:55:34 +03:00
|
|
|
The Enso distribution requires to be run with the appropriate version of
|
|
|
|
GraalVM. You can get the Community Edition pre-built distributions from
|
|
|
|
[the GitHub releases site](https://github.com/graalvm/graalvm-ce-builds/releases).
|
|
|
|
It is important to run Enso with exactly the version specified here. Given that
|
|
|
|
Graal is still a relatively young project, even the minor version changes
|
2020-07-21 15:59:40 +03:00
|
|
|
introduce breaking API changes. The current version of GraalVM required for Enso
|
2020-08-28 14:03:09 +03:00
|
|
|
is `20.2.0`, and it must be the Java 11 build.
|
2020-06-08 13:55:34 +03:00
|
|
|
|
|
|
|
Before running the Enso packages, make sure that the `JAVA_HOME` environment
|
|
|
|
variable points to the correct home location of the Graal distribution.
|
|
|
|
|
2021-01-06 11:57:02 +03:00
|
|
|
### Running Enso
|
2020-07-21 15:59:40 +03:00
|
|
|
|
2021-01-06 11:57:02 +03:00
|
|
|
The nightly distribution contains the Enso CLI. It allows to create and run Enso
|
2020-12-09 16:58:11 +03:00
|
|
|
projects from the command line. To launch the Enso CLI, run the `bin/enso`
|
|
|
|
script (Linux and MacOS) or the `bin/enso.bat` script (Windows).
|
2020-06-24 14:05:31 +03:00
|
|
|
|
2020-06-08 13:55:34 +03:00
|
|
|
Again, it is necessary for you to set the `JAVA_HOME` variable correctly.
|
|
|
|
|
2021-01-06 11:57:02 +03:00
|
|
|
### Troubleshooting
|
2020-07-21 15:59:40 +03:00
|
|
|
|
2020-06-08 13:55:34 +03:00
|
|
|
This section lists the most common failures and their probable causes.
|
|
|
|
|
2020-07-21 15:59:40 +03:00
|
|
|
1. The exception
|
|
|
|
`java.lang.IllegalArgumentException: Could not find option with name enso-runtime-server.enable.`
|
2020-06-08 13:55:34 +03:00
|
|
|
It can contain a different option name. This exception signals problems with
|
|
|
|
the Graal distribution. Make sure you're running Enso with the correct
|
|
|
|
version of GraalVM. You can verify the version of JDK used by running
|
|
|
|
`bin/enso --version`. Take note of the version displayed in the `Running on`
|
|
|
|
section. It should be similar to:
|
2020-07-21 15:59:40 +03:00
|
|
|
|
2020-06-08 13:55:34 +03:00
|
|
|
```
|
2020-08-28 14:03:09 +03:00
|
|
|
Running on: OpenJDK 64-Bit Server VM, GraalVM Community, JDK 11.0.8+10-jvmci-20.2-b03
|
|
|
|
Linux 4.15.0-112-generic (amd64)
|
2020-06-08 13:55:34 +03:00
|
|
|
```
|
2020-07-21 15:59:40 +03:00
|
|
|
|
2020-06-08 13:55:34 +03:00
|
|
|
It could also be caused by not using the launcher scripts and trying to run
|
|
|
|
the component `.jar` files via `java -jar` without setting the necessary
|
2020-06-24 14:05:31 +03:00
|
|
|
options. Use the launcher scripts.
|