curl -L https://github.com/dmy/elm-raspberry-pi/releases/latest/download/elm.tar.gz | sudo tar zxC /usr/local/bin
The last release includes:
elm-test
)See Releases to install specific older versions.
If you have an aarch64 system with a 64 bits operating system, you will need 32 bits compatibility libraries and kernel option.
Please report any success or failure on others Arm platforms.
$ sudo rm /usr/local/bin/elm{,-format,-json,i-to-json}
To use Elm tools like elm-test or
elm-doc-preview,
you will need Node.js.
The following command will install Node.js v10 and npm
:
sudo apt-get update
sudo apt-get install nodejs npm
It is advised to configure npm to store packages in a user directory.
Add to ~/.bashrc
:
NPM_PACKAGES="$HOME/.npm-packages"
export PATH="$NPM_PACKAGES/bin:$PATH"
# Unset manpath so we can inherit from /etc/manpath via the `manpath` command
unset MANPATH # delete if you already modified MANPATH elsewhere in your configuration
export MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
unset NPM_PACKAGES
and run
npm config set prefix ~/.npm-packages
Then logout/login.
You probably want to update to the latest npm version at this point:
npm install -g npm@latest
Then logout/login again.
You can install elm-test
globally:
npm install -g elm-test --ignore-scripts
But it won't run without an elmi-to-json
binary suitable for the platform,
which is not available upstream.
So we will make a link, in the expected location, to the one provided by this release:
ln -sft $(npm config get prefix)/lib/node_modules/elm-test/node_modules/elmi-to-json/bin /usr/local/bin/elmi-to-json
As these binaries are unofficial, please always confirm a bug on a platform officially supported before opening an issue at the official repositories.
If you are not sure or if the bug is specific to ARM, report it here instead.
On Raspbian GNU/Linux 10 Buster:
sudo apt-get install ghc cabal-install
git am
cabal new-update
cabal new-configure --ghc-option=-split-sections
cabal new-build
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone https://github.com/zwilias/elm-json.git
cd elm-json
cargo build --release
All elm/core
tests pass successfully:
elm-test 0.19.1
---------------
Running 1268 tests. To reproduce these results, run: elm-test --fuzz 100 --seed 132427106450815 /home/pi/dev/core/tests/tests/Main.elm
TEST RUN PASSED
Duration: 31305 ms
Passed: 1268
Failed: 0