[wxruby-users] I updated ruby and rubygems and now no more wxruby

Mario Steele mario at ruby-im.net
Wed Mar 25 15:19:04 EDT 2009


Hello 7stud,

On Wed, Mar 25, 2009 at 12:04 PM, 7stud -- <lists at ruby-forum.com> wrote:

> 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:
>
> http://hivelogic.com/articles/2007/02/ruby-rails-mongrel-mysql-osx
>
> 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:
>     - http://gems.rubyforge.org/
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> wxruby-users mailing list
> wxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wxruby-users
>

More then likely, wxruby is in the previous gem's directory, where you had
0.9.7 of rubygems installed.  If you poped off the /usr/local/bin and
/usr/local/sbin path from your PATH variable, and do a gem list --local,
you'll find wxruby is installed there, so you need to re-do the gem install
wxruby-2.0.0-universal-darwin-9.gem


-- 
Mario Steele
http://www.trilake.net
http://www.ruby-im.net
http://rubyforge.org/projects/wxruby/
http://rubyforge.org/projects/wxride/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20090325/77a3204c/attachment.html>


More information about the wxruby-users mailing list