Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Problems about requiring gems

Reply
Thread Tools

Problems about requiring gems

 
 
chanwoo.yoo@gmail.com
Guest
Posts: n/a
 
      12-29-2008
Hello. I tried to run examples in Rubymacros, but I could not make it
work. Could I get any help?

sori-guyi-imac:~ ssor$ sudo gem install rubymacros
Password:
Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed rubyforge-1.0.1
Successfully installed rake-0.8.3
Successfully installed hoe-1.8.2
Successfully installed sequence-0.2.0
Successfully installed rubylexer-0.7.2
Successfully installed redparse-0.8.0
Successfully installed rubymacros-0.1.1
7 gems installed
Installing ri documentation for rubyforge-1.0.1...
Installing ri documentation for rake-0.8.3...
Installing ri documentation for hoe-1.8.2...
Installing ri documentation for sequence-0.2.0...
Installing ri documentation for rubylexer-0.7.2...
Installing ri documentation for redparse-0.8.0...
Installing ri documentation for rubymacros-0.1.1...


RDoc failure in lib/macro.rb at or around line 57 column 24

Before reporting this, could you check that the file
you're documenting compiles cleanly--RDoc is not a
full Ruby parser, and gets confused easily if fed
invalid programs.

The internal error was:

ERROR: While executing gem ... (NoMethodError)
undefined method `name' for nil:NilClass


sori-guyi-imac:example ssor$ gem list

*** LOCAL GEMS ***

.......
redparse (0.8.0)
ruby-openid (1.1.4)
ruby-yadis (0.3.4)
rubyforge (1.0.1)
rubylexer (0.7.2)
rubymacros (0.1.1)
.......


sori-guyi-imac:example ssor$ ruby -rubygems simple_wrap.rb
/Library/Ruby/Gems/1.8/gems/rubymacros-0.1.1/lib/macro.rb:140:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubymacros-0.1.1/lib/macro.rb:180:
warning: parenthesize argument(s) for future version
rubygems require disabled
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:944:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:963:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1009:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1065:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1073:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1087:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1224:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1270:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1316:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1351:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1385:
warning: parenthesize argument(s) for future version
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such
file to load -- reg (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /Library/Ruby/Gems/1.8/gems/redparse-0.8.0/lib/redparse.rb:26
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /Library/Ruby/Gems/1.8/gems/rubymacros-0.1.1/lib/macro.rb:24
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/rubygems/custom_require.rb:32:in `require'
from simple_wrap.rb:1


sori-guyi-imac:example ssor$ irb
>> require 'rubygems'

=> false
>> require 'macro'

/Library/Ruby/Gems/1.8/gems/rubymacros-0.1.1/lib/macro.rb:140:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubymacros-0.1.1/lib/macro.rb:180:
warning: parenthesize argument(s) for future version
rubygems require disabled
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:944:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:963:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1009:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1065:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1073:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1087:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1224:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1270:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1316:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1351:
warning: parenthesize argument(s) for future version
/Library/Ruby/Gems/1.8/gems/rubylexer-0.7.2/lib/rubylexer.rb:1385:
warning: parenthesize argument(s) for future version
LoadError: no such file to load -- reg
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /Library/Ruby/Gems/1.8/gems/redparse-0.8.0/lib/redparse.rb:26
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /Library/Ruby/Gems/1.8/gems/rubymacros-0.1.1/lib/macro.rb:24
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/rubygems/custom_require.rb:32:in `require'
from (irb):2
>> require 'rubynode'

=> true


sori-guyi-imac:example ssor$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.0.1 (1.0.1)
- RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [universal-
darwin9.0]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
- RUBYGEMS PREFIX: /System/Library/Frameworks/Ruby.framework/
Versions/1.8/usr/lib/ruby
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/
Versions/1.8/usr/bin/ruby
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-9
- GEM PATHS:
- /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8
- /Library/Ruby/Gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org


sori-guyi-imac:example ssor$ gem which rubymacros
Can't find rubymacros
sori-guyi-imac:example ssor$ gem which rubynode
(checking gem rubynode-0.1.3 for rubynode)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
gems/1.8/gems/rubynode-0.1.3/lib/rubynode.rb
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem requiring gems under 1.9.1 mingw Michel Demazure Ruby 5 12-18-2009 05:51 PM
SecurityError requiring gems and other files with $SAFE=1 in Ruby1.9.1 Philip Ross Ruby 3 04-16-2009 07:56 PM
Gems -- #include <gems.hpp> Tomás C++ 7 03-05-2006 02:48 PM
'private' gems/gems hierarchy Dany Cayouette Ruby 3 11-25-2005 10:55 PM
Confusion about gems and non-gems working together. Lloyd Zusman Ruby 3 06-20-2005 11:23 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57