Hi Pat, I gave that a try just as you instructed but no luck. I've seen some articles on 64bit installations, but to be honest I'm not sure how to tell if I have a 64bit machine. I'm new to my Mac, and I have actually tried the 64 bit instructions just to give it a try, but without luck. I know that I know when I get it figured out It will be something easy. Here's the last little bit of my ./configure output...
configuring Sphinx ------------------ checking whether to compile with MySQL support... no checking whether to compile with PostgreSQL support... yes checking for pg_config... /opt/local/lib/postgresql83/bin//pg_config checking PostgreSQL C flags... -I/opt/local/include/postgresql83 checking PostgreSQL linker flags... -L/opt/local/lib/postgresql83 -lpq checking whether to use 64-bit document/word IDs... no checking whether to compile with libstemmer support... no checking for libexpat... found checking for libiconv... found checking for iconv() arg types... char ** checking for unaligned RAM access... yes generating configuration files ------------------------------ configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating libstemmer_c/Makefile config.status: creating sphinx.conf.dist config.status: creating sphinx-min.conf.dist config.status: creating config/config.h config.status: config/config.h is unchanged config.status: executing depfiles commands configuration done ------------------ You can now run 'make' to build Sphinx binaries, and then run 'make install' to install them. As I said before, I really appreciate the help and any suggestions. I've done a ton of googling, and just can't find the right answer for my machine. I'm running Leopard 10.5.7. Chris On Jun 9, 10:35 pm, Pat Allan <[email protected]> wrote: > Hi Chris > > I think the issue is that your initial compile is still there, and so > make won't recompile and replace them (I get caught on this sometimes > as well). I think 'make clean' should remove the compiled-but-not-yet- > installed binaries... I don't know how to list the inputs make can be > given. > > Try 'make clean', then the configure/make/sudo-make-install process > again. If there are no errors with ./configure, that suggests you're > on the right track. > > Cheers > > -- > Pat > > On 10/06/2009, at 12:24 AM, Chris Sund wrote: > > > > > > > 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 -~----------~----~----~----~------~----~------~--~---
