{"id":7370,"date":"2014-06-07T02:37:04","date_gmt":"2014-06-07T02:37:04","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/cannot-install-gem-therubyracer-in-os-x-mavericks-collection-of-common-programming-errors\/"},"modified":"2014-06-07T02:37:04","modified_gmt":"2014-06-07T02:37:04","slug":"cannot-install-gem-therubyracer-in-os-x-mavericks-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/cannot-install-gem-therubyracer-in-os-x-mavericks-collection-of-common-programming-errors\/","title":{"rendered":"Cannot install gem &#39;therubyracer&#39; in OS X Mavericks-Collection of common programming errors"},"content":{"rendered":"<p>I am new to mac and tried to <code>bundle install<\/code> a cloned rails repo. I got an error while installing libv8 gem, googled and found a solution and did<\/p>\n<pre><code>brew install libv8\ngem install libv8 -- --with-system-v8\n<\/code><\/pre>\n<p>Next I got struck at therebyracer gem, the full trace is as follows<\/p>\n<pre><code>Building native extensions.  This could take a while...\nERROR:  Error installing therubyracer:\n    ERROR: Failed to build gem native extension.\n\n    \/Users\/anand\/.rvm\/rubies\/ruby-2.0.0-p247\/bin\/ruby extconf.rb\ncreating Makefile\nCompiling v8 for x64\nUsing python 2.7.5\nConfigured with: --prefix=\/Applications\/Xcode.app\/Contents\/Developer\/usr --with-gxx-include-dir=\/usr\/include\/c++\/4.2.1\nUnable to find a compiler officially supported by v8.\nIt is recommended to use GCC v4.4 or higher\nUsing compiler: g++\nConfigured with: --prefix=\/Applications\/Xcode.app\/Contents\/Developer\/usr --with-gxx-include-dir=\/usr\/include\/c++\/4.2.1\nUnable to find a compiler officially supported by v8.\nIt is recommended to use GCC v4.4 or higher\nlibtool: unrecognized option `-static'\nlibtool: Try `libtool --help' for more information.\nmake[1]: *** [\/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/libpreparser_lib.a] Error 1\nmake: *** [x64.release] Error 2\n\/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/ext\/libv8\/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '\/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/tools\/gyp\/libv8_base.a'to exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound)\n    from \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/ext\/libv8\/location.rb:35:in `each'\n    from \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/ext\/libv8\/location.rb:35:in `verify_installation!'\n    from \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/ext\/libv8\/location.rb:26:in `install!'\n    from extconf.rb:7:in `'\nGYP_GENERATORS=make \\\n    build\/gyp\/gyp --generator-output=\"out\" build\/all.gyp \\\n                  -Ibuild\/standalone.gypi --depth=. \\\n                  -Dv8_target_arch=x64 \\\n                  -S.x64  -Dv8_enable_backtrace=1 -Dv8_can_use_vfp2_instructions=true -Darm_fpu=vfpv2 -Dv8_can_use_vfp3_instructions=true -Darm_fpu=vfpv3\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/allocation.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/atomicops_internals_x86_gcc.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/bignum.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/bignum-dtoa.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/cached-powers.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/conversions.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/diy-fp.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/dtoa.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/fast-dtoa.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/fixed-dtoa.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/once.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/preparse-data.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/preparser.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/preparser-api.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/scanner.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/strtod.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/token.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/unicode.o\n  CXX(target) \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/utils.o\n  LIBTOOL-STATIC \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/vendor\/v8\/out\/x64.release\/libpreparser_lib.a\n\n\nGem files will remain installed in \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3 for inspection.\nResults logged to \/Users\/anand\/.rvm\/gems\/ruby-2.0.0-p247\/gems\/libv8-3.16.14.3\/ext\/libv8\/gem_make.out\n<\/code><\/pre>\n<p>I think this is a problem with Mavericks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am new to mac and tried to bundle install a cloned rails repo. I got an error while installing libv8 gem, googled and found a solution and did brew install libv8 gem install libv8 &#8212; &#8211;with-system-v8 Next I got struck at therebyracer gem, the full trace is as follows Building native extensions. This could [&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-7370","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7370","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=7370"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7370\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}