From: Manfred Hansen Date: 2003-03-27T05:09:33+09:00 Subject: Re: Hurd and ruby 1.8preview2 Hi, the ruby-1.8.0/ext/dl/extconf.rb didn't make the makefile. ruby-1.8.0/lib/fileutils.rb was necessary by "make install" because there didn't copy any files to the directory. I try to emulate the error from extconf.rb . This example didn't run on GNU/Hurd but on Linux (Suse). !/usr/local/bin/ruby def File.update(file, str) begin open(file){|f|f.read} == str # open(file,File::CREAT|File::TRUNC|File::RDWR, 0644){|f|f.read} == str rescue Errno::ENOENT false end or open(file, "w"){|f|f.print(str)} end File.update("dlconfig.h", < Hi, > > At Thu, 27 Mar 2003 03:09:06 +0900, > Manfred Hansen wrote: >> i have compiled ruby 1.8preview2 on Hurd. >> >> This is what i have change: > > What trouble did you have exactly? > >> - open(file){|f|f.read} == str >> + open(file,File::CREAT|File::TRUNC|File::RDWR, 0644){|f|f.read} == >> str > > File::TRUNC means making opened file empty. This modification > doesn't seem correct. > >> - unless FileTest.exist? d and cmp(s,d) >> - remove_file d, true >> + #unless FileTest.exist? d and cmp(s,d) >> + # remove_file d, true >> copy_file s, d >> File.chmod mode, d if mode >> - end >> + #end > > Ditto. File operations don't work at all? >