RWVHP

geeky initals

Installing Sphinx On Joyent

February 11th, 2008

Installing Sphinx on Joyent is relatively straight forward, I use PostgreSQL over MySQL so some bits may not be relevant.

$ wget http://www.sphinxsearch.com/downloads/sphinx-0.9.8-svn-r1112.tar.gz
$ tar xfvz sphinx-0.9.8-svn-r1112.tar.gz
$ cd sphinx-0.9.8-svn-r1112
$ export PATH=$PATH:/usr/xpg4/bin
$ ./configure --prefix=/opt/csw --without-mysql --with-pgsql && make && sudo make install

One on of our older machines accelerators we needed to adjust the ld paths a little for the PostgreSQL support, meaning the following

$ sudo crle  -l /lib:/usr/lib:/opt/csw/lib:/opt/csw/postgresql/lib
Before
$ crle
Configuration file [version 4]: /var/ld/ld.config  
  Platform:     32-bit LSB 80386
  Default Library Path (ELF):   /lib:/usr/lib:/opt/csw/lib:/opt/csw/postgresql/lib
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)
After
$ crle
Configuration file [version 4]: /var/ld/ld.config  
  Platform:     32-bit LSB 80386
  Default Library Path (ELF):   /lib:/usr/lib:/opt/csw/lib
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)

And you’ll now find sphinx installed in /opt/csw/bin

Comments welcome, Enjoy.

1 Response to “Installing Sphinx On Joyent”

  1. kael Says:

    I’m off-topic, so please erase my comment. I’m writing here cos the comments are closed on OpenID for mobile use ponderings.

    I wrote a comment on how to use a phone number as an OpenID, using ENUM, FOAF and the </foaf:openid> element. This might give you some ideas. :)

Sorry, comments are closed for this article.

About RWVHP

Photo of Vincent Palmer the site owner.

Vincent is a self-confessed geek, who's day job is as a Rails developer, outside of work he likes to play with home automation gadgets. He resides in Newcastle upon Tyne.

Page Sections

Copyright © 2008 Vincent Palmer