After uninstalling rubygems and installing it again, it worked :)

James Harrison wrote:
>>        from /usr/bin/gem:8
>> 
>> what happened?
>> 
>> regards
>> -- 
>> Posted via http://www.ruby-forum.com/.
>> 
> 
> 
> Looks like the current working directory for the ruby process was erased 
> as part of the earlier gem uninstall. "getcwd (Errno::ENOENT)"

-- 
Posted via http://www.ruby-forum.com/.