Elixir on Linux Mint 16

750 views
Skip to first unread message

Greg Knapp

unread,
Oct 30, 2014, 7:29:45 PM10/30/14
to elixir-l...@googlegroups.com
I've just installed Elixir using the instructions on the site and installing erlang-solutions_1.0_all.deb.

When I tried to load the repl I get:

 ~ iex
Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]


*** ERROR: Shell process terminated! (^G to start new job) ***


=ERROR REPORT==== 30-Oct-2014::23:24:48 ===
Error in process <0.27.0> with exit value: {{badmatch,{error,{crypto,{"no such file or directory","crypto.app"}}}},[{'Elixir.IEx',start_iex,0,[{file,"lib/iex.ex"},{line,469}]},{'Elixir.IEx','-start/2-fun-0-',2,[{file,"lib/iex.ex"},{line,455}]}]}



When I try to run a simple Hello world program:

 ~  cat simple.exs  
IO
.puts "Hello world
from Elixir"

 ~  elixir simple.exs
{"init terminating in do_boot",{{badmatch,{error,{crypto,{"no such file or directory","crypto.app"}}}},[{elixir,start_cli,0,[{file,"src/elixir.erl"},{line,56}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}


Crash dump was written to: erl_crash.dump
init terminating
in do_boot ()

I'm missing a crypto library?

Stuart Coyle

unread,
Oct 30, 2014, 7:38:48 PM10/30/14
to elixir-l...@googlegroups.com

I would guess that your Erlang has been built without OpenSSL.


--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Stuart Coyle
stuart dot coyle at gmail dot com


Riza Fahmi

unread,
Nov 3, 2014, 10:50:22 AM11/3/14
to elixir-l...@googlegroups.com
Hi Greg,

Did have similar problem when installing on mint 17. So then I decided compile both erlang and elixir and everything is ok. It's easy. Just follow the instruction by installing erlang first over here http://docs.basho.com/riak/latest/ops/building/installing/erlang/ 

Then installing elixir:
$ cd elixir 
$ make clean test

Last, don't forget to export the path: $ export PATH="$PATH:/path/to/elixir/bin"


That's it. Hope it helps.

--riza


--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
--riza

Rohit Aggarwal

unread,
Dec 1, 2014, 12:16:53 PM12/1/14
to elixir-l...@googlegroups.com
I had a similar problem to Mint 17.

I solved it first by installing erlang and not just erlang-base and then installing elixir.

So I did:

sudo apt-get install erlang
sudo
apt-get install elixir

Patric Hua

unread,
Mar 2, 2015, 2:29:12 PM3/2/15
to elixir-l...@googlegroups.com
I'm having trouble installing Elixir on Linux Mint 17. After trying what others have posted it, I still get an error. I did:

sudo apt-get install erlang
sudo apt
-get install elixir


I still get this error

E: Unable to locate package elixir

Eksperimental

unread,
Mar 2, 2015, 8:43:58 PM3/2/15
to elixir-l...@googlegroups.com
Hi Patric,
Did you add the erlang solutions repository?
if not follow the instructions given in
http://elixir-lang.org/install.html#unix-(and-unix-like)

if you did, please tell me the output of running
$ apt-cache policy | grep erlang

you can stil manually download the package from (but it won't be
updated as newer version are released):
http://packages.erlang-solutions.com/debian/pool/
> --
> You received this message because you are subscribed to the Google
> Groups "elixir-lang-talk" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to elixir-lang-ta...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-talk/6dd19744-ff64-4639-a8fa-3b263e819caf%40googlegroups.com.

Patric Hua

unread,
Mar 2, 2015, 8:57:35 PM3/2/15
to elixir-l...@googlegroups.com, eksper...@autistici.org
I added the erlang solutions repository. I still get the error message.

After running apt-cache policy, I get the following output.

 999 http://binaries.erlang-solutions.com/debian/ squeeze/contrib i386 Packages
 999 http://binaries.erlang-solutions.com/debian/ squeeze/contrib amd64 Packages

Eksperimental

unread,
Mar 2, 2015, 9:13:21 PM3/2/15
to elixir-l...@googlegroups.com
could you send the error messages you get when you run $sudo apt-get
update ?

it's weird that in the repositories, both i386 and amd64 sources are
listed. (I'm running ubuntu, so it could be different in mint)

I have noticed there is no release for Elixir for Debian Squeeze in
http://packages.erlang-solutions.com/debian/pool/
> https://groups.google.com/d/msgid/elixir-lang-talk/b16d5c62-4c8f-4503-9ce0-b07a3b9e2942%40googlegroups.com.

Patric Hua

unread,
Mar 2, 2015, 9:18:34 PM3/2/15
to elixir-l...@googlegroups.com, eksper...@autistici.org
I don't get any error message when I run apt-get update.

Eksperimental

unread,
Mar 2, 2015, 9:22:38 PM3/2/15
to elixir-l...@googlegroups.com
well, it's just because earlang-solutions has not released any package
for Debian Squeeze,
so maybe you can ask them to do it,
and/or you can upgrade to Wheezy

Just a correction on what i said earlier,
getting both repos (i386 and amd64) is normal for amd64 systems.
> https://groups.google.com/d/msgid/elixir-lang-talk/c29b19b6-1ec9-410d-b447-2dc75b541898%40googlegroups.com.

Renan Ranelli

unread,
Mar 2, 2015, 9:25:47 PM3/2/15
to elixir-l...@googlegroups.com
In ubuntu 12.04 I've had to download the dpkg file in erlang solutions site. 

Check the elixir target in my makefile: 

Patric Hua

unread,
Mar 2, 2015, 9:34:15 PM3/2/15
to elixir-l...@googlegroups.com, eksper...@autistici.org
Thanks for the help.

Eksperimental

unread,
Mar 2, 2015, 9:38:42 PM3/2/15
to elixir-l...@googlegroups.com
sorry, it's mentioned in the install page "Debian 7" (wheezy), I just
read that.
You can still run it from a precompiled version
http://elixir-lang.org/install.html#precompiled-package

or clone from github and compile it yourself
http://elixir-lang.org/install.html#compiling-from-source-(unix-and-mingw)

All the best!
> https://groups.google.com/d/msgid/elixir-lang-talk/ea8dd907-5808-4a07-8724-3abd452b3d68%40googlegroups.com.
Message has been deleted

Kosmas Chatzimichalis

unread,
Mar 3, 2015, 8:40:52 AM3/3/15
to elixir-l...@googlegroups.com
14:37 (1 minute ago)
Maybe not exactly a solution to your problem, but there is a different way to use Elixir.

I'm using Ubuntu and also an Elixir Docker image, with a shared folder for the code.
That way I can use different versions of elixir by using a different container, without having to install anything on the host (machine).

And this seems to be the image that is updated very often:

https://registry.hub.docker.com/u/trenpixster/elixir/

If you are interested I would be more than happy to let you know about the additional steps.

Eksperimental

unread,
Mar 3, 2015, 8:41:13 AM3/3/15
to elixir-l...@googlegroups.com
Hi Kosmasc,
I'm interested, since I would like to know how to run different version
in running different versions of elixir

Cheers

On Tue, Mar 3, 2015 at 8:37 PM, Kosmas Chatzimichalis
<kos...@gmail.com> wrote:
> Maybe not exactly a solution to your problem, but there is a
> different way to use Elixir.
>
> I'm using Ubuntu and also an Elixir Docker image, with a shared
> folder for the code.
> That way I can use different versions of elixir by using a different
> container, without having to install anything on the host (machine).
>
> And this seems to be the image that is updated very often:
>
> https://registry.hub.docker.com/u/trenpixster/elixir/
>
> If you are interested I would be more than happy to let you about the
> additional steps.
> --
> You received this message because you are subscribed to the Google
> Groups "elixir-lang-talk" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to elixir-lang-ta...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-talk/faf75acd-3f45-417d-9ef2-2e18ce91ec3e%40googlegroups.com.

Kosmas Chatzimichalis

unread,
Mar 3, 2015, 9:11:33 AM3/3/15
to elixir-l...@googlegroups.com, eksper...@autistici.org


On Tuesday, 3 March 2015 14:41:13 UTC+1, Eksperimental wrote:
Hi Kosmasc,
I'm interested, since I would like to know how to run different version
in running different versions of elixir

Here's a quick post with information of how to do it.
If there's anything that does not work or is missing let me know.

http://www.42.mach7x.com/2015/03/03/using-elixir-with-docker/

Hope it helps.
Reply all
Reply to author
Forward
0 new messages