Fun With: RabbitMQ and Elixir
Elixir is Erlang, RabbitMQ is Erlang ZOMG this should be amazing
So to cut a fairly dull story short. This is what to do
- Do not upgrade your ubuntu distro to latest and expect all to be funky dory - you lose 3rd party repos etc.
- Do not go onto rabbit page and install Erlang there. Instead
apt install esl-erlang
- May as well finish installing Elixir from here
- Then install RabbitMQ-Server
apt install rabbitmq-server
- Follow instructions to setup the management ui plugin and start/enable the service.
- You can now start the tutorials (and have a hope of success)
HAHA I lied
(The tutorials will fail with the following error)
/deps/rabbit_common/.erlang.mk/hex/lager.tar: Cannot open: No such file or directory
WTF is lager?
Lager is a logging framework for Erlang. Add it as a dependency in you elixir project
defp deps do
[
{:amqp, "~> 1.0"},
{:lager, "~> 3.5"}
]
end
Now you can run stuff
iex -S mix