On my mac, I can't seem to run "rake thinking_sphinx:index".
This is because the "riddle" gem doesn't seem to be found
despite the gem has been installed successfully.
here's what's it looks like on my screen:
localhost:myApp ct9a$ sudo gem install riddle
Password:
Successfully installed riddle-1.0.8
1 gem installed
Installing ri documentation for riddle-1.0.8...
Installing RDoc documentation for riddle-1.0.8...
localhost:myApp ct9a$ rake thinking_sphinx:index
(in /Users/ct9a/projects/rails/myApp)
rake aborted!
Could not find RubyGem riddle (>= 1.0.8)
/Users/ct9a/projects/rails/myApp/rakefile:11
(See full trace by running task with --trace)
localhost:myApp ct9a$
My environment:
- OS X Snow Leopard
-Rails 2.3.2
-Gem 1.3.5
-Sphinx 0.9.9
Thank you
Any OS X people using thinking sphinx with their rails apps? Comments
please? :) thank you.
I'm out of wits with this :( help!
just in case: try out "gem install riddle" (without sudoing before),
and see if it works.
Thibaut
--
http://www.learnivore.com
> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To post to this group, send email to thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
>
>
I tried that and even sudo to do . No luck :(
Yeah, I would like to be able to run thinking sphinx on my mac book
pro running snow leopard.
Right now, when I run "rake thinking_sphinx:index", I keep getting an
error that the riddle gem
is not installed. Installing it with "gem install riddle" with sudo
(and without) sees the installation
successful but running "rake thinking_sphinx:index" still fails with
the same error that the riddle gem is not
installed.
Hellpppp!
thanks :)
First things first, what's the output of "rake thinking_sphinx:index"? Because it looks like you've got the gem installed, and I'm using Snow Leopard as well, so I doubt that's the cause of the issue...
--
Pat
What's the output of 'gem list riddle' from the command line? Are you using RVM, or anything else that may have affected your gem setup? And what's the output of the rake call with --trace?
--
Pat
peter-pans-macbook-pro:myApp ct9a$ rake db:migrate
(in /Users/ct9a/projects/rails/myApp)
rake aborted!
Could not find RubyGem riddle (>= 1.0.8)
/Users/ct9a/projects/rails/myApp/rakefile:11
(See full trace by running task with --trace)
peter-pans-macbook-pro:myApp ct9a$ gem install riddle
WARNING: Installing to ~/.gem since /opt/local/lib/ruby/gems/1.8 and
/opt/local/bin aren't both writable.
WARNING: You don't have /Users/ct9a/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
Successfully installed riddle-1.0.8
1 gem installed
Installing ri documentation for riddle-1.0.8...
Installing RDoc documentation for riddle-1.0.8...
peter-pans-macbook-pro:myApp ct9a$ rake db:migrate
(in /Users/ct9a/projects/rails/myApp)
== AddPriceToParts: migrating ================================================
-- add_column(:parts, :price, :decimal, {:precision=>8, :scale=>2})
-> 0.0904s
== AddPriceToParts: migrated (0.0906s) =======================================
peter-pans-macbook-pro:myApp ct9a$ rake thinking_sphinx:index
(in /Users/ct9a/projects/rails/myApp)
Generating Configuration to /Users/ct9a/projects/rails/myApp/config/development.sphinx.conf
Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-2009, Andrew Aksyonoff
using config file '/Users/ct9a/projects/rails/myApp/config/development.sphinx.conf'...
indexing index 'fit_core'...
collected 0 docs, 0.0 MB
collected 0 attr values
sorted 0.0 Mvalues, nan% done
total 0 docs, 0 bytes
total 0.010 sec, 0 bytes/sec, 0.00 docs/sec
distributed index 'fit' can not be directly indexed; skipping.
indexing index 'part_core'...
collected 0 docs, 0.0 MB
collected 0 attr values
sorted 0.0 Mvalues, nan% done
total 0 docs, 0 bytes
total 0.003 sec, 0 bytes/sec, 0.00 docs/sec
distributed index 'part' can not be directly indexed; skipping.
total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 8 writes, 0.000 sec, 0.1 kb/call avg, 0.0 msec/call avg
peter-pans-macbook-pro:myApp ct9a$
I wonder if it was something to do with the ruby installation you've got - from MacPorts, I'm guessing? I just use the built-in Ruby that comes with Snow Leopard, but I know plenty of others use the ports version without issues...
--
Pat
> For some silly reason, I ran gem install "riddle" (As non-super user) and it works.
just some speculation because I have not really nailed the problem:
from my understanding, there was a change recently (ie in the last 2
years!) in rubygems that allow to do gem install riddle without sudo.
But I met a number of times where gems installed with sudo would not
be able to see those installed with sudo (and/or vice-versa) - this is
why I suggested earlier in the thread to do "gem install riddle"
without sudo.
I think there is some unexpected behaviour underneath somehow :)
Maybe someone can come up with more insight ?
Thibaut
--
http://www.learnivore.com