Erlang R12-B4 from Source Ubuntu 8.04 Server

From Erlang Community

(Difference between revisions)
Revision as of 13:49, 19 September 2008 (edit)
Myst3k (Talk | contribs)

← Previous diff
Revision as of 13:50, 19 September 2008 (edit) (undo)
Myst3k (Talk | contribs)
m
Next diff →
Line 10: Line 10:
Linux saturn14 2.6.24-19-server #1 SMP Wed Aug 20 23:54:28 UTC 2008 i686 GNU/Linux Linux saturn14 2.6.24-19-server #1 SMP Wed Aug 20 23:54:28 UTC 2008 i686 GNU/Linux
</code> </code>
 +
==Installation== ==Installation==
Line 56: Line 57:
2> 2>
</code> </code>
 +
[[Category:HowTo]] [[Category:HowTo]]

Revision as of 13:50, 19 September 2008

Author

myst3k

Overview

I do not know much about Erlang yet. This is how I figured out to install the latest source on Ubuntu 8.04 Server. I installed it into /opt to make it easier to upgrade in the future. Currently I am doing this in a clean install Ubuntu on VMware which is fully upgraded.

uname -a
Linux saturn14 2.6.24-19-server #1 SMP Wed Aug 20 23:54:28 UTC 2008 i686 GNU/Linux


Installation

1. Install the tools necessary to configure and build Erlang

sudo apt-get install build-essential libncurses5-dev m4

1. (Optional) Enables openssl support

sudo apt-get install openssl libssl-dev

1. (Optional) Enables java suport

sudo apt-get install sun-java6-jdk

2. Creates installation directory, installing to /opt for ease of upgrade and I like my files in a single spot

sudo mkdir -p /opt/erlang

3. Download and extract Erlang

wget http://www.erlang.org/download/otp_src_R12B-4.tar.gz
tar -xzvf otp_src_R12B-4.tar.gz
cd otp_src_R12B-4

4. Configure with threads, smp, kernel polling, and hipe(??)

./configure --enable-threads \
--enable-smp-support \
--enable-kernel-poll \
--enable-hipe \
--prefix=/opt/erlang

5. Builds and installs Erlang

make
sudo make install

6. Creates links to binary files into normal paths for easy execution

for file in erl erlc epmd run_erl to_erl dialyzer typer escript; do
sudo ln -s /opt/erlang/lib/erlang/bin/$file /usr/bin/$file;
done

7. Test installation

erl
Erlang (BEAM) emulator version 5.6.4 [source] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.6.4  (abort with ^G)
1> q().
ok
2>
Erlang/OTP Projects
Personal tools