Hi,

At Thu, 27 Mar 2003 05:09:33 +0900,
Manfred Hansen wrote:
> Here are the first error massage from make:
> 
> /home/hansen/ruby-1.8.0/ext/dl/extconf.rb:154:in `initialize': No such file 
> or directory - "dlconfig.h" (Errno::ENOENT)

This exception should be rescued.

> The second error by fileutils.rb:
> 
> hurd:/home/hansen/ruby-1.8.0# make install
> ../miniruby ./instruby.rb --dest-dir="" --make="make" --mflags="" 
> --make-flags="" --mantype="doc"
> install -c -m 0755 ruby /usr/local/bin/ruby
> /home/hansen/ruby-1.8.0/lib/fileutils.rb:554:in `chmod': No such file or 
> directory - "/usr/local/bin/ruby" (Errno::ENOENT)

remove_files checks ENOENT, so this exception shouldn't be
raised here (unless race condition).  Seems Errno::ENOENT
couldn't be handled properly.

What happens with followings?

  begin
    raise Errno::ENOENT, "test1"
  rescue
    p $!
  end
  begin
    raise Errno::ENOENT, "test2"
  rescue SystemCallError
    p $!
  end
  begin
    raise Errno::ENOENT, "test3"
  rescue Errno::ENOENT
    p $!
  end

-- 
Nobu Nakada