[wxruby-users] I updated ruby and rubygems and now no more wxruby
7stud --
lists at ruby-forum.com
Thu Mar 26 02:34:54 EDT 2009
Mario Steele wrote:
> Hello 7stud,
>
> On Wed, Mar 25, 2009 at 12:04 PM, 7stud -- <lists at ruby-forum.com> wrote:
>
>>
>> /usr/local/src$ ls -al
>> /usr/local/src$ cd rubygems-1.3.1
>> require 'rubygems'
>>
>> I got an error for each one.
>> PATH="/usr/local/bin:$PATH"
>>
>> $ cd /usr/local/lib/ruby/gems/1.8
>> ... /usr/local/lib/ruby/gems/1.8$ cd gems
>> drwxr-xr-x 12 root wheel 408 Feb 11 2008 rake-0.8.1
>> - RUBY EXECUTABLE: /usr/local/bin/ruby
>> - :benchmark => false
>>
> 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,
>
Thanks for the response. I removed the following lines from my
~/.bash_profile file:
------------
...
...
PATH="/usr/local/bin:$PATH"
export PATH
PATH="/usr/local/sbin:$PATH"
export PATH
-------------
Then did:
$ . ~/.bash_profile
Then I closed all my Terminal windows, and opened a new Terminal window
and typed:
$ gem list --local
*** LOCAL GEMS ***
fastercsv (1.2.1)
FasterCSV is CSV, but faster, smaller, and cleaner.
json (1.1.1)
A JSON implementation as a Ruby extension
rake (0.7.3)
Ruby based make-like utility.
ruby-json (1.1.2)
ruby-json is a library for using JavaScript Object Notation (JSON)
under Ruby.
rubygems-update (1.0.0)
RubyGems Update GEM
sources (0.0.1)
This package provides download sources for remote gem installation
wxruby (2.0.0)
Ruby interface to the wxWidgets GUI library
There it is. The last one. Those gems are different than the ones
listed here:
... /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
So I ran a find to figure out where wxruby was located:
$ find /usr -name 'wxruby*'
/usr/lib/ruby/gems/1.8/cache/wxruby-2.0.0-universal-darwin-9.gem
/usr/lib/ruby/gems/1.8/doc/wxruby-2.0.0-universal-darwin-9
/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.0-universal-darwin-9
/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.0-universal-darwin-9/lib/wxruby2.bundle
/usr/lib/ruby/gems/1.8/gems/wxruby-2.0.0-universal-darwin-9/samples/drawing/wxruby-logo.png
/usr/lib/ruby/gems/1.8/specifications/wxruby-2.0.0-universal-darwin-9.gemspec
find: /usr/local/mysql-5.0.41-osx10.4-i686/data: Permission denied
And then:
$ cd /usr/lib/ruby/gems/1.8/gems
.. /usr/lib/ruby/gems/1.8/gems$ ls -al
total 0
drwxr-xr-x 10 root wheel 340 Mar 24 01:31 .
drwxr-xr-x 7 root wheel 238 Oct 7 2007 ..
drwxr-xr-x 14 root wheel 476 Oct 8 2007 fastercsv-1.2.1
drwxr-xr-x 17 root wheel 578 Nov 23 2007 json-1.1.1
drwxr-xr-x 10 root wheel 340 Oct 20 2007 libxml-ruby-0.5.2.0
drwxr-xr-x 12 root wheel 408 Oct 7 2007 rake-0.7.3
drwxr-xr-x 8 root wheel 272 Nov 23 2007 ruby-json-1.1.2
drwxr-xr-x 19 root wheel 646 Jan 25 2008 rubygems-update-1.0.0
drwxr-xr-x 3 root wheel 102 Oct 7 2007 sources-0.0.1
drwxr-xr-x 7 root wheel 238 Mar 24 01:31
wxruby-2.0.0-universal-darwin-9
So why are some gems in /usr/lib while other gems are in /usr/local/lib?
Where should they be?
--
Posted via http://www.ruby-forum.com/.
More information about the wxruby-users
mailing list