Badminton on Rails
RSS icon Home icon
  • Installing Sphinx on Mac OS X Leopard

    Posted on June 10th, 2008 Raymond Law 1 comment

    Download the latest release from http://www.sphinxsearch.com/downloads.html

    The usual

    ./configure
    make
    make install

    gives me an error:

    g++  -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG   -o indexer  indexer.o libsphinx.a  -L/opt/local/lib -L/opt/local/lib/mysql5/mysql -lmysqlclient -L/opt/local/lib -lz -lm  -L/opt/local/lib -lssl -lcrypto  -liconv -lexpat  -L/usr/local/lib
    Undefined symbols:
      "_iconv_close", referenced from:
          xmlUnknownEncoding(void*, char const*, XML_Encoding*)in libsphinx.a(sphinx.o)
      "_iconv", referenced from:
          xmlUnknownEncoding(void*, char const*, XML_Encoding*)in libsphinx.a(sphinx.o)
      "_iconv_open", referenced from:
          xmlUnknownEncoding(void*, char const*, XML_Encoding*)in libsphinx.a(sphinx.o)
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make[2]: *** [indexer] Error 1
    make[1]: *** [all] Error 2
    make: *** [all-recursive] Error 1

    These two articles detail how you can resolve the error:

     

    One response to “Installing Sphinx on Mac OS X Leopard”

    1. Just wanted to mention that I wrote a Rake task to install Sphinx under OSX Leopard… in case it helps anyone.

    Leave a reply