I installed wxruby like this:
$ cd ~/Desktop
~/Desktop$ gem install wxruby-2.0.0-universal-darwin-9.gem
and I got a message that said wxruby installed successfully. I tested a
simple wxruby program, and I got that to work.
Then I upgraded from ruby 1.8.2 to ruby 1.8.6. I followed the Hivelogic
instructions here:
and everything seemed to install correctly.
$ ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.11.1]
I also upgraded from rubygems 0.9.4 to rubygems 1.3.1. I downloaded
rubygems 1.3.1 and installed locally:
/usr/local/src$ ls -al
total 15968
drwxrwxr-x 7 root admin 238 Mar 25 02:13 .
drwxr-xr-x 12 root wheel 408 Mar 24 00:09 …
drwxr-xr-x 113 me admin 3842 Mar 24 01:08 readline-6.0
-rw-r–r-- 1 me admin 2270818 Mar 24 00:21 readline-6.0.tar.gz
drwxr-xr-x 154 me admin 5236 Mar 25 02:02 ruby-1.8.6
-rw-r–r-- 1 me admin 4589394 Mar 24 00:52 ruby-1.8.6.tar.gz
-rw-r–r-- 1 me me 1310720 Feb 24 11:00 rubygems-1.3.1.tar
/usr/local/src$ tar -xvf rubygems-1.3.1.tar
/usr/local/src$ cd rubygems-1.3.1
/usr/local/src/rubygems-1.3.1$ sudo /usr/local/bin/ruby setup.rb
$ gem -v
1.3.1
But now when I try to require wxruby, I get an error:
r1test.rb
require ‘rubygems’
require ‘wx’
$ ruby r1test.rb
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require': no such file to load -- wx (LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require’
from r1test.rb:2
I tried all of the following as well:
require ‘wx’
require ‘rubygems’
require ‘wxruby’
require ‘wxruby’
I got an error for each one.
My PATH is a little different than in the Hivelogic instructions. Here
are the last few
lines in my ~/.bash_profile file:
…
…
PATH=“/usr/local/bin:$PATH”
export PATH
PATH=“/usr/local/sbin:$PATH” "added for ruby 1.8.6 install
export PATH
Because /usr/local/bin was already tacked onto the front of the path in
the
previous setting, I just added /usr/local/sbin to the front of the path.
I didn’t think that would cause any adverse affects.
My question is: where did wxruby go? What happened when I did this:
~/Desktop$ gem install wxruby-2.0.0-universal-darwin-9.gem
Here is some more information:
$ gem environment gemdir
/usr/local/lib/ruby/gems/1.8
$ cd /usr/local/lib/ruby/gems/1.8
… /usr/local/lib/ruby/gems/1.8$ ls -al
total 0
drwxrwxr-x 6 root wheel 204 Mar 2 2008 .
drwxrwxr-x 3 root wheel 102 Jul 8 2007 …
drwxrwxr-x 10 root wheel 340 Feb 11 2008 cache
drwxr-xr-x 11 root wheel 374 Mar 25 02:15 doc
drwxrwxr-x 10 root wheel 340 Mar 2 2008 gems
drwxrwxr-x 10 root wheel 340 Mar 2 2008 specifications
… /usr/local/lib/ruby/gems/1.8$ cd gems
… /usr/local/lib/ruby/gems/1.8/gems$ ls -al
total 0
drwxrwxr-x 10 root wheel 340 Mar 2 2008 .
drwxrwxr-x 6 root wheel 204 Mar 2 2008 …
drwxr-xr-x 14 root wheel 476 Jan 27 2008 fastercsv-1.2.3
drwxr-xr-x 9 root wheel 306 Feb 11 2008 hoe-1.5.0
drwxr-xr-x 11 root wheel 374 Jan 27 2008 hpricot-0.6
drwxr-xr-x 11 root wheel 374 Jan 27 2008 libxml-ruby-0.5.2.0
drwxr-xr-x 14 root wheel 476 Feb 11 2008 mechanize-0.7.0
drwxr-xr-x 12 root wheel 408 Feb 11 2008 rake-0.8.1
drwxr-xr-x 9 root wheel 306 Feb 11 2008 rubyforge-0.4.4
drwxr-xr-x 19 root wheel 646 Jan 27 2008 rubygems-update-1.0.1
… /usr/local/lib/ruby/gems/1.8/gems$
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.1
- RUBY VERSION: 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.11.1]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/local/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-darwin-8
- GEM PATHS:
- /usr/local/lib/ruby/gems/1.8
- /Users/autie/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES: