Hi,

At Wed, 22 Dec 2010 21:21:17 +0900,
ravish nayak wrote in [ruby-core:33814]:
> tmk: Setting permissions on '/scratch/ravnay01/tmp_ruby_ruby_1.9.2/TOOLROOT/ruby/ruby/1.9.2/
> rhe4-x86_64'
> chmod 775 .
> find rhe4-x86_64 -type d -print | xargs chmod a+x
> chmod: cannot access `rhe4-x86_64/share/ri/1.9.1/system/Set/dig': No such file or directory
> chmod: cannot access `=': No such file or directory
> chmod: cannot access `{}': No such file or directory
> chmod: cannot access `rhe4-x86_64/share/ri/1.9.1/system/IRB/(MagicFile': No such file or directory
> chmod: cannot access `=': No such file or directory
> chmod: cannot access `Object.new)': No such file or directory

This bug has been fixed in the trunk already and backported to 1.9.2
branch.

BTW, why don't you use -print0?

  $ find rhe4-x86_64 -type d -print0 | xargs -0 chmod a+x
or
  $ find rhe4-x86_64 -type d -exec xargs chmod a+x {} +
or
  $ chmod -R a+X rhe4-x86_64

> second one 

> ./ruby: error while loading shared libraries: libruby.so.1.9: cannot open shared object file: No such file or directory

Seems like you need to add a file under /etc/ld.so.conf.d or set
LD_LIBRARY_PATH environment variable.

-- 
Nobu Nakda