From lists at ruby-forum.com Wed Nov 28 07:13:40 2012 From: lists at ruby-forum.com (tiger zen) Date: Wed, 28 Nov 2012 08:13:40 +0100 Subject: [wxruby-users] OS X Snow Leopard + wxRuby 2.0.1 gem - WORKING In-Reply-To: <4C344B85.6000808@pressure.to> References: <4C344B85.6000808@pressure.to> Message-ID: bad news the output is: /Users/rubyzen/rubymineprojects/wxruby/first_window.rb arch: posix_spawnp: ruby: Bad CPU type in executable kouheimatoMacBook-Air:wxruby rubyzen$ arch -i386 ruby -rubygems /Users/rubyzen/rubymineprojects/wxruby/first_window.rb arch: posix_spawnp: ruby: Bad CPU type in executable xiong-kouheimatoMacBook-Air:wxruby rubyzen$ arch i386 xiong-kouheimatoMacBook-Air:wxruby rubyzen$ ruby -v ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-darwin10.8.0] xiong-kouheimatoMacBook-Air:wxruby rubyzen$ which ruby /Users/rubyzen/.rvm/rubies/ruby-1.9.2-p320/bin/ruby xiong-kouheimatoMacBook-Air:wxruby rubyzen$ gem q -d -n wxruby /Users/rubyzen/.rvm/rubies/ruby-1.9.2-p320/bin/gem:4: warning: Insecure world writable dir /usr in PATH, mode 040777 *** LOCAL GEMS *** wxruby (2.0.1) Platform: universal-darwin-9 Author: wxRuby development team Rubyforge: http://rubyforge.org/projects/wxruby Homepage: http://wxruby.org/ Installed at: /Users/rubyzen/.rvm/gems/ruby-1.9.2-p320 Ruby interface to the wxWidgets GUI library xiong-kouheimatoMacBook-Air:wxruby rubyzen$ file /Users/rubyzen/.rvm/rubies/ruby-1.9.2-p320/bin/ruby /Users/rubyzen/.rvm/rubies/ruby-1.9.2-p320/bin/ruby: Mach-O 64-bit executable x86_64 xiong-kouheimatoMacBook-Air:lib rubyzen$ file wxruby2.bundle wxruby2.bundle: Mach-O universal binary with 2 architectures wxruby2.bundle (for architecture ppc): Mach-O bundle ppc wxruby2.bundle (for architecture i386): Mach-O bundle i386 Alex Fenton wrote in post #923756: > Hi > > It is possible to use the standard wxRuby 2.0.1 gem with the standard > system ruby in /usr/bin/ruby in OS X 10.6 > > 1) download the gem > > http://rubyforge.org/frs/download.php/63386/wxruby-2.0.1-universal-darwin-9.gem > > 2) install it from the downloaded file > > sudo gem install wxruby-2.0.1-universal-darwin-9.gem > > 3) run ruby like this, forcing 32-bit mode > > arch -i386 ruby -rubygems > > > Have tested with a couple of samples and this works fine. Appreciate any > feedback. Of course, we are still aiming to get full compatibility, but > for various reasons this is quite difficult. > > Thanks to some advice on this page (comment #4) > http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard > > alex -- Posted via http://www.ruby-forum.com/.