Created
October 25, 2010 12:32
-
-
Save tregoning/644873 to your computer and use it in GitHub Desktop.
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
#Initial setup | |
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm | |
yum -y update | |
yum -y install git-core | |
#Install Java Compiler | |
cd /tmp | |
echo "" | wget -O jdk-6u22-linux-x64.bin http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u22-linux-x64.bin?BundledLineItemUUID=XW6J_hCvhl0AAAEr0jwpG98G&OrderID=1HeJ_hCvMU4AAAErxzwpG98G&ProductID=w9aJ_hCw9PAAAAErNFJuIQy3&FileName=/jdk-6u22-linux-x64.bin | |
echo "" | /bin/sh jdk-6u22-linux-x64.bin | |
mv jdk1.6.0_22/ /opt | |
touch /etc/profile.d/java.sh | |
echo "export JAVA_HOME=\"/opt/jdk1.6.0_22\"" > /etc/profile.d/java.sh | |
echo "export JAVA_PATH=\"\$JAVA_HOME/bin\"" >> /etc/profile.d/java.sh | |
echo "export PATH=\"\$PATH:\$JAVA_PATH\"" >> /etc/profile.d/java.sh | |
source /etc/profile.d/java.sh | |
#Installing latest version of Earlang from source (rpm version doesn't work: https://issues.apache.org/jira/browse/COUCHDB-856) | |
cd /tmp | |
wget http://www.erlang.org/download/otp_src_R14B.tar.gz | |
tar xfvz otp_src_R14B.tar.gz | |
cd otp_src_R14B | |
#Not sure which one I need, installing all in order to save time | |
yum -y install libiodbc-devel.x86_64 unixODBC-devel.x86_64 unixODBC.x86_64 libiodbc.x86_64 | |
./configure --with-ssl | |
#Expected | |
# wxWidgets not found, wx will NOT be usable (This is required to build GUIs, obviously not required this is a headless environment) | |
# Using fakefop to generate placeholder PDF files. (This is an optional requirement, can't install as it requires X11 *headless environment*) | |
make install | |
ln -s /usr/local/lib/erlang /usr/lib64/erlang | |
#Installing CouchDB | |
wget ftp://ftp.pbone.net/mirror/centos.karan.org/el5/extras/testing/x86_64/RPMS/js-1.70-2.el5.kb.x86_64.rpm | |
rpm -i js-1.70-2.el5.kb.x86_64.rpm | |
wget http://packages.sw.be/couchdb/couchdb-1.0.1-2.el5.rf.x86_64.rpm | |
rpm -i couchdb-1.0.1-2.el5.rf.x86_64.rpm | |
update /etc/couchdb/local.ini | |
#Update ip-tables | |
iptables-save > ipRules.txt | |
update ipRules.txt add: -A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 5984 -j ACCEPT | |
iptables-restore ipRules.txt | |
/etc/init.d/couchdb stop | |
/etc/init.d/couchdb start | |
#If you want coudb to autostart | |
chkconfig couchdb on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment