{"id":7361,"date":"2014-06-07T02:36:17","date_gmt":"2014-06-07T02:36:17","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/error-when-installing-libv8-3-11-8-3-collection-of-common-programming-errors\/"},"modified":"2014-06-07T02:36:17","modified_gmt":"2014-06-07T02:36:17","slug":"error-when-installing-libv8-3-11-8-3-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/error-when-installing-libv8-3-11-8-3-collection-of-common-programming-errors\/","title":{"rendered":"Error when installing libv8 3.11.8.3-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m running fresh install of OSX 10.9 Mavericks and XCode 5.0.1. When i&#8217;m trying to run bundle install in my project it fails on installing libv8 gem. Here&#8217;s the output:<\/p>\n<pre><code>ERROR:  Error installing libv8:\n        ERROR: Failed to build gem native extension.\n\n        \/Users\/user1\/.rvm\/rubies\/ruby-1.9.3-p448\/bin\/ruby extconf.rb\n    creating Makefile\n    Configured with: --prefix=\/Applications\/Xcode.app\/Contents\/Developer\/usr --with-gxx-include-dir=\/usr\/include\/c++\/4.2.1\n    Unable to find a compiler officially supported by v8.\n    It is recommended to use GCC v4.4 or higher\n    Using compiler: g++\n    \/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/libtool: file: \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/atomicops_internals_x86_gcc.o has no symbols\n    In file included from ..\/src\/accessors.cc:28:\n    In file included from ..\/src\/v8.h:60:\n    In file included from ..\/src\/objects-inl.h:38:\n    In file included from ..\/src\/elements.h:33:\n    In file included from ..\/src\/heap.h:41:\n    ..\/src\/store-buffer.h:229:9: error: private field 'heap_' is not used [-Werror,-Wunused-private-field]\n      Heap* heap_;\n            ^\n    1 error generated.\n    make[1]: *** [\/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/v8_base\/src\/accessors.o] Error 1\n    make: *** [x64.release] Error 2\n    GYP_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 -Dhost_arch=x64\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/allocation.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/atomicops_internals_x86_gcc.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/bignum.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/bignum-dtoa.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/cached-powers.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/conversions.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/diy-fp.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/dtoa.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/fast-dtoa.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/fixed-dtoa.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/once.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/preparse-data.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/preparser.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/preparser-api.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/scanner.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/strtod.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/token.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/unicode.o\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser_lib\/src\/utils.o\n      LIBTOOL-STATIC \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/libpreparser_lib.a\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/preparser\/preparser\/preparser-process.o\n      LINK(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/preparser\n      CXX(target) \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/vendor\/v8\/out\/x64.release\/obj.target\/v8_base\/src\/accessors.o\n\n\n    Gem files will remain installed in \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3 for inspection.\n    Results logged to \/Users\/user1\/.rvm\/gems\/ruby-1.9.3-p448\/gems\/libv8-3.11.8.3\/ext\/libv8\/gem_make.out\n<\/code><\/pre>\n<p>Also when doing<\/p>\n<pre><code>gcc -v\n<\/code><\/pre>\n<p>i&#8217;m getting<\/p>\n<pre><code>Configured with: --prefix=\/Applications\/Xcode.app\/Contents\/Developer\/usr --with-gxx-include-dir=\/usr\/include\/c++\/4.2.1\nApple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)\nTarget: x86_64-apple-darwin13.0.0\nThread model: posix\n<\/code><\/pre>\n<p>I&#8217;ve tried installing gcc via homebrew, but this doesn&#8217;t help. What are other possible solutions?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m running fresh install of OSX 10.9 Mavericks and XCode 5.0.1. When i&#8217;m trying to run bundle install in my project it fails on installing libv8 gem. Here&#8217;s the output: ERROR: Error installing libv8: ERROR: Failed to build gem native extension. \/Users\/user1\/.rvm\/rubies\/ruby-1.9.3-p448\/bin\/ruby extconf.rb creating Makefile Configured with: &#8211;prefix=\/Applications\/Xcode.app\/Contents\/Developer\/usr &#8211;with-gxx-include-dir=\/usr\/include\/c++\/4.2.1 Unable to find a compiler officially [&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-7361","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7361","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=7361"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7361\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}