Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

Install ELP

The easiest way to install to ELP isfrom binary. It is alsopossible to compile itfrom source.

From Binary

Visit ourreleases pageand download theelp tarball for the latest releases.

Packages are available in theAssets section below each release. Each tarballname has the format:

elp-[OS]-[ARCH]-[c]-otp-[OTP_VERSION].tar.gz

Pick the appropriate version according to your Operating System (OS),Architecture (ARCH) and Erlang/OTP version (OTP_VERSION). For example, for myDarwin MacBook Pro where I have installed Erlang/OTP 25, I will pick:

elp-macos-x86_64-apple-darwin-otp-25.3.tar.gz
tip

Unsure about your architecture? Try theuname -a command. Unsure about yourErlang/OTP version? Tryerl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell

Untar the package and place theelp binary in a place visible by your `PATH``.For example:

cd ~/Downloads
tar -xvzf elp-macos-x86_64-apple-darwin-otp-25.3.tar.gz
mv elp ~/bin
export PATH=$PATH:~/bin

Followthese steps to verify ELP iscorrectly installed.

From Source

Clone the ELP repository, including submodules:

git clone --recurse-submodules https://github.com/WhatsApp/erlang-language-platform.git
cd erlang-language-platform

Enter theeqwalizer submodule and build it. Notice the doubleeqwalizer inthepushd command.

pushd eqwalizer/eqwalizer
sbt assembly
popd

Point theELP_EQWALIZER_PATH environment variable to the path of the producedeqwalizer.jar file:

export ELP_EQWALIZER_PATH=$(find "$(pwd)" -name eqwalizer.jar)

Point theEQWALIZER_DIR environment variable to the path of theeqwalizer_support directory:

export EQWALIZER_DIR=$(find "$(pwd)" -name eqwalizer_support)

Now we can compile ELP:

tip

The commands below will produce a release build, which has the best runtimeperformance, at the price of a slower compilation time. If you are developingELP, consider usingcargo build --profile release-thin, as it provides a muchfaster development loop while still producing a performant binary. You will findthe corresponding binary intarget/release-thin/elp.

cargo build --release

The produced executable will be available in:target/release/elp, so ensure itis included in yourPATH. E.g.:

mkdir -p ~/bin
mv target/release/elp ~/bin
export PATH=$PATH:~/bin

[8]ページ先頭

©2009-2025 Movatter.jp