Mix error ubuntu 16.04

Hi,

I have followed the installation instructions for Ubuntu on https://elixir-lang.org/install.html#installing-erlang. But when I run iex -S mix, I get the following:

make: cmake: Command not found
c_lib/elixir.mk:6: recipe for target ‘priv/testunit’ failed
make: *** [priv/testunit] Error 127
** (Mix) Could not compile with “make” (exit status: 2).

Any ideas what might be wrong?

Thanks,
Link

Do you have cmake on your system?

sudo apt install cmake

https://packages.ubuntu.com/xenial/cmake

2 Likes

If You want development tools, You should install build-essential.

$ sudo apt-get install build-essential

While build-essential includes make (which already seemed to be working) strangely enough it doesn’t seem to include cmake - unless I’m missing something.

1 Like

I did have that, but did not help, as cmake was missing.