Skip to content

Instantly share code, notes, and snippets.

@bryanhunter
Last active October 6, 2024 03:47
Show Gist options
  • Select an option

  • Save bryanhunter/10380945 to your computer and use it in GitHub Desktop.

Select an option

Save bryanhunter/10380945 to your computer and use it in GitHub Desktop.

Revisions

  1. bryanhunter revised this gist Apr 10, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build-erlang-17.0.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # Pull this file down, make it executable and run it with sudo
    # wget https://gist.github.com/bryanhunter/10380945/raw/build-erlang-17.0.sh
    # chmod u+x build-erlang-17.0.sh
    # sudo ./build-erlang--17.0.sh
    # sudo ./build-erlang-17.0.sh

    if [ $(id -u) != "0" ]; then
    echo "You must be the superuser to run this script" >&2
  2. bryanhunter revised this gist Apr 10, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build-erlang-17.0.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash
    # Pull this file down, make it executable and run it with sudo
    # wget https://gist.github.com/bryanhunter/10380945/raw/build-erlang-17.0.sh
    # wget https://gist.githubusercontent.com/bryanhunter/10380945/raw/build-erlang-17.0.sh
    # chmod u+x build-erlang-17.0.sh
    # sudo ./build-erlang--17.0.sh

  3. bryanhunter revised this gist Apr 10, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion build-erlang-17.0.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash
    # Pull this file down, make it executable and run it with sudo
    # wget https://gist.github.com/bryanhunter/ZZZZ/raw/build-erlang-17.0.sh
    # wget https://gist.github.com/bryanhunter/10380945/raw/build-erlang-17.0.sh
    # chmod u+x build-erlang-17.0.sh
    # sudo ./build-erlang--17.0.sh

  4. bryanhunter created this gist Apr 10, 2014.
    47 changes: 47 additions & 0 deletions build-erlang-17.0.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,47 @@
    #!/bin/bash
    # Pull this file down, make it executable and run it with sudo
    # wget https://gist.github.com/bryanhunter/ZZZZ/raw/build-erlang-17.0.sh
    # chmod u+x build-erlang-17.0.sh
    # sudo ./build-erlang--17.0.sh

    if [ $(id -u) != "0" ]; then
    echo "You must be the superuser to run this script" >&2
    exit 1
    fi
    apt-get update

    # Install the build tools (dpkg-dev g++ gcc libc6-dev make)
    apt-get -y install build-essential

    # automatic configure script builder (debianutils m4 perl)
    apt-get -y install autoconf

    # Needed for HiPE (native code) support, but already installed by autoconf
    # apt-get -y install m4

    # Needed for terminal handling (libc-dev libncurses5 libtinfo-dev libtinfo5 ncurses-bin)
    apt-get -y install libncurses5-dev

    # For building with wxWidgets
    apt-get -y install libwxgtk2.8-dev libgl1-mesa-dev libglu1-mesa-dev libpng3

    # For building ssl (libssh-4 libssl-dev zlib1g-dev)
    apt-get -y install libssh-dev

    # ODBC support (libltdl3-dev odbcinst1debian2 unixodbc)
    apt-get -y install unixodbc-dev
    mkdir -p ~/code/erlang
    cd ~/code/erlang

    if [ -e otp_src_17.0.tar.gz ]; then
    echo "Good! 'otp_src_17.0.tar.gz' already exists. Skipping download."
    else
    wget http://www.erlang.org/download/otp_src_17.0.tar.gz
    fi
    tar -xvzf otp_src_17.0.tar.gz
    chmod -R 777 otp_src_17.0
    cd otp_src_17.0
    ./configure
    make
    make install
    exit 0