From: Zane Vohland Date: 2007-02-04T15:09:18+09:00 Subject: Re: Installing 1.8.5 but getting unknown file type ./.ext/ Lyle Johnson wrote: > On 2/2/07, Zane wrote: > >> I have spent a couple of days trying to get the Fox GUI library to >> interact with ruby. Now I think I am getting close. Before I go on to >> explain my problem here is some information that may be necessary... > > > > >> Software Versions: >> ---------------------- >> Ruby 1.8.1 > > Just curious: Why still running Ruby 1.8.1? > >> Abort trap > OK, that's bad. When I say that's bad, I mean, I don't recall ever > seeing ruby outright *crash* when trying to load FXRuby. It's more > common to see, for example, a failure to find one of the shared > libraries that FXRuby needs, but the error message in that case is > more descriptive than a simple "Bus Error". > >> When I try require 'fox' in irb I get this message: >> >> LoadError: No such file to load -- fox >> from (irb):1:in `require' >> from (irb):1 >> >> But I take it that as long as I can get fox16 working then this won't be >> a problem. > > Yeah, that's OK. The feature name that you should be trying to require > is 'fox16'. > >> I have trawled through website after website trying to find a fix to >> this problem or some helpful information... I have have read a heap of >> FXRuby documentation and some Ruby Documentation. > > Thank you for doing all of that research on your own first. Like I > said, this is a new one to me, so you aren't going to find anything > about it in the FXRuby documentation. > >> P.S: Here is a copy of what is writen to ruby1.8.crash.log: > > > > I scanned the stack trace, and it looks like the FXRuby code was > trying to call an internal Ruby function (st_lookup) when it failed. I > have a hunch that that interface has changed a bit since Ruby 1.8.1 > (which is several years old now). > > My advice is to upgrade to the most recent version of Ruby (1.8.5), > and then recompile FXRuby and try again. You shouldn't need to > recompile FOX -- just zap your FXRuby build directory and recompile > that part. > > Good luck, > > Lyle Thanks for the reply Lyle, I did infact try to update to 1.8.5 but I receive an error message when I try to "make install". I run through the commands normally: ./configure make test >>I get a nice "test succeded" make install Make Install runs through a heap of stuff nicely but then stumbles on this: ./miniruby ./ext/extmk.rb --dest-dir="" --make="make" --mflags="" --make-flags="" --extout=".ext" --extension --extstatic -- install cp -r ./.ext/. /usr/local/lib/ruby/1.8 /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:1239:in `copy': unknown file type: ./.ext/. (RuntimeError) from /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:447:in `copy_entry' from /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:1308:in `traverse' from /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:445:in `copy_entry' from /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:423:in `cp_r' from /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:1379:in `fu_each_src_dest' from /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:1393:in `fu_each_src_dest0' from /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:1377:in `fu_each_src_dest' from /Users/ZaneV/Desktop/ruby-1.8.5-p12/lib/fileutils.rb:422:in `cp_r' from ./ext/extmk.rb:389 make: *** [do-install-ext] Error 1 That has got me stumped... I went to the fileutils.rb script and checked it out but I'm not exactly sure what I'm doing. Has anyone else came across this error? Also will I have to uninstal 1.8.1... or will 1.8.5 fix that? Thanks, Zane -- Posted via http://www.ruby-forum.com/.