Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
how do you install a local gem?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="7stud --, post: 4634934"] Ok. I decided to go for broke and upgrade from ruby 1.8.2 to ruby 1.8.6. I followed the Hivelogic instructions here: [URL]http://hivelogic.com/articles/2007/02/ruby-rails-mongrel-mysql-osx[/URL] and everything seemed to install correctly. And the new version is being found: $ 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 following the Hivelogic instructions. 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 instructed. 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 on 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: 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$ [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
how do you install a local gem?
Top