OS X Snow Leopard - "riddle" gem not found

8 views
Skip to first unread message

ct9a

unread,
Jan 6, 2010, 9:31:20 PM1/6/10
to Thinking Sphinx
hi, guys,

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

ct9a

unread,
Jan 8, 2010, 4:45:32 PM1/8/10
to Thinking Sphinx
hello? Bump...

Any OS X people using thinking sphinx with their rails apps? Comments
please? :) thank you.
I'm out of wits with this :( help!

Thibaut Barrère

unread,
Jan 8, 2010, 8:00:18 PM1/8/10
to Thinking Sphinx
Hello,

just in case: try out "gem install riddle" (without sudoing before),
and see if it works.

Thibaut
--
http://www.learnivore.com

Matt Cowley

unread,
Jan 8, 2010, 10:22:28 PM1/8/10
to thinkin...@googlegroups.com
Yes, whatcha need?

> --
> 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.
>
>

Gordon Yeong

unread,
Jan 9, 2010, 12:51:32 AM1/9/10
to thinkin...@googlegroups.com

ct9a

unread,
Jan 10, 2010, 5:35:08 PM1/10/10
to Thinking Sphinx
hi there

I tried that and even sudo to do . No luck :(

ct9a

unread,
Jan 10, 2010, 5:41:00 PM1/10/10
to Thinking Sphinx
hi there, Matt,

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 :)

Pat Allan

unread,
Jan 10, 2010, 6:03:50 PM1/10/10
to thinkin...@googlegroups.com
Sorry for the delay, life's a little hectic at the moment...

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

Gordon Yeong

unread,
Jan 10, 2010, 6:11:57 PM1/10/10
to thinkin...@googlegroups.com
Hello, Pat

 Good morning. Thanks for your reply. I hope I could get some help to have this resolved.

When I run "rake thinking_sphinx:index", I get "rake aborted!".


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




2010/1/11 Pat Allan <p...@freelancing-gods.com>

Pat Allan

unread,
Jan 10, 2010, 6:16:45 PM1/10/10
to thinkin...@googlegroups.com
Hi Gordon

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

Gordon Yeong

unread,
Jan 10, 2010, 10:12:17 PM1/10/10
to thinkin...@googlegroups.com
hi, Pat,

1) Output of "gem list riddle"
 
dyn-130-194-220-13:RealAutoParts anexiole$ gem list riddle

*** LOCAL GEMS ***

riddle (1.0.8)

2) Nope. Not using anything like RVM. I just install gems the standard way (ie. sudo gem install <gem name>)


3) Here's the output of "rake thinking-sphinx:index --trace":


dyn-130-194-220-13:myApp ct9a$  rake thinking-sphinx:index --trace 
(in /Users/ct9a/projects/rails/myApp)
rake aborted!
Could not find RubyGem riddle (>= 1.0.8)
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:827:in `report_activate_error'
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:261:in `activate'
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:296:in `activate'
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `each'
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `activate'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:35:in `require'
/Users/ct9a/projects/rails/myApp/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/ct9a/projects/rails/myApp/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/ct9a/projects/rails/myApp/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/ct9a/projects/rails/myApp/rakefile:11
/Users/ct9a/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
/Users/ct9a/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
/Users/ct9a/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
/Users/ct9a/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/ct9a/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
/Users/ct9a/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/Users/ct9a/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/ct9a/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/local/bin/rake:31
dyn-130-194-220-13:myApp ct9a$ 



Thank you :)

Gordon Yeong

unread,
Jan 11, 2010, 1:44:03 AM1/11/10
to thinkin...@googlegroups.com
problem solved.

For some silly reason, I ran gem install "riddle" (As non-super user) and it works.

Here's the output.

 I still want to find out why didn't it work the many times I did it (even with sudo).


-----------------Extract---------------------------

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$  


Pat Allan

unread,
Jan 11, 2010, 3:01:35 AM1/11/10
to thinkin...@googlegroups.com
Good to know it's all working :)

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

Gordon Yeong

unread,
Jan 11, 2010, 3:10:13 AM1/11/10
to thinkin...@googlegroups.com
If my memory serves me right, I downloaded the ruby package and compiled from source.
Anyway, if I do find out why, I will post and share with everybody.

Thank you again, Pat.

Gordon Yeong:)

2010/1/11 Pat Allan <p...@freelancing-gods.com>

Thibaut Barrère

unread,
Jan 11, 2010, 3:33:31 AM1/11/10
to thinkin...@googlegroups.com
Hello,

> 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

Reply all
Reply to author
Forward
0 new messages