Skip to content

Instantly share code, notes, and snippets.

@ten0s
Created October 12, 2015 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ten0s/51c7179376d9b032592a to your computer and use it in GitHub Desktop.
Save ten0s/51c7179376d9b032592a to your computer and use it in GitHub Desktop.
setup
vagrant init ubuntu/precise32
vagrant up
vagrant ssh
Deps
----
sudo apt-get update
sudo apt-get install build-essential curl dos2unix gdb emacs git htop mc wget libwxgtk2.8-dev libglu-dev xsltproc libssl-dev libncurses5-dev fop unixodbc-dev default-jdk libtk-img-dev
cd
mkdir -p ~/bin ~/projects
# already in ~/.profile
# echo 'export PATH=~/bin:$PATH' >> ~/.bashrc
Erlang
------
https://www.erlang-solutions.com/downloads/download-erlang-otp
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install esl-erlang
OR
cd ~/bin
curl -O https://raw.githubusercontent.com/yrashk/kerl/master/kerl
chmod a+x kerl
cat > ~/.kerlrc <<EOF
KERL_CONFIGURE_OPTIONS="--without-wx --without-javac --without-odbc"
KERL_DEFAULT_INSTALL_DIR=/opt
EOF
kerl list releases
kerl build R16B03-1 r16b03-1
tail -f ~/.kerl/builds/r16b03-1/otp_build_R16B03-1.log
sudo kerl install r16b03-1
echo 'source /opt/r16b03-1/activate' >> ~/.bashrc
syntaxerl
---------
cd ~/projects
git clone https://github.com/ten0s/syntaxer
cd syntaxerl
make
cp syntaxerl ~/bin/
Emacs
-----
cd
git clone https://github.com/ten0s/emacs
ln -s ~/emacs/.emacs ~/.emacs
get rid of tuareg mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment