DEV Community

Sigu Magwa
Sigu Magwa

Posted on • Updated on

Installing elm on arch linux

Install elm through npm as a global as instructed in Official Guides

$ npm i -g elm

At this point if you try invoke the elm-repl you are probably going to get the error as shown below

○ → elm-repl
/home/sigu/.nvm/versions/node/v8.6.0/lib/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm-repl: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

To work around this in arch Linux you need to link the libncurses library to the required library as shown below.

$ cd /usr/lib
$ sudo ln -s libncurses++w.so.6.0 libtinfo.so.5

Now doing elm-repl will work as expected

Top comments (2)

Collapse
 
stevensonmt profile image
stevensonmt

Just to update, I had to use:
sudo ln -s libncurses++w.so.6 libtinfo.so.5

The libncurses version seems to have gone up to 6.1 but just leaving it without the decimal seems to have worked for me.

Collapse
 
4nduril profile image
Tobias Barth

Thank you very much!