From: FUJIMOTO H. <hi...@im...> - 2003-09-10 01:31:54
|
At Tue, 9 Sep 2003 12:33:47 -0400, Brian McCallister wrote: > [mccallister@kite /Developer/Examples/RubyCocoa]$ruby HelloWorld.rb > /Users/mccallister/opt/apps/ruby-1.8.0/lib/ruby/site_ruby/1.8/osx/ > cocoa.rb:12:in `require': No such file to load -- osx/objc/cocoa This issue is FAQ, but the appropriate answer of this is not yet found out. Currently, clear things about this are: * The problem occurs in runtime when the libruby as a dynamic library is used to build RubyCocoa.framework. * Maybe, in this case, build of RubyCocoa.framework, IOW install.rb setup process, has finished incompletely. So the framework is corrupt really. * It is indistinct what kind of case this occurs in. * Nobody solves this. Or there is not a report of solution. * In my environment, I cannot experience this problem. A result of the below test may become hint about this: $ YOUR_RUBY_COMMAND install.rb --help $ YOUR_RUBY_COMMAND inspect-ruby.rb # the bottom of this email Or, specify the static libruby instead of a dynamic one in config phase. In this case, the problem would occur in setup phase; before runtime: $ YOUR_RUBY_COMMAND install.rb config YOUR_OPTIONS --libruby-path=FULL_PATH_OF_YOUR_LIBRUBY_A -- Hisa ##### begin of "inspect-ruby.rb" ##### require "rbconfig" def print_result(name, val) puts "#{name}: #{val.inspect}" end def inspect_config(pat) pat = Regexp.new(pat.to_s) unless pat.is_a? Regexp Config::CONFIG.keys.grep(pat).each do |key| print_result("CONFIG[#{key}]", Config::CONFIG[key]) end end def otool(path) puts `otool -L #{path}` end print_result "VERSION", VERSION print_result "$LOAD_PATH", $LOAD_PATH puts "----" inspect_config(/libruby/i) inspect_config(/dir\Z/i) puts "----" otool(File.join(Config::CONFIG['bindir'],Config::CONFIG['RUBY_INSTALL_NAME'])) otool(File.join(Config::CONFIG['libdir'],Config::CONFIG['LIBRUBY_SO'])) ##### end of "inspect-ruby.rb" ##### |