:-[] :-|| Vivek Khokhar rambles here :-O :-[]

December 6, 2007

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

Filed under: Uncategorized — Vivek Khokhar @ 6:35 pm

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 following command to install:

#gem install -r gem_name  –source http://gems.rubyforge.org

If this does not solves your problem(is your internet down?)

Borrow gem files from your friend and install them without -r option.

#gem install /path_to/gemname.gem

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

Filed under: Linux, Ruby, Rails — Vivek Khokhar @ 5:25 pm
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

Powered by WordPress