From: Martin Gagnon Date: 2007-04-06T03:08:04+09:00 Subject: Re: Install problems under QNX Daniel Berger wrote: > I would try modifying instruby.rb by adding print statements in there > to verify the file name, the file size, and (especially) the size it's > trying to truncate to. It's effectively bringing answers. instruby.rb fails when trying to modify the shebang from the newly installed files. IO#pos returns strange numbers. All my output prefixed 'MG:' ------------------------------------- /home/martin/ruby-1.8.6# make install ./miniruby ./instruby.rb --dest-dir="" --extout=".ext" --make="make" --mflags="-I /usr/qnx630/target/qnx6/usr/include" --make-flags="I /usr/qnx630/target/qnx6/usr/include" --installed-list .installed.list --mantype="man" installing binary commands installing command scripts MG: /usr/local/bin/testrb open -> f MG: f.pos: 8079457735797637120 MG: f.gets done | f.pos: 8079457735797637140 MG: f.read done | f.pos: 8079457735797637271 MG: f.rewind done | f.pos: 8079457735797637120 MG: truncating /usr/local/bin/testrb: MG: f.size: 151 MG: Attempting to truncate at f.pos=8079457735797637273 ./instruby.rb:272:in `truncate': File too large - /usr/local/bin/testrb (Errno::EFBIG) from ./instruby.rb:272 from ./instruby.rb:142:in `open' from ./instruby.rb:142:in `open_for_install' from ./instruby.rb:252 from ./instruby.rb:239:in `each' from ./instruby.rb:239 from ./instruby.rb:361:in `call' from ./instruby.rb:361 from ./instruby.rb:358:in `each' from ./instruby.rb:358 from ./instruby.rb:357:in `each' from ./instruby.rb:357 make: *** [do-install-nodoc] Error 1 ------------------------------------- Now, any idea why IO#pos is returning those numbers and how to get it to work? Thank you, Martin -- Posted via http://www.ruby-forum.com/.