ruby gems

davidc1947's Avatar

davidc1947

16 Feb, 2012 02:24 PM

I have lion running with rails, ruby, gems, mysql all installed and running. Updated to rails 3.3. Now i have, Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/activemodel-3.2.0.gemspec]: Illformed requirement ["#<YAML::Syck::DefaultKey:0x10c283bf8> 3.2.0"]

any way to resolve these errors. rails 3.2.1, ruby 1.8.7, gem 1.8.16

  1. Support Staff 2 Posted by Evan Phoenix on 21 Feb, 2012 01:03 AM

    Evan Phoenix's Avatar

    You may need to update your version of bundler as well. Could you try that and indicate if it fixes your problem?

  2. 3 Posted by davidc1947 on 22 Feb, 2012 10:49 AM

    davidc1947's Avatar

    tried to update bundler and it reports "Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/activemodel-3.2.0.gemspec]: Illformed requirement ["#<YAML::Syck::DefaultKey:0x10c283bf8> 3.2.0"]"

  3. Support Staff 4 Posted by Evan Phoenix on 22 Feb, 2012 04:50 PM

    Evan Phoenix's Avatar

    Could you run the following commands and then gist the output:

    gem env

    gem install activemodule -v 3.2.0

  4. 5 Posted by davidc1947 on 23 Feb, 2012 12:37 PM

    davidc1947's Avatar

    gem env

    Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/activemodel-3.2.0.gemspec]: Illformed requirement ["#<YAML::Syck::DefaultKey:0x10c283bf8> 3.2.0"]
    RubyGems Environment:
      - RUBYGEMS VERSION: 1.8.17
      - RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
      - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
      - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
      - EXECUTABLE DIRECTORY: /usr/bin
      - RUBYGEMS PLATFORMS:
        - ruby
        - universal-darwin-11
      - GEM PATHS:
         - /Library/Ruby/Gems/1.8
         - /Users/davidc1947/.gem/ruby/1.8
         - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
      - GEM CONFIGURATION:
         - :update_sources => true
         - :verbose => true
         - :benchmark => false
         - :backtrace => false
         - :bulk_threshold => 1000
         - :sources => ["http://rubygems.org/&quot;, "http://gemcutter.org&quot;, "http://gemcutter.org&quot;]
      - REMOTE SOURCES:
         - http://rubygems.org/
         - http://gemcutter.org
         - http://gemcutter.org
    bash-3.2$

    gem install activmodule -v 3.2.0

    Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/activemodel-3.2.0.gemspec]: Illformed requirement ["#<YAML::Syck::DefaultKey:0x10c283bf8> 3.2.0"]
    ERROR: Could not find a valid gem 'activmodule' (= 3.2.0) in any repository
    ERROR: Possible alternatives: activemodel, activoate

  5. Support Staff 6 Posted by Evan Phoenix on 23 Feb, 2012 04:58 PM

    Evan Phoenix's Avatar

    Oh, I see. The issue is that, some time in the past, a bad gem got installed. Remove /Library/Ruby/Gems/1.8/specifications/activemodel-3.2.0.gemspec using rm and then bundle rails again.

  6. 7 Posted by davidc1947 on 23 Feb, 2012 05:21 PM

    davidc1947's Avatar

    Thank the good Lord, it worked. Was so tired of seeing the errors.

    Thank you kindly for your expert help!!!!

    On Feb 23, 2012, at 11:57 AM, Evan Phoenix wrote:

    > /Library/Ruby/Gems/1.8/specifications/activemodel-3.2.0.gemspec

  7. 8 Posted by davidc1947 on 24 Feb, 2012 01:57 PM

    davidc1947's Avatar

    now i get to:

    depot:rake db:create
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/version.rb:2: warning: already initialized constant VERSION
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant MAJOR
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant MINOR
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant BUILD
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant PATCH
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/version.rb:6: warning: already initialized constant NUMBERS
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake.rb:27: warning: already initialized constant RAKEVERSION
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/early_time.rb:17: warning: already initialized constant EARLY
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/alt_system.rb:32: warning: already initialized constant WINDOWS
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/application.rb:31: warning: already initialized constant DEFAULT_RAKEFILES
    WARNING: Possible conflict with Rake extension: String#ext already exists
    WARNING: Possible conflict with Rake extension: String#pathmap already exists
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/task_arguments.rb:77: warning: already initialized constant EMPTY_TASK_ARGS
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/invocation_chain.rb:49: warning: already initialized constant EMPTY
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:9: warning: already initialized constant RUBY
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:86: warning: already initialized constant LN_SUPPORTED
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:16: warning: already initialized constant DEFAULT
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/dsl_definition.rb:150: warning: already initialized constant DeprecatedCommands
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:44: warning: already initialized constant ARRAY_METHODS
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:47: warning: already initialized constant MUST_DEFINE
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:51: warning: already initialized constant MUST_NOT_DEFINE
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:55: warning: already initialized constant SPECIAL_RETURN
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:61: warning: already initialized constant DELEGATING_METHODS
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:364: warning: already initialized constant DEFAULT_IGNORE_PATTERNS
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:370: warning: already initialized constant DEFAULT_IGNORE_PROCS
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake.rb:68: warning: already initialized constant FileList
    /Users/davidc1947/.rvm/gems/ruby-1.9.3-p125@global/gems/rake-0.9.2.2/lib/rake.rb:69: warning: already initialized constant RakeFileUtils
    rake aborted!
    stack level too deep

    man this new rails 3 has a ways to go!

  8. Support Staff 9 Posted by Evan Phoenix on 24 Feb, 2012 05:17 PM

    Evan Phoenix's Avatar

    Not sure what that is, but it's not directly related to rubygems. I'm going to go ahead and close.

  9. Evan Phoenix closed this discussion on 24 Feb, 2012 05:17 PM.

  10. davidc1947 re-opened this discussion on 24 Feb, 2012 05:19 PM

  11. 10 Posted by davidc1947 on 24 Feb, 2012 05:19 PM

    davidc1947's Avatar

    thank you again.

  12. Evan Phoenix closed this discussion on 24 Feb, 2012 06:20 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac