Skip to content

Instantly share code, notes, and snippets.

@troyk
Created May 3, 2012 22:34
Show Gist options
  • Save troyk/2590050 to your computer and use it in GitHub Desktop.
Save troyk/2590050 to your computer and use it in GitHub Desktop.
Unworking attempt to build couchdb from sources for OS X
# ICU
curl -O http://download.icu-project.org/files/icu4c/49.1.1/icu4c-49_1_1-src.tgz
tar -xzf icu4c-49_1_1-src.tgz
cd ./icu/source
./runConfigureICU MacOSX --with-library-bits=64 --disable-samples --enable-static
make
sudo make install
# SpiderMonkey
curl -O http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
tar -xzf js185-1.0.0.tar.gz
cd js-1.8.5/js/src
AR=ar CC="gcc -m64" CXX="g++ -m64" ./configure --target=x86_64-apple-darwin10.0.0
make
sudo make install
sudo ranlib /usr/local/lib/libmozjs185-1.0.a
# Erlang
curl -O http://www.erlang.org/download/otp_src_R15B01.tar.gz
tar -xzf otp_src_R15B01.tar.gz
cd otp_src_R15B01
./configure --enable-smp-support --enable-dynamic-ssl-lib --enable-kernel-poll --enable-darwin-64bit
make
sudo make install
# Couch/Relax
git clone http://git.apache.org/couchdb.git
cd couchdb
git checkout 1.2.0
./bootstrap && ./configure
./configure --with-js-include=/usr/local/include --with-js-lib=/usr/local/lib
@troyk
Copy link
Author

troyk commented May 3, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment