{"id":7379,"date":"2014-06-07T02:38:17","date_gmt":"2014-06-07T02:38:17","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/problem-about-libv8-collection-of-common-programming-errors\/"},"modified":"2014-06-07T02:38:17","modified_gmt":"2014-06-07T02:38:17","slug":"problem-about-libv8-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/problem-about-libv8-collection-of-common-programming-errors\/","title":{"rendered":"problem about libv8-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/12799ceacde467b37a7d5a1958f3260e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nxirukitepe<br \/>\nruby-on-rails ruby libv8<br \/>\nHi I&#8217;m always having trouble with regards to libv8 when bundling my gems:Here&#8217;s the error trace:Installing libv8 (3.11.8.17) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.\/Users\/xiruki\/.rvm\/rubies\/ruby-1.9.3-p448\/bin\/ruby extconf.rb creating Makefile Compiling v8 for x64 Using python 2.7.5 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 supported by v8.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ca6948dd56ddd469d967f35d6c4857c9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMilind<br \/>\nruby-on-rails ruby-on-rails-3 bundle bundler libv8<br \/>\ni am trying to pack gems in vendor folder,so when i used bundle install &#8211;path vendor,i got error as[root@localhost myapp]# bundle install &#8211;path vendor Fetching source index for http:\/\/rubygems.org\/ \/usr\/local\/rvm\/gems\/ruby-1.9.2-p290@global\/gems\/bundler-1.0.21\/lib\/bundler.rb:209: warning: Insecure world writable dir \/home\/developer in PATH, mode 040777 Using rake (10.1.0) Using multi_json (1.2.0) Using activesupport (3.1.10) Using builder (3.0.4) Using i18n (0.6.5) Using activemodel (3.1.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/74fdd8c7b6671398d54a7c0344852aa0?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\ngeneral<br \/>\nruby osx gcc libv8 osx-mavericks<br \/>\nI&#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.rbcreating MakefileConfigured with: &#8211;prefix=\/Applications\/Xcode.app\/Contents\/Developer\/usr &#8211;with-gxx-include-dir=\/usr\/include\/c++\/4.2.1Unable to find a compiler officially supported by v8.It is re<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f8869c89889c2ceff0fc7d7a253d9f8b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nChris S<br \/>\ngcc rubygems v8 therubyracer libv8<br \/>\nOK, I\u2019m at the end of my tether with this. There are a few similar questions but they all refer to therubyracer 0.10, and they mostly conclude that the problem can be fixed by upgrading to 0.12. I\u2019m having similar problems, but when I use 0.12.Similar questionsInstalling libv8 gem on Mavericks How to fix libv8 error from Gemfile on Mavericks?I\u2019m having problems using \u2018standard\u2019 (xcode?) gcc, and both apple-gcc42 and gcc from homebrew. I\u2019ve tried both &#8211;with-system-v8 and &#8211;without-system-v8, and<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6fbbca9a5c1f45d8b5888a793d570709?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJason Noble<br \/>\nrubygems gem libtool osx-mavericks libv8<br \/>\nI&#8217;m trying to install libv8 3.16.14.3 but getting an error on OSX Mavericks using latest stable rvm and ruby-1.9.3-p125.This is the output of running the command &#8216;gem install libv8&#8217;:~\/src(branch:master) \u00bb gem install libv8 Fetching: libv8-3.16.14.3.gem (100%) Building native extensions. This could take a while&#8230; ERROR: Error installing therubyracer:ERROR: Failed to build gem native extension.\/Users\/me\/.rvm\/rubies\/ruby-1.9.3-p125\/bin\/ruby extconf.rb creating Makefile Compiling v8 for x64 Using<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1ecc874283bc6250c80332ca2ae9b04d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser2490003<br \/>\nruby gcc osx-mavericks therubyracer libv8<br \/>\nI&#8217;m trying to install the following gem versions on Maverickslibv8 (3.16.14.3) therubyracer (0.12.1)Obviously therubyracer gems depends on libv8.1) Installing libv8What is libv8? My bit of research seems to indicaite it&#8217;s some sort of javascript library used by Google Chrome?I was having trouble installing it, but this great post had both my error and a well-explained answer on how to bypass it.So I installed libv8 withgem install libv8 &#8212; &#8211;with-system-v8I&#8217;ts my understanding that this installs<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5ee97b2e787fae3aa2ef8af888dbfc1d?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nAmeel<br \/>\nruby-on-rails twitter-bootstrap bootstrap libv8<br \/>\nwhen I run bundle install i have this error:Installing libv8 (3.16.14.3) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension .C:\/RailsInstaller\/Ruby2.0.0\/bin\/ruby.exe extconf.rbcreating Makefile Le chemin d&#8217;acc\u00e8s sp\u00e9cifi\u00e9 est introuvable. Le chemin d&#8217;acc\u00e8s sp\u00e9cifi\u00e9 est introuvable. Le chemin d&#8217;acc\u00e8s sp\u00e9cifi\u00e9 est introuvable. C:\/RailsInstaller\/Ruby2.0.0\/lib\/ruby\/gems\/2.0.0\/gems\/libv8-3.16.14.3\/ext\/libv8\/b uilder.rb:58:in setup_python!&#8217;: libv8 requires python 2 to be i<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d2c037ce48d12bd88ec6529f9bb39f0a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nat.<br \/>\nruby devise ruby-2.0 therubyracer libv8<br \/>\nI&#8217;m trying to get Devise to work, seems like it requires therubyracer gem. That requires the libv8 gem. I got an error it couldn&#8217;t find python2, so I installed python 2.7 and copied python.exe to python2.exe&#8230; and added C:\\Python27 to my path. Then it&#8217;s complaining:$ gem install therubyracer Building native extensions. This could take a while&#8230; ERROR: Error installing therubyracer:ERROR: Failed to build gem native extension.c:\/Ruby200-x64\/bin\/ruby.exe extconf.rb creating MakefileFile &#8220;&lt;st<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2f2af142baa07c3ca4e44f2d30d29cec?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser2318042<br \/>\nruby-on-rails libv8<br \/>\nThe problem is as following.Error installing libv8: ERROR: Failed to build gem native extension.D:\/Ruby193\/bin\/ruby.exe extconf.rbcreating MakefileThe system can not find the specified pathD:Ruby193\/lib\/ruby\/gems\/1.9.1\/gems\/libv8-3.11.8.17\/ext\/libv8\/builder.rb:49:in&#8217;setup_python!&#8217;:libv8 requires python 2 to be installed in order to build,but it is currently not available (RuntimeError)from D:Ruby193\/lib\/ruby\/gems\/1.9.1\/gems\/libv8-3.11.8.17\/ext\/libv8\/builder.rb:35:in &#8216;block in build_libv8!&#8217;from D<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0b77487aa32a10d0ba7dff2fcc21dbf9?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser3416462<br \/>\nruby-on-rails rubygems therubyracer libv8<br \/>\nHi I am trying to run an existing RubyOnRails server. I used bundle install and got an error installing libv8 3.16.14.3.this is the output for `gem install libv8 -v &#8216;3.16.14.3&#8217;Fetching: libv8-3.16.14.3.gem (100%) Temporarily enhancing PATH to include DevKit&#8230; Building native extensions. This could take a while&#8230; ERROR: Error installing libv8:ERROR: Failed to build gem native extension.`C:\/RailsInstaller\/Ruby1.9.3\/bin\/ruby.exe extconf.rb creating Makefile C:\/RailsInstaller\/Ruby1.9.3\/lib\/ruby\/<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c3d5c945dc5a0888b8b0c5635cf04ff4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAalap<br \/>\nruby windows therubyracer libv8<br \/>\nI finally got libv8 installed on my windows with gem install libv8 &#8212; &#8211;with-system-v8now when I am trying to install therubyracer I get gem install therubyracer Temporarily enhancing PATH to include DevKit&#8230; Building native extensions. This could take a while&#8230; Building native extensions. This could take a while&#8230; ERROR: Error installing therubyracer:ERROR: Failed to build gem native extension.C:\/Ruby193\/bin\/ruby.exe extconf.rb &#8211;with-system-v8 checking for main() in -lpthread&#8230; no chec<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e2d9f50763267a42652ad78a88d88d34?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser3179985<br \/>\nruby-on-rails ruby therubyracer libv8<br \/>\nI was installing therubyracer and I got the following error:ERROR: Error installing therubyracer:ERROR: Failed to build gem native extension. I was looking at other posts from StackOverflow, but none of them changed this. I was using version &#8216;3.3.10.4&#8217; of libv8. Does anyone know how to fix this? Thanks<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/4ac023deab306d177799bcdfec1b70a1?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser816278<br \/>\nruby-on-rails windows-7 gem ruby-1.9.3 libv8<br \/>\nCan&#8217;t install libv8 3.11.8.17 gem. I already looked around and found out that it doesn&#8217;t support Windows. Though I&#8217;m still looking for a workaround? Installing libv8 (3.11.8.17) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.C:\/RailsInstaller\/Ruby1.9.3\/bin\/ruby.exe extconf.rb creating Makefile Das System kann den angegebenen Pfad nicht finden. Das System kann den angegebenen Pfad nicht finden. Das System kann den angegebenen Pfad nicht finden. C:\/RailsInstaller\/<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/dac697cc57e1ecc3eb47d1ee4226fbf7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLitmus<br \/>\nruby-on-rails ruby windows libv8<br \/>\nI made a rails project with,rails new test_bootstrap.succeeded.moved to the project dir and added the gemsgem &#8220;therubyracer&#8221; gem &#8220;less-rails&#8221; #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS gem &#8220;twitter-bootstrap-rails&#8221;and run bundle installafter that, i have this error.Installing libv8 (3.16.14.3) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.c:\/RailsInstaller\/Ruby1.9.3\/bin\/ruby.exe extconf.rb creating Makefile ??? ??? ?? ? ????.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/01647fd568f49ef5f1b17203a51aa92c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTom<br \/>\njava android jni v8 libv8<br \/>\nI am trying to call v8 from a JNI call in an android application from a background thread. It is causing a runtime crash with a complaint about v8::ObjectTemplate::New(v8::Handleto reproduce call the following jnivoid JSfunc() {v8::Isolate* currentIsolate = v8::Isolate::GetCurrent();if(!currentIsolate) {currentIsolate = v8::Isolate::New();}v8::HandleScope handle_scope(currentIsolate);v8::Handle&lt;v8::ObjectTemplate&gt; global = v8::ObjectTemplate::New();}from the following Java code{final Threa<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n<p>I discovery a place to host code\u3001demo\u3001 blog and websites.<br \/>\nSite access is fast but not money<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.m5zn.com\/newuploads\/2014\/01\/30\/jpg\/e7da807964b1fff.jpg\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>xirukitepe ruby-on-rails ruby libv8 Hi I&#8217;m always having trouble with regards to libv8 when bundling my gems:Here&#8217;s the error trace:Installing libv8 (3.11.8.17) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.\/Users\/xiruki\/.rvm\/rubies\/ruby-1.9.3-p448\/bin\/ruby extconf.rb creating Makefile Compiling v8 for x64 Using python 2.7.5 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 supported by v8. Milind ruby-on-rails [&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-7379","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7379","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=7379"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7379\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}