{"id":7308,"date":"2014-06-07T02:23:57","date_gmt":"2014-06-07T02:23:57","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/error-installing-therubyracer-gem-for-mac-10-9-rails-3-2-11-collection-of-common-programming-errors\/"},"modified":"2014-06-07T02:23:57","modified_gmt":"2014-06-07T02:23:57","slug":"error-installing-therubyracer-gem-for-mac-10-9-rails-3-2-11-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/error-installing-therubyracer-gem-for-mac-10-9-rails-3-2-11-collection-of-common-programming-errors\/","title":{"rendered":"Error installing therubyracer gem for Mac 10.9 \/ Rails 3.2.11-Collection of common programming errors"},"content":{"rendered":"<p>Hi any idea(s) why I can&#8217;t install therubyracer gem for Mac 10.9 and Rails 3?<\/p>\n<pre><code>Installing therubyracer (0.11.3) \nGem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.\n\n        \/Users\/xiruki\/.rvm\/rubies\/ruby-1.9.3-p448\/bin\/ruby extconf.rb \nchecking for main() in -lpthread... yes\nchecking for main() in -lobjc... yes\nchecking for v8.h... yes\ncreating Makefile\n\nmake\ncompiling accessor.cc\nclang: warning: argument unused during compilation: '-rdynamic'\nIn file included from accessor.cc:1:\n.\/rr.h:462:14: error: no type named 'AccessorGetter' in namespace 'v8'\n  inline v8::AccessorGetter accessorGetter() {return &amp;AccessorGetter;}\n         ~~~~^\n.\/rr.h:463:14: error: no type named 'AccessorSetter' in namespace 'v8'\n  inline v8::AccessorSetter accessorSetter() {return RTEST(set) ? &amp;AccessorSetter : 0;}\n         ~~~~^\n.\/rr.h:465:14: error: no type named 'NamedPropertyGetter' in namespace 'v8'\n  inline v8::NamedPropertyGetter namedPropertyGetter() {return &amp;NamedPropertyGetter;}\n         ~~~~^\n.\/rr.h:466:14: error: no type named 'NamedPropertySetter' in namespace 'v8'\n  inline v8::NamedPropertySetter namedPropertySetter() {return RTEST(set) ? &amp;NamedPropertySetter : 0;}\n         ~~~~^\n.\/rr.h:467:14: error: no type named 'NamedPropertyQuery' in namespace 'v8'\n  inline v8::NamedPropertyQuery namedPropertyQuery() {return RTEST(query) ? &amp;NamedPropertyQuery : 0;}\n         ~~~~^\n.\/rr.h:468:14: error: no type named 'NamedPropertyDeleter' in namespace 'v8'\n  inline v8::NamedPropertyDeleter namedPropertyDeleter() {return RTEST(deleter) ? &amp;NamedPropertyDeleter : 0;}\n         ~~~~^\n.\/rr.h:469:14: error: no type named 'NamedPropertyEnumerator' in namespace 'v8'\n  inline v8::NamedPropertyEnumerator namedPropertyEnumerator() {return RTEST(enumerator) ? &amp;NamedPropertyEnumerator : 0;}\n         ~~~~^\n.\/rr.h:471:14: error: no type named 'IndexedPropertyGetter' in namespace 'v8'\n  inline v8::IndexedPropertyGetter indexedPropertyGetter() {return &amp;IndexedPropertyGetter;}\n         ~~~~^\n.\/rr.h:472:14: error: no type named 'IndexedPropertySetter' in namespace 'v8'\n  inline v8::IndexedPropertySetter indexedPropertySetter() {return RTEST(set) ? &amp;IndexedPropertySetter : 0;}\n         ~~~~^\n.\/rr.h:473:14: error: no type named 'IndexedPropertyQuery' in namespace 'v8'\n  inline v8::IndexedPropertyQuery indexedPropertyQuery() {return RTEST(query) ? &amp;IndexedPropertyQuery : 0;}\n         ~~~~^\n.\/rr.h:474:14: error: no type named 'IndexedPropertyDeleter' in namespace 'v8'\n  inline v8::IndexedPropertyDeleter indexedPropertyDeleter() {return RTEST(deleter) ? &amp;IndexedPropertyDeleter : 0;}\n         ~~~~^\n.\/rr.h:475:14: error: no type named 'IndexedPropertyEnumerator' in namespace 'v8'\n  inline v8::IndexedPropertyEnumerator indexedPropertyEnumerator() {return RTEST(enumerator) ? &amp;IndexedPropertyEnumerator : 0;}\n         ~~~~^\n.\/rr.h:481:20: error: no type named 'AccessorInfo' in namespace 'v8'\n    Info(const v8::AccessorInfo&amp; info);\n               ~~~~^\n.\/rr.h:487:22: error: no type named 'AccessorInfo' in namespace 'v8'\n    inline const v8::AccessorInfo* operator-&gt;() {return this-&gt;info;}\n                 ~~~~^\n.\/rr.h:501:15: error: no type named 'AccessorInfo' in namespace 'v8'\n    const v8::AccessorInfo* info;\n          ~~~~^\n.\/rr.h:505:89: error: no type named 'AccessorInfo' in namespace 'v8'\n  static v8::Handle AccessorGetter(v8::Local property, const v8::AccessorInfo&amp; info);\n                                                                                    ~~~~^\n.\/rr.h:506:100: error: no type named 'AccessorInfo' in namespace 'v8'\n  static void AccessorSetter(v8::Local property, v8::Local value, const v8::AccessorInfo&amp; info);\n                                                                                               ~~~~^\n.\/rr.h:508:94: error: no type named 'AccessorInfo' in namespace 'v8'\n  static v8::Handle NamedPropertyGetter(v8::Local property, const v8::AccessorInfo&amp; info);\n                                                                                         ~~~~^\n.\/rr.h:509:122: error: no type named 'AccessorInfo' in namespace 'v8'\n  static v8::Handle NamedPropertySetter(v8::Local property, v8::Local value, const v8::AccessorInfo&amp; info);\n                                                                                                                     ~~~~^\nfatal error: too many errors emitted, stopping now [-ferror-limit=]\n20 errors generated.\nmake: *** [accessor.o] Error 1\n\n\nGem files will remain installed in \/Users\/xiruki\/.rvm\/gems\/ruby-1.9.3-p448@ensemblist\/gems\/therubyracer-0.11.3 for inspection.\nResults logged to \/Users\/xiruki\/.rvm\/gems\/ruby-1.9.3-p448@ensemblist\/gems\/therubyracer-0.11.3\/ext\/v8\/gem_make.out\n\nAn error occurred while installing therubyracer (0.11.3), and Bundler cannot continue.\nMake sure that `gem install therubyracer -v '0.11.3'` succeeds before bundling.\n<\/code><\/pre>\n<p>Any workarounds will be appreciated. Thanks in advanced.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi any idea(s) why I can&#8217;t install therubyracer gem for Mac 10.9 and Rails 3? Installing therubyracer (0.11.3) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. \/Users\/xiruki\/.rvm\/rubies\/ruby-1.9.3-p448\/bin\/ruby extconf.rb checking for main() in -lpthread&#8230; yes checking for main() in -lobjc&#8230; yes checking for v8.h&#8230; yes creating Makefile make compiling accessor.cc clang: warning: argument unused during compilation: [&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-7308","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7308","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=7308"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7308\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}