Skip to content

Instantly share code, notes, and snippets.

@deanproctor
Last active August 29, 2015 14:17
Show Gist options
  • Save deanproctor/61b34cc3433a959708ca to your computer and use it in GitHub Desktop.
Save deanproctor/61b34cc3433a959708ca to your computer and use it in GitHub Desktop.
Install solr-couchbase-plugin on CentOS 6.5
sudo yum install -y java-1.7.0-openjdk java-1.7.0-openjdk-devel xml-commons-apis git
RELEASE6=$(grep -c "release 6" /etc/redhat-release)
if [ $RELEASE6 -eq 1 ]; then
sudo yum install -y ant
else
sudo yum install -y ant17
fi
mkdir /usr/lib/java-1.7.0 /usr/share/java-1.7.0
echo "export JAVA_HOME=/usr/lib/jvm/java-1.7.0" >> ~/.bash_profile
echo "export ofPATH=$JAVA_HOME/bin:$PATH" >> ~/.bash_profile
source ~/.bash_profile
git clone https://github.com/lucidworks/solr-couchbase-plugin
cd solr-couchbase-plugin
perl -pi -e "s/failonerror=\"true\" \/>//" build.xml
perl -pi -e "s/ignorewhitespace=\"true\"/ignorewhitespace=\"true\" \/>/" build.xml
ant run-solr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment