Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

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.

share|improve this answer
    
So to update do I just repeat that process everytime pull, make, make install? –  sayth Aug 13 '13 at 10:34
    
Yes, that will get you to the latest version in git each time. –  David Purdue Aug 13 '13 at 22:42
    
Don't forget to do make clean test if you updated from master, because it can be broken or old compiled libs can interact the new build –  Vestel Mar 4 at 18:33
add comment

There is also a PPA available. The following steps have been tested successfully on Ubuntu 13.10 (Saucy), but should work on Raring and Precise without any modification:

For Erlang (see https://packages.erlang-solutions.com/erlang/):

  • Add repository:

    wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
    sudo dpkg -i erlang-solutions_1.0_all.deb
    
  • Install package:

    sudo apt-get update
    sudo apt-get install erlang
    

For Elixir:

  • Add repository:

    sudo apt-add-repository ppa:bigkevmcd/elixir
    
  • Install package:

    sudo apt-get update
    sudo apt-get install elixir
    
share|improve this answer
    
the ppa repo is no longer available, fund a new one ppa:tsutsu/elixir –  Feng Jul 10 at 1:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.