Compiling Erlang on Ubuntu

桃扇骨 2022-06-12 14:43 274阅读 0赞

For playing with distributed stuff, I’m using a bunch of Ubuntu ‘machines’ running under VMWare Server. There’s no particular reason for using Ubuntu other than that I happened to have a VM image (Ubuntu-6.06.1-desktop-i386) kicking around already, and it’s not really necessary to compile as packages are available, but I prefer it that way. Anyway, for reference, here is a quick guide to compiling Erlang from the starting point of a basic Ubuntu installation:

  1. From your home directory, get the Erlang source: wget http://www.erlang.org/download/otp\_src\_R11B-5.tar.gz
  2. Unpack it: tar -xzf otp_src_R11B-5.tar.gz
  3. Get a working gcc: sudo apt-get install build-essential
  4. Get the ncurses development libraries: sudo apt-get install libncurses5-dev
  5. Get m4: sudo apt-get install m4
  6. Optionally, get the ssl libraries: sudo apt-get install libssl-dev
  7. Go into the erlang source directory: cd otp_src_R11B-5
  8. Run the configuration script: ./configure
  9. Compile it all: make
  10. Install it: sudo make install

The above should all go smoothly, leaving you with a working Erlang setup. To confirm this, type erl to get an Erlang prompt.

文章转自:http://ciarang.com/posts/compiling-erlang-on-ubuntu

发表评论

表情:
评论列表 (有 0 条评论,274人围观)

还没有评论,来说两句吧...

相关阅读

    相关 ubuntu安装erlang

    第1步 - 添加存储库 首先,使用以下命令在您的系统上添加erlang apt存储库。 您可以简单地从其官方网站下载erlang存储库包并安装到您的系统上。 $