Skip to content

Instantly share code, notes, and snippets.

@mig
Created June 12, 2009 20:48
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 mig/128909 to your computer and use it in GitHub Desktop.
Save mig/128909 to your computer and use it in GitHub Desktop.
Installing Erlang on OSX w/o ports
curl -O http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gz
tar xvzf gettext-0.17.tar.gz
cd gettext-0.17
./configure --prefix=/usr/local
make
sudo make install
cd ..
sudo perl -MCPAN -e 'shell'
cpan> install Locale::gettext
cpan> quit
curl -O http://ftp.gnu.org/gnu/help2man/help2man-1.36.4.tar.gz
tar xvzf help2man-1.36.4.tar.gz
cd help2man-1.36.4
curl http://svn.macports.org/repository/macports/trunk/dports/textproc/help2man/files/patch-Makefile.in > patch-Makefile.in
patch -p0 < patch-Makefile.in
./configure --prefix=/usr/local
make
sudo make install
cd ..
curl -O http://download.icu-project.org/files/icu4c/4.2.0.1/icu4c-4_2_0_1-src.tgz
tar xvzf icu4c-4_2_0_1-src.tgz
cd icu/source
chmod +x runConfigureICU configure install-sh
./runConfigureICU MacOSX
make
sudo make install
cd ../..
curl -O http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz
tar xvzf js-1.7.0.tar.gz
cd js/src
make BUILD_OPT=1 -f Makefile.ref
sudo mkdir -p /usr/include/smjs/
sudo cp *.{h,tbl} /usr/include/smjs/
cd Darwin_OPT.OBJ/
sudo cp *.h /usr/include/smjs/
sudo mkdir -p /usr/local/{bin,lib}/
sudo cp js /usr/local/bin/
sudo cp libjs.dylib /usr/local/lib/
cd ../../../
curl -O http://www.erlang.org/download/otp_src_R13B01.tar.gz
tar xvzf otp_src_R13B01.tar.gz
cd otp_src_R13B01
./configure --prefix=/usr/local/bin
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment