From: Daniel Wilkerson Date: 2008-03-27T11:40:07+09:00 Subject: Re: Help installing fxruby on osx > Before I launch into the explanation of this problem, and a way to > fix it, let me put in a plug for MacPorts. I know that you > (apparently) had a bad experience with Fink. So did I. MacPorts, in > my opinion, is better. I am also, personally, the maintainer of the > FOX, FXScintilla and FXRuby ports in MacPorts and am pretty confident > in saying that that's the easiest, lowest-hassle way to install > FXRuby at this point. I had the same problem with fxscintilla but I solved it by downloading the source for fxscintilla and building and installing it. Here is the full story. I got everything installed but it still doesn't work. This blog entry says that others are having this problem. http://davidrupp.blogspot.com/2008/01/installing-fox-and-fxruby-on-mac-os-x.html He proposes a solution, giving detailed instructions with particular special flags for: (1) Building Fox from source, and (2) Installing the FXRuby gem. Step (1) worked for me. Then I hit the fxscintilla bug again when I tried to do step (2). cc -arch i386 -pipe -bundle -undefined dynamic_lookup -o fox16.bundle librb.o core_wrap.o dc_wrap.o dialogs_wrap.o frames_wrap.o fx3d_wrap.o FXRbApp.o FXRbDataTarget.o FXRbGLViewer.o FXRuby.o iconlist_wrap.o icons_wrap.o image_wrap.o impl.o label_wrap.o layout_wrap.o list_wrap.o markfuncs.o mdi_wrap.o menu_wrap.o scintilla_wrap.o table_wrap.o text_wrap.o treelist_wrap.o ui_wrap.o unregisterOwnedObjects.o -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L"/usr/local/lib" -L"/usr/X11R6/lib" -L. -arch i386 -lruby -lfxscintilla -lFOX-1.6 -lGLU -lX11 -lXext -lz -lstdc++ -lpthread -ldl -lm ld: library not found for -lfxscintilla So I downloaded and built and installed it from source. That seemed to work. Then I tried step (2) again and it seemed to work. So everything should work. Except when I try "require 'fox16'" in a ruby program, I still get an error. ./fxruby1.rb:7:in `require': no such file to load -- fox16 (LoadError) However there are now fox16 files in my system. Macintosh-2:ruby dsw$ find /Library/Ruby -iname "*fox16*" /Library/Ruby/Gems/1.8/doc/fxruby-1.6.13/rdoc/files/lib/fox16 /Library/Ruby/Gems/1.8/gems/fxruby-1.6.13/ext/fox16 /Library/Ruby/Gems/1.8/gems/fxruby-1.6.13/ext/fox16/fox16.bundle /Library/Ruby/Gems/1.8/gems/fxruby-1.6.13/lib/fox16 Macintosh-2:ruby dsw$ Yet no combinations of adding them to my path seem to work. Macintosh-2:ruby dsw$ ruby -I /Library/Ruby/Gems/1.8/gems/fxruby-1.6.13/ext/fox16/ ./fxruby1.rb "the load path" ["/Library/Ruby/Gems/1.8/gems/fxruby-1.6.13/ext/fox16/", "/Library/Ruby/Site/1.8", "/Library/Ruby/Site/1.8/powerpc-darwin9.0", "/Library/Ruby/Site/1.8/universal-darwin9.0", "/Library/Ruby/Site", "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8", "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/powerpc-darwin9.0", "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0", "."] /Library/Ruby/Gems/1.8/gems/fxruby-1.6.13/ext/fox16/fox16.bundle:0:in `require': no such file to load -- fox16/core (LoadError) Macintosh-2:ruby dsw$ Though you will notice I get a slightly different error. Now, please note that ports doesn't work either: Macintosh-2:ruby dsw$ sudo port install rb-fxruby Password: Skipping org.macports.activate (rb-fxruby ) since this port is already active ---> Cleaning rb-fxruby Macintosh-2:ruby dsw$ cat fxruby1.rb && echo && ruby ./fxruby1.rb #!/usr/bin/ruby -w print "the load path:\n" p $: require 'fox16' the load path: ["/Library/Ruby/Site/1.8", "/Library/Ruby/Site/1.8/powerpc-darwin9.0", "/Library/Ruby/Site/1.8/universal-darwin9.0", "/Library/Ruby/Site", "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8", "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/powerpc-darwin9.0", "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0", "."] ./fxruby1.rb:4:in `require': no such file to load -- fox16 (LoadError) from ./fxruby1.rb:4 Macintosh-2:ruby dsw$ So I have it installed with fink, gems, and ports and it still doesn't work. Why do both fink and ports fail so often? They fail more often than they work. Anyway, I was enthusiastic about using FXRuby but I would be a lot more enthusiastic if it would actually work. -- Posted via http://www.ruby-forum.com/.