Install Sphinx on Mac OSX Tiger (10.4)
Hello everyone (especially developers),
I know, I know - you should NEVER use a development environment that is different from your deployment one, but I just can't help myself. I just love my Mac and don't want to replace my nice little black MacBook by a clumsy other one, just because I've to run a customized version of Gentoo on it :) - neither do I want to mess with BootCamp...
That aside, I've struggled for a little bit getting Sphinx (the incredible indexing and search engine) to work on my machine, a MacBook with OSX Tiger (10.4) on it. Maybe some of you are struggling with the same problem, so I thought I put a short tutorial together that helped me compile and run it successfully.
So here we go:
Enjoy.
Bests,
Charly
I know, I know - you should NEVER use a development environment that is different from your deployment one, but I just can't help myself. I just love my Mac and don't want to replace my nice little black MacBook by a clumsy other one, just because I've to run a customized version of Gentoo on it :) - neither do I want to mess with BootCamp...
That aside, I've struggled for a little bit getting Sphinx (the incredible indexing and search engine) to work on my machine, a MacBook with OSX Tiger (10.4) on it. Maybe some of you are struggling with the same problem, so I thought I put a short tutorial together that helped me compile and run it successfully.
So here we go:
- download version 2.5 of XCode from the Apple page. Version 2.5 is for Tiger (10.4).
- install the X11 development package as hinted by this incredibly useful little tutorial:
Installing X11 on OS X 10.4 Tiger. It's 5 years old, but still up to date. - download and install MacPorts (if you haven't already): http://www.macports.org/
- open console and enter sudo /opt/local/bin/port install mysql5-devel
- wait, wait some more, wait, wait, get coffee and wait
- Download Sphinx and untar it to any directory
- in the console, change to the directory you just untar'd Sphinx to
- enter in console: ./configure --with-mysql-libs=/opt/local
/lib/mysql5/mysql/ --with-mysql-includes=/opt /local/include/mysql5/mysql/ - enter in console: ./make
- enter in console: sudo ./make install
Enjoy.
Bests,
Charly
Labels: API, general help, programming
<< Home