{"id":210,"date":"2022-08-30T14:57:33","date_gmt":"2022-08-30T14:57:33","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/08\/22\/ruby-error-undefined-method-load_yaml-for-gemmodule-nomethoderror-when-using-herokus-foreman-start-record-and-share-programming-errors\/"},"modified":"2022-08-30T14:57:33","modified_gmt":"2022-08-30T14:57:33","slug":"ruby-error-undefined-method-load_yaml-for-gemmodule-nomethoderror-when-using-herokus-foreman-start-record-and-share-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/ruby-error-undefined-method-load_yaml-for-gemmodule-nomethoderror-when-using-herokus-foreman-start-record-and-share-programming-errors\/","title":{"rendered":"Ruby error : undefined method `load_yaml&#39; for Gem:Module (NoMethodError) when using Heroku&#39;s foreman start-Record and share programming errors"},"content":{"rendered":"<p>I&#8217;m starting to play with Heroku to deploy a simple Node.js in their free plan. But when I run <code>foreman start<\/code>, I see this error :<\/p>\n<pre><code>\/Library\/Ruby\/Site\/1.8\/rubygems\/builder.rb:10: undefined method `load_yaml' for Gem:Module (NoMethodError)\n    from \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/1.8\/usr\/lib\/ruby\/1.8\/rubygems.rb:1110:in `require'\n    from \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/1.8\/usr\/lib\/ruby\/1.8\/rubygems.rb:1110\n    from \/usr\/local\/foreman\/lib\/foreman\/process.rb:2:in `require'\n    from \/usr\/local\/foreman\/lib\/foreman\/process.rb:2\n    from \/usr\/local\/foreman\/lib\/foreman\/engine.rb:3:in `require'\n    from \/usr\/local\/foreman\/lib\/foreman\/engine.rb:3\n    from \/usr\/local\/foreman\/lib\/foreman\/cli.rb:3:in `require'\n    from \/usr\/local\/foreman\/lib\/foreman\/cli.rb:3\n    from \/usr\/bin\/foreman:13:in `require'\n    from \/usr\/bin\/foreman:13\n<\/code><\/pre>\n<p>Problem : I know close to nothing to the Ruby platform, I don&#8217;t use. I just happened to have rvm installed on my machine because I once wanted to play Octopress (Blog generator based on Jekyll). I first searched the internet, but couldn&#8217;t find anything. I also visited the official RVM site and followed the troubleshooting basic steps : I ran <code>rvm stable<\/code> (which just produced no output&#8230;), ensured the call to the RVM script came last in my <code>~\/.bash_profile<\/code>, and yes I&#8217;m using bash.<\/p>\n<p>Here&#8217;s the info I can give so you can help me.<\/p>\n<p>I&#8217;m under OS X 10.6.8.<\/p>\n<p><code>rvm list<\/code> prints :<\/p>\n<pre><code>rvm rubies\n\n=&gt; ruby-1.9.2-p290 [ x86_64 ]\n<\/code><\/pre>\n<p><code>which ruby<\/code> prints :<\/p>\n<p><code>\/Users\/khalid_jebbari\/.rvm\/rubies\/ruby-1.9.2-p290\/bin\/ruby<\/code><\/p>\n<p><code>rvm info<\/code> prints :<\/p>\n<pre><code>ruby-1.9.2-p290:\n\n  system:\n    uname:       \"Darwin djebbz 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1\/RELEASE_I386 i386\"\n    bash:        \"\/bin\/bash =&gt; GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)\"\n    zsh:         \"\/bin\/zsh =&gt; zsh 4.3.9 (i386-apple-darwin10.0)\"\n\n  rvm:\n    version:      \"rvm 1.8.3 by Wayne E. Seguin (wayneeseguin@gmail.com) [https:\/\/rvm.beginrescueend.com\/]\"\n\n  ruby:\n    interpreter:  \"ruby\"\n    version:      \"1.9.2p290\"\n    date:         \"2011-07-09\"\n    platform:     \"x86_64-darwin10.8.0\"\n    patchlevel:   \"2011-07-09 revision 32553\"\n    full_version: \"ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]\"\n\n  homes:\n    gem:          \"\/Users\/khalid_jebbari\/.rvm\/gems\/ruby-1.9.2-p290\"\n    ruby:         \"\/Users\/khalid_jebbari\/.rvm\/rubies\/ruby-1.9.2-p290\"\n\n  binaries:\n    ruby:         \"\/Users\/khalid_jebbari\/.rvm\/rubies\/ruby-1.9.2-p290\/bin\/ruby\"\n    irb:          \"\/Users\/khalid_jebbari\/.rvm\/rubies\/ruby-1.9.2-p290\/bin\/irb\"\n    gem:          \"\/Users\/khalid_jebbari\/.rvm\/rubies\/ruby-1.9.2-p290\/bin\/gem\"\n    rake:         \"\/Users\/khalid_jebbari\/.rvm\/gems\/ruby-1.9.2-p290\/bin\/rake\"\n\n  environment:\n    PATH:         \"\/Users\/khalid_jebbari\/.gem\/ruby\/1.8\/bin:\/usr\/local\/heroku\/bin:\/Users\/khalid_jebbari\/bin\/bin:\/Users\/khalid_jebbari\/.rvm\/gems\/ruby-1.9.2-p290\/bin:\/Users\/khalid_jebbari\/.rvm\/gems\/ruby-1.9.2-p290@global\/bin:\/Users\/khalid_jebbari\/.rvm\/rubies\/ruby-1.9.2-p290\/bin:\/Users\/khalid_jebbari\/.rvm\/bin:\/opt\/local\/bin:\/opt\/local\/sbin:\/usr\/bin:\/bin:\/usr\/sbin:\/sbin:\/usr\/local\/bin:\/usr\/local\/git\/bin:\/usr\/X11\/bin\"\n    GEM_HOME:     \"\/Users\/khalid_jebbari\/.rvm\/gems\/ruby-1.9.2-p290\"\n    GEM_PATH:     \"\/Users\/khalid_jebbari\/.rvm\/gems\/ruby-1.9.2-p290:\/Users\/khalid_jebbari\/.rvm\/gems\/ruby-1.9.2-p290@global\"\n    MY_RUBY_HOME: \"\/Users\/khalid_jebbari\/.rvm\/rubies\/ruby-1.9.2-p290\"\n    IRBRC:        \"\/Users\/khalid_jebbari\/.rvm\/rubies\/ruby-1.9.2-p290\/.irbrc\"\n    RUBYOPT:      \"\"\n    gemset:       \"\"\n<\/code><\/pre>\n<ol>\n<li>\n<p><code>PATH<\/code> is not set properly, my guess is you reset or preset PATH, use ruby to make it working:<\/p>\n<pre><code>rvm use 1.9.2-p290\n<\/code><\/pre>\n<p>and install foreman:<\/p>\n<pre><code>gem install foreman\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2013-08-22 12:51:14. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m starting to play with Heroku to deploy a simple Node.js in their free plan. But when I run foreman start, I see this error : \/Library\/Ruby\/Site\/1.8\/rubygems\/builder.rb:10: undefined method `load_yaml&#8217; for Gem:Module (NoMethodError) from \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/1.8\/usr\/lib\/ruby\/1.8\/rubygems.rb:1110:in `require&#8217; from \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/1.8\/usr\/lib\/ruby\/1.8\/rubygems.rb:1110 from \/usr\/local\/foreman\/lib\/foreman\/process.rb:2:in `require&#8217; from \/usr\/local\/foreman\/lib\/foreman\/process.rb:2 from \/usr\/local\/foreman\/lib\/foreman\/engine.rb:3:in `require&#8217; from \/usr\/local\/foreman\/lib\/foreman\/engine.rb:3 from \/usr\/local\/foreman\/lib\/foreman\/cli.rb:3:in `require&#8217; from \/usr\/local\/foreman\/lib\/foreman\/cli.rb:3 from \/usr\/bin\/foreman:13:in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-210","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=210"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/210\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}