Last active
May 22, 2022 12:02
-
-
Save bryanhunter/10380945 to your computer and use it in GitHub Desktop.
Build Erlang 17.0 on a fresh Ubuntu box (tested on 12.04 and 14.04)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Pull this file down, make it executable and run it with sudo | |
# 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 | |
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 |
hi,
even i tried the setup as instructed. but now i wanted to know to move forward with mysql configuration.and what all necessary things are to installed for mysql configuration
@storefolks a little late to the party but if you do $ touch lib/wx/SKIP
inside otp_erlang source code before compiling it, it will skip the wx libs, which I believe are unstable and on a server should be irrelevant.
For the latest Ubuntu package names/versions changed to:
apt-get -y install libwxgtk3.0-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev
Works like a gem
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Really thanks, saved me much time