Hi Pat, I apologize for the delayed replies. I've been working a few other items at the same time. I added the pg_config path to my path statement and also tried your suggestion. Everything seems to compile ok with the exception of this one line. I'm not sure if this is the problem, but when I run "make" I get the following at the bottom...
Making all in test make[1]: Nothing to be done for `all'. make[1]: Nothing to be done for `all-am'. I simplified my index statement but I still get the following... using config file '/Users/Chris/obilling/config/ development.sphinx.conf'... indexing index 'account_core'... ERROR: source 'account_core_0': unknown type 'pgsql'; skipping. ERROR: index 'account_core': no valid sources configured; skipping. distributed index 'account' can not be directly indexed; skipping. I'm sure it's something really simple, but I can't seem to figure it out. I have used this as a guide for the installation (http:// mediumexposure.com/2009/05/01/installing-sphinx-postgres-leopard). I'm not sure if there is an inherent problem with the steps, but like I said everything seems to install just fine. If you want to see my output just let me know. I didn't want to jumble this post with a bunch of compilation output when I'm not sure what you might need. I really appreciate the help and can't beleive I haven't put my finger on this yet. Is there a command I can run to check the install of sphinx? I'm new to the mac terminal, but I can't see anything glaring me in the face when it compiles. It seems to process just fine with the exception of that message above. Chris On Jun 7, 9:14 pm, Pat Allan <[email protected]> wrote: > Hi Chris > > What's the output of pg_config -—pkgincludedir ? > > You should be able to use the path it gives you and then run ./ > configure as follows: > ./configure --with-pgsql=[path-from-above] --without-mysql > > Cheers > > -- > Pat > > On 07/06/2009, at 11:03 PM, Chris Sund wrote: > > > > > > > Ok I have been looking a little closer at my output. When I run "make" > > the bottom of the output looks like this... > > > make install-am > > g++ -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -arch x86_64 -o > > indexer indexer.o libsphinx.a -L/opt/local/lib/postgresql83/ -lpq - > > L/usr/local/lib > > ld warning: in indexer.o, file is not of required architecture > > ld warning: in libsphinx.a, file is not of required architecture > > ld warning: in /opt/local/lib/postgresql83//libpq.dylib, file is not > > of required architecture > > Undefined symbols: > > "_main", referenced from: > > start in crt1.10.5.o > > ld: symbol(s) not found > > collect2: ld returned 1 exit status > > make[2]: *** [indexer] Error 1 > > make[1]: *** [install] Error 2 > > make: *** [install-recursive] Error 1 > > > It seems that I'm having a problem within the "make". I will do some > > more research to see if I can find the solution. If anyone else has > > come across this - their input is welcome. > > > Chris > > > On Jun 7, 6:50 pm, Chris Sund <[email protected]> wrote: > >> So I still need some help if I may. I have followed the suggestions > >> with some minor modifications and everything seems to install just > >> fine. For some reason however I still get the same error. Here's what > >> I did from the terminal... > > >> ./configure --with-pgsql --with-pgsql-includes=/opt/local/include/ > >> postgresql83/ --with-pgsql-libs=/opt/local/lib/postgresql83/ -- > >> without-mysql > >> make > >> sudo make install > > >> using config file '/Users/Chris/obilling/config/ > >> development.sphinx.conf'... > >> indexing index 'account_core'... > >> ERROR: source 'account_core_0': unknown type 'pgsql'; skipping. > >> ERROR: index 'account_core': no valid sources configured; skipping. > >> distributed index 'account' can not be directly indexed; skipping. > >> indexing index 'name_core'... > >> ERROR: source 'name_core_0': unknown type 'pgsql'; skipping. > >> ERROR: index 'name_core': no valid sources configured; skipping. > >> distributed index 'name' can not be directly indexed; skipping. > > >> I installed postgresql8.3 from the installer rather than macports > >> because I wanted to use the pgadmin ability. Maybe this is my > >> problem. > >> Any suggestions would be helpful. > > >> Thanks! > > >> Chris > > >> If I run all of this it seems to install just fine, but when I run > >> rake ts:index I get the following error still... > > >> On Jun 4, 8:50 am, Chris Sund <[email protected]> wrote: > > >>> Thanks I'll give those suggestions a try. I appreciate the help. > > >>> On Jun 4, 8:13 am, Pat Allan <[email protected]> wrote: > > >>>> Hi Chris > > >>>> It looks like you haven't installed Sphinx with PosgreSQL > >>>> support. You > >>>> can find instructions on how to do this in the (relatively) new > >>>> documentation site, in the UNIX > >>>> section:http://freelancing-god.github.com/ts/en/installing_sphinx.html > > >>>> Cheers > > >>>> -- > >>>> Pat > > >>>> On 04/06/2009, at 1:38 AM, internetchris wrote: > > >>>>> Hey everyone, > > >>>>> I just went to a mac for my dev machine and I'm trying to get TS > >>>>> working. When I type "rake ts:index" in rails I get the following > >>>>> error... > > >>>>> ERROR: source 'account_core_0': unknown type 'pgsql'; skipping. > > >>>>> For some reason it doesn't seem to understand that I'm using > >>>>> postgresql. What can I do to make sure TS is installed correctly > >>>>> vs > >>>>> something else. I simply need the first step to troubleshooting > >>>>> this. > >>>>> I have installed and re-installed postgresql a few times. The > >>>>> actual > >>>>> database connection and functionality works fine in my app. I > >>>>> can add > >>>>> and remove records without a problem. > > >>>>> Any help is appreciated, > > >>>>> Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en -~----------~----~----~----~------~----~------~--~---
