hello,
i followed the way of install wxruby by gem method… but not works for
me.
I search and download by sourgeforge and install the downloaded gem
(2.0.1), but the installation works… but really not in fact… when
try to use it in ruby code:
"/Library/Ruby/Gems/1.8/gems/wxruby-2.0.1-universal-darwin-9/lib/wxruby2.bundle:
dlopen(/Library/Ruby/Gems/1.8/gems/wxruby-2.0.1-universal-darwin-9/lib/wxruby2.bundle,
9): no suitable image found. Did find: (LoadError)
/Library/Ruby/Gems/1.8/gems/wxruby-2.0.1-universal-darwin-9/lib/wxruby2.bundle:
no matching architecture in universal wrapper -
/Library/Ruby/Gems/1.8/gems/wxruby-2.0.1-universal-darwin-9/lib/wxruby2.bundle
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:51:in require' from /Library/Ruby/Gems/1.8/gems/wxruby-2.0.1-universal-darwin-9/lib/wx.rb:12 from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:116:ingem_original_require’
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:116:in
`require’
from hello.rb:3
"
so… i search on my osx-10.6.8 system and see that it is really like
have no sense:
"> which -a ruby
=> /usr/bin//ruby (i’ve tryed to rm and ln this for take of the double
/, but always same result… i don’t understand what’s happen here…)
=> /Applications/programmation/Aptana Studio
3/plugins/org.jruby_1.6.0.1300281734/lib/ruby/site_ruby/1.8/rubygems
/Applications/programmation/Aptana Studio
3/plugins/org.jruby_1.6.4.1331328108/lib/ruby/site_ruby/1.8/rubygems
/Applications/programmation/Unity/MonoDevelop.app/Contents/Frameworks/Mono.framework/Versions/2.10.2/lib/ironruby/Lib/ruby/1.9.1/rubygems
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems
/Library/Frameworks/MacRuby.framework/Versions/0.11/usr/lib/ruby/1.9.2/rubygems
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rubygems
/Library/Ruby/Gems/1.8/gems/rubygems-update-1.8.1/lib/rubygems
/Library/Ruby/Gems/1.8/gems/rubygems-update-1.8.1/test/rubygems
/Library/Ruby/Gems/1.8/gems/rubygems-update-1.8.1/test/rubygems/rubygems
/Library/Ruby/Gems/1.8/gems/rubygems-update-2.0.6/lib/rubygems
/Library/Ruby/Gems/1.8/gems/rubygems-update-2.0.6/test/rubygems
/Library/Ruby/Gems/1.8/gems/rubygems-update-2.0.6/test/rubygems/rubygems
/Library/Ruby/Site/1.8/rubygems
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems
/Users/jeromelanteri/Library/Application
Support/NetBeans/7.3/jruby/lib/ruby/shared/rubygems
/Users/jeromelanteri/Library/Application
Support/NetBeans/7.3/update/backup/netbeans/jruby/lib/ruby/shared/rubygems
so… i no understand nothing.
i search on the google (who gives me lot of old link like 2009 posts)
and never find somethng clear for me or which can resolve my poroblem.
I think i have many ruby (two versus, 1.9.2 and official apple
1.8.something), many gems files… everywhere… looks like it is not my
computer and i don’t know how to erase all the bad ruby and gems for
only have the right ruby and gems and also wxruby module working simply.
lot of time used and lose to follow a way (gem install or port install
mode) without having great result, but only have more wrong thinks
everywhere (incredible !).
is there someone here able to help me for erase all this bullshit and
make a great hand installation of ruby and wxruby (and rubygem if works)
?
thanks for answer Tetsuya, don’t want let all the bad ruby other lonk,
just because i would like that my computer will not be a dirty trash.
I’m not in the microsoft spririt, and don’t want any bullshit who serve
nothing, data pollution or redondant wich take many places for absolutly
nothing logic inside…
now i try first to install via “railsinstaller-1.0.4-osx-10.6” and it is
not just clic and wait… i just need to create by myself a directory in
/private/etc/ (profile.d) and change profile.d to profile.e for this
would be possible (so… this package isn’t really ready for run on
osx-10.6, because if you not do this, it will be impossible to installl
the package…).
I hope this will be work this time, because too much time loose for bad
installation package, bad linked and dirty codes install files… seems
like not really ready in fact.
if really know how to clean my computer and trash all the F ck ng unsed
bad ruby or other wrong way or code inside my computer, i will be very
happy to learn this.
I just went through installing wxruby and getting it to work. You are
right, it is much harder than it should be. The main thing is that the
version you install must match the ruby version you are using.
ruby 1.8x use wxruby gem
ruby1.9x use wxruby-ruby19
ruby2.x There isn’t one
So make sure you unistall all old versions of wxruby, make sure you have
a working version of ruby 1.9x (use ruby -v to check) and then install
wxruby-ruby19
That got me working, although I had to do it several times to get
everything to line up properly.
ok, with other help here and on irc channel, i find the way… (and now
the servers works)
0 update to the last rvm (i do it with jexerlybox)
1 delete all the old bad sources of ruby-1.9.3 from github (bad because
they are not UNIVERSAL, but only for x86_64 arch…)where are on
/Users/“Your Home dir”/.rvm/src and also /Users/“your home
dir”/.rvm/archive
2 CONFIGURE_OPTS=“–with-arch=i386” CFLAGS=“-arch i386” LDFLAGS=“-arch
i386” rvm pkg install libyaml (you need this…)
3 rvm get head
4 rvm reload
5 rvm install ruby-1.9.3-p448 -C --with-arch=i386
6 rvm use 1.9.3
7 download this: http://rubyforge.org/frs/download.php/63385/wxruby-ruby19-2.0.1-x86-darwin-9.gem
8 gem list -l (for see if you are other wxruby installed)
8.1 if you have some, erase them (gem uninstall "the bads files)
9 gem install “the gem wxruby files you just download”
I just went through installing wxruby and getting it to work. You are
right, it is much harder than it should be. The main thing is that the
version you install must match the ruby version you are using.
ruby 1.8x use wxruby gem
ruby1.9x use wxruby-ruby19
ruby2.x There isn’t one
So make sure you unistall all old versions of wxruby, make sure you have
a working version of ruby 1.9x (use ruby -v to check) and then install
wxruby-ruby19
That got me working, although I had to do it several times to get
everything to line up properly.
– Will
thanks Will, i just arrived installed rails, ruby, rvm, etc… in
last version. Also, arrived to clean other old gems.
BUT when i try with rvm or gem to install ruby-1.9.3 (seems to be patch
448), that said me that can not resolve host (http or ftp same…).
Sure, it isn’t my internet connection, because i arrived to go and used
gem out of this. Seems to be the server or the files not here… really
not lucky !!
Also, i would like to know something… which arch of osx are you ? I’m
on i386 arch compiled, and i think this will add some other problem for
using all correctly.
pfff… sure, install ruby and wx on osx isn’t really clear and clean
way to do. too much incredible problems.
thanks for your help Will.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.