Monthly Archives: December 2007

ERROR: While executing gem … (Gem::GemNotFoundException)

You might be feeling annoyed with this problem. (I do)
Problem could be:
your local source cache
Example:   /usr/lib/ruby/gems/1.8/source_cache
; try removing this file (Your path might be different than above given; check your path first using #gem env)
If this does not solves your problem
check your env var REMOTE SOURCES (#gem env)
If it is not gems.rubyforge.org then use [...]

/bin/rm: Argument list too long tmp/sessions/ruby_sess.*

Well this happens when there are too many files to process:
Best way in this case is to do batch processing:
Sample command:
find . -name ‘ruby_sess.*’ -print0 | xargs -0 rm