Problems about requiring gems

C

chanwoo.yoo

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/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=> 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,692
Latest member
JenniferTi

Latest Threads

Top