Skip to content

Instantly share code, notes, and snippets.

@gvarela
Created September 6, 2009 19:39
Show Gist options
  • Save gvarela/181938 to your computer and use it in GitHub Desktop.
Save gvarela/181938 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [ -d sphinx-0.9.8.1 ]; then
rm -rf sphinx-0.9.8.1
fi
if [ -e sphinx-0.9.8.1.tar.gz ]; then
rm sphinx-0.9.8.1.tar.gz
fi
curl -O http://www.sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz
tar zxvf sphinx-0.9.8.1.tar.gz
cd sphinx-0.9.8.1
export LDFLAGS="-arch x86_64"; ./configure --prefix=/usr/local --with-mysql=/usr/local/mysql/
make
sudo make install
rm -rf sphinx-0.9.8.1
rm sphinx-0.9.8.1.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment