[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ruby 1.8preview2
From: |
Manfred Hansen |
Subject: |
ruby 1.8preview2 |
Date: |
Thu, 27 Mar 2003 07:03:56 +0100 |
User-agent: |
Mutt/1.4i |
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", <<EOF)
#ifndef DLCONFIG_H
#define DLCONFIG_H
#{$dlconfig_h}
#endif /* DLCONFIG_H */
EOF
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)
from /home/hansen/ruby-1.8.0/ext/dl/extconf.rb:154:in `open'
from /home/hansen/ruby-1.8.0/ext/dl/extconf.rb:154:in `update'
from /home/hansen/ruby-1.8.0/ext/dl/extconf.rb:163
from ./ext/extmk.rb:78:in `load'
from ./ext/extmk.rb:78:in `extmake'
from ./ext/extmk.rb:220
from ./ext/extmk.rb:217:in `glob'
from ./ext/extmk.rb:217
make: *** [all] Error 1
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)
from /home/hansen/ruby-1.8.0/lib/fileutils.rb:554:in `remove_file'
from /home/hansen/ruby-1.8.0/lib/fileutils.rb:631:in `install'
from /home/hansen/ruby-1.8.0/lib/fileutils.rb:629:in
`fu_each_src_dest'
from /home/hansen/ruby-1.8.0/lib/fileutils.rb:629:in `install'
from ./instruby.rb:58:in `install'
from ./instruby.rb:58:in `install'
from ./instruby.rb:98
make: *** [install] Error 1
Regards Manfred
--
Manfred Hansen, 24229 Strande
e-Mail: manfred@toppoint.de
- ruby 1.8preview2, Manfred Hansen, 2003/03/26
- ruby 1.8preview2,
Manfred Hansen <=