Saturday, April 27, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 4336  / 3 Years ago, mon, october 11, 2021, 4:43:50

How can I install Elixir on Ubuntu 13.04 so that I can easily use it from the command line and update it easily by cloning git.



I have installed Erlang 16 by getting package from here Erlang Downloads



There is a source elixir git here https://github.com/elixir-lang/elixir I can clone it and use it by navigating to the bin directory but how do I set it up so it is available to the system from bash?


More From » package-management

 Answers
1

Add the bin directory from your clone to your PATH.



For example, if the git clone is in your home directory, use:



export PATH=~/elixir/bin:$PATH


Although looking at the source, it looks like what you should really be doing is installing it:



$ cd ~/elixir
$ git pull
$ make
$ sudo make install


This will install elixir in /usr/local/bin, which should already be on your PATH.


[#29972] Tuesday, October 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
overine

Total Points: 20
Total Questions: 109
Total Answers: 98

Location: Aruba
Member since Fri, Jun 24, 2022
2 Years ago
overine questions
Tue, Jul 12, 22, 00:27, 2 Years ago
Wed, Jan 11, 23, 02:15, 1 Year ago
Tue, Aug 10, 21, 01:39, 3 Years ago
;