Problems about requiring gems

Discussion in 'Ruby' started by chanwoo.yoo@gmail.com, Dec 29, 2008.

  1. Guest

    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
     
    , Dec 29, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tomás

    Gems -- #include <gems.hpp>

    Tomás, Mar 4, 2006, in forum: C++
    Replies:
    7
    Views:
    426
    Tomás
    Mar 5, 2006
  2. Lloyd Zusman
    Replies:
    3
    Views:
    185
    Lloyd Zusman
    Jun 21, 2005
  3. Dany Cayouette

    'private' gems/gems hierarchy

    Dany Cayouette, Nov 25, 2005, in forum: Ruby
    Replies:
    3
    Views:
    159
    Jim Weirich
    Nov 25, 2005
  4. Philip Ross
    Replies:
    3
    Views:
    170
    Phil Ross
    Apr 16, 2009
  5. Michel Demazure

    problem requiring gems under 1.9.1 mingw

    Michel Demazure, Dec 18, 2009, in forum: Ruby
    Replies:
    5
    Views:
    109
    Michel Demazure
    Dec 18, 2009
Loading...

Share This Page