Skip to content

Instantly share code, notes, and snippets.

@jedi4ever
Created April 14, 2011 14:05
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 jedi4ever/919537 to your computer and use it in GitHub Desktop.
Save jedi4ever/919537 to your computer and use it in GitHub Desktop.
buiding sphinx .deb with fpm
wget http://sphinxsearch.com/files/sphinx-0.9.9.tar.gz
rm -rf sphinx-0.9.9
tar -xzvf sphinx-0.9.9.tar.gz
cd sphinx-0.9.9
./configure --with-pgsql --without-mysql --prefix=/usr
rm -rf /tmp/install-sphinx-0.9.9
mkdir /tmp/install-sphinx-0.9.9
make install DESTDIR=/tmp/install-sphinx-0.9.9
# We need to specify the arch as it not picked up automagically
# arch=$(uname -m) -> says i686 but it complains about
# package architecture (i686) does not match system (i386)
fpm -sdir -a i386 -t deb -n sphinx -v 0.9.9 -C /tmp/install-sphinx-0.9.9 -p sphinx-VERSION_ARCH.
deb usr/bin usr/etc usr/var
#Created /home/vagrant/sphinx-0.9.9/sphinx-0.9.9_i386.deb
sudo dpkg -i sphinx-0.9.9_i386.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment