# Simply install and use ruby and wxruby is it possible?

**URL:** <https://www.ruby-forum.com/t/simply-install-and-use-ruby-and-wxruby-is-it-possible/245963>\
**Category:** wxRuby\
**Created:** [August 4, 2013, 12:36pm UTC](https://www.ruby-forum.com/t/simply-install-and-use-ruby-and-wxruby-is-it-possible/245963 "2013-08-04T12:36:41Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [August 4, 2013, 12:36pm UTC](https://www.ruby-forum.com/t/simply-install-and-use-ruby-and-wxruby-is-it-possible/245963/1 "2013-08-04T12:36:41Z")

</div>

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:in`gem\_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…)

> which -a gem  
> =\> /usr/bin//gem

> gem env | grep ‘RUBY EXECUTABLE’

- RUBY EXECUTABLE:  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

> sudo find / -name “rubygems” -print

=\> /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.

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [August 4, 2013, 3:15pm UTC](https://www.ruby-forum.com/t/simply-install-and-use-ruby-and-wxruby-is-it-possible/245963/2 "2013-08-04T15:15:14Z")

</div>

Bonjour,

Je suis actuellement en conges. Je prendrai connaissance de votre  
message a partir du 19 aout et vous contacterai des que possible.

Cordialement

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [August 4, 2013, 3:42pm UTC](https://www.ruby-forum.com/t/simply-install-and-use-ruby-and-wxruby-is-it-possible/245963/3 "2013-08-04T15:42:07Z")

</div>

Bonjour,

Je suis actuellement en conges. Je prendrai connaissance de votre  
message a partir du 19 aout et vous contacterai des que possible.

Cordialement

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [August 4, 2013, 7:54pm UTC](https://www.ruby-forum.com/t/simply-install-and-use-ruby-and-wxruby-is-it-possible/245963/4 "2013-08-04T19:54:30Z")

</div>

Bonjour,

Je suis actuellement en conges. Je prendrai connaissance de votre  
message a partir du 19 aout et vous contacterai des que possible.

Cordialement

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [August 4, 2013, 5:37pm UTC](https://www.ruby-forum.com/t/simply-install-and-use-ruby-and-wxruby-is-it-possible/245963/5 "2013-08-04T17:37:12Z")

</div>

Hi jerome,

I recommend you to use rbenv that provide you a environment of multiple  
Ruby versions.

> **[GitHub - rbenv/rbenv: Manage your app's Ruby environment](https://github.com/rbenv/rbenv)**
>
> Manage your app's Ruby environment. Contribute to rbenv/rbenv development by creating an account on GitHub.

Probably you don’t need uninstall Rubies and gems.  
That will be simply ignored.

And you can check the version by using following command.  
$ ruby -v  
$ gem -v

By the way, you must not install a gem wxruby, but wxruby-ruby19 if you  
use  
newer version than Ruby 1.9.

I hope it helps.

–  
Tetsuya Yuasa

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [August 4, 2013, 8:00pm UTC](https://www.ruby-forum.com/t/simply-install-and-use-ruby-and-wxruby-is-it-possible/245963/6 "2013-08-04T20:00:21Z")

</div>

Bonjour,

Je suis actuellement en conges. Je prendrai connaissance de votre  
message a partir du 19 aout et vous contacterai des que possible.

Cordialement

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [August 5, 2013, 12:30pm UTC](https://www.ruby-forum.com/t/simply-install-and-use-ruby-and-wxruby-is-it-possible/245963/7 "2013-08-05T12:30:03Z")

</div>

Bonjour,

Je suis actuellement en conges. Je prendrai connaissance de votre  
message a partir du 19 aout et vous contacterai des que possible.

Cordialement

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [August 5, 2013, 12:52pm UTC](https://www.ruby-forum.com/t/simply-install-and-use-ruby-and-wxruby-is-it-possible/245963/8 "2013-08-05T12:52:15Z")

</div>

Bonjour,

Je suis actuellement en conges. Je prendrai connaissance de votre  
message a partir du 19 aout et vous contacterai des que possible.

Cordialement

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [August 5, 2013, 11:29am UTC](https://www.ruby-forum.com/t/simply-install-and-use-ruby-and-wxruby-is-it-possible/245963/9 "2013-08-05T11:29:34Z")

</div>

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.

thanks again.

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [August 5, 2013, 3:12pm UTC](https://www.ruby-forum.com/t/simply-install-and-use-ruby-and-wxruby-is-it-possible/245963/10 "2013-08-05T15:12:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [August 5, 2013, 4:40pm UTC](https://www.ruby-forum.com/t/simply-install-and-use-ruby-and-wxruby-is-it-possible/245963/11 "2013-08-05T16:40:42Z")

</div>

Bonjour,

Je suis actuellement en conges. Je prendrai connaissance de votre  
message a partir du 19 aout et vous contacterai des que possible.

Cordialement

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [August 8, 2013, 2:01am UTC](https://www.ruby-forum.com/t/simply-install-and-use-ruby-and-wxruby-is-it-possible/245963/12 "2013-08-08T02:01:19Z")

</div>

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](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”

NOW, that’s work for me.  
so… you can see here the solution:  
[https://www.ruby-forum.com/topic/212707#1117980](https://www.ruby-forum.com/topic/212707#1117980)

thanks everybody for reading and help, have a good day.

---

<div class="post-metadata">

**Author:** ![yayel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/dfb087/32.png) [@yayel](https://www.ruby-forum.com/u/yayel)\
**Post date:** [August 6, 2013, 2:51am UTC](https://www.ruby-forum.com/t/simply-install-and-use-ruby-and-wxruby-is-it-possible/245963/13 "2013-08-06T02:51:03Z")

</div>

Will Merrell wrote in post #1117769:

> 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.
