From: Dave H. <gr...@gr...> - 2005-05-22 19:45:23
|
On May 17, 2005, at 9:10 AM, Jonathan Paisley wrote: > On 15 May 2005, at 20:49, Dave Howell wrote: >> I have tried installing RubyCocoa repeatedly, carefully following all >> the instructions, and scrubbing things out a few times, but nothing >> I've done has given me a functioning installation. It may not even be >> RubyCocoa's fault; the error message is so massively cryptic that I >> can't trace it any farther. >> >> /Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/ >> osx/objc/oc_import.rb:22:in `module_eval': undefined method >> `NSClassFromString' for OSX:Module (NoMethodError) >> >> So, um, I guess that the OSX module getting included in RubyCocoa's >> not doing its job somehow? >> >> >ruby -v >> ruby 1.8.2 (2004-11-03) [powerpc-darwin7.5.0] > > Can you post a complete IRB session or script that you're trying? > > What version of Mac OS X are you using? > > Where did your ruby come from? I posted a pretty detailed description of the whole thing on O'Reilly's web site in the discussion area of the "An Introduction to RubyCocoa, Part 2" article. http://www.macdevcenter.com/pub/a//mac/2004/10/12/cocoa.html? page=last#thread Look for the thread entitled "Installer Grief," although I think you can ignore the first message. In a nutshell, I installed RubyCocoa Panther 0.4.1 via CVS, and got the following during the Make run: gcc -fno-common -F../../framework/build -framework RubyCocoa -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin7.5.0 -I/usr/local/lib/ruby/1.8/powerpc-darwin7.5.0 -I/Users/snarke/Personal/Programming/Ruby/rubycocoa-panther/ext/ rubycocoa -c -o rubycocoa.o rubycocoa.m gcc: -framework: linker input file unused because linking not done gcc: RubyCocoa: linker input file unused because linking not done Then I built the script presented in the article by following the instructions *precisely,* but that just gets me the NoMethodError. I've also tried a completely unrelated Ruby script (somebody else's example using a variant of CurrencyConverter) and gotten exactly the same error message (above). I installed Ruby 1.8.2 some time last summer; I don't really recall how it got there, although I know I'd walked past/through Rubygarden as part of the process, so it probably came from sourceforge somehow. My OS is currently 10.3.9, although I've had the same problem under .3.8 and .3.7 as well. |