However both point releases correspond to the exact underlying code. The only difference is the version number. This way, the most recent version of the gem always has binary distributions, but if, for whatever reason, you have problems with the binaries, you can always "lock in" your dependency a single point version down, forcing it to compile from source. So for example, 5. If you want to use the latest unstable version of the gem you can do so by specifying the git repo as a gem source.
Just make sure you add the following to your Gemfile :. You can find more info on using a git repo as a gem source in Bundler's documentation.
If you can fix V8's build system so that it correctly compiles for your platform, we'll pull it right in! This project spun off of therubyracer which depends on having a specific version of V8 to compile and run against.
However, actually delivering that version reliably to all the different platforms proved to be a challenge to say the least. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Skip to content. And libv8 is the ruby interface for the V8 engine used by therubyracer.
The therubyracer gem embeds the V8 Javascript Interpreter into ruby. With it, we can call Javascript functions or use Javascript objects directly in ruby runtime. The installation failed as therubyracer gem calls the libv8 gem, and it fails to build a native extension, i. I am able to repeat the same bug with:. The error in your case may be different but still there is one interesting finding here.
The therubyracer gem installation script is trying to compile v8 from source! I am not saying it is impossible, but I got a feeling that the compilation is the cause of issues for many of us. Just the first few posts I found when I google "libv8 error":. Compiling something requires all the dependencies to be present.
Perhaps it is easier just to download a suitable binary of v8 instead of building it from source. On line 60 we can see this code:. This is a wrond python command syntax in Windows. You should use a double quotes, like this:. After fixing this script, you should run gem install with "-l" use local only key. If you don't, gem will download a script with an error again. Skip to content. Star New issue. Jump to bottom. Labels type: feature request. Copy link.
Same problem here. Win7, 64bit Ruby 1. Hi, if I build from master, it fails with below error message. Using libv8 3. And then I ran rake clean which ran successful. Version 3. Command failed with status : [make dependencies It still produces an error. Building native extensions. This could take a while Successfully installed libv Installing RDoc documentation for libv Here is the fix Actual error is It appears that i didn't bundle exec rake checkout before: now error looks You can also install from source as a shared library I can't build v8 on windows with mingw.
Solution found! I have complied the necessary dlls and gem files and upload them to github. Prerequisites for compilation: Python 2. Please provide a Windows version. Unix is great, but many of us need Windows support. The python version check uses incorrect syntax that errors on windows Sign up for free to join this conversation on GitHub. I have installed libv8 gem on windows by using this command: gem install libv8 -- --with-system-v8 Then when I try to install therubyracer it gives me long error message: Installing therubyracer 0.
Check the mkmf. You may need configuration options. However, it could not be located. You may need to special --with-v8-dir options if it is in a non-standard location thanks, The Mgmt What I understood is that therubyracer wants to find v8. D 6, 10 10 gold badges 46 46 silver badges bronze badges. Cannot help that much, because I just use Linux, but you need the "devel" source files for v8. As Paulo said, you need devel version for v8. May be you could try installing nodejs on your box instead of working around that with therubyracer , if you are trying to run your rake tasks only.
I have downloaded raw source of v8 from github, how to install therubyracer with it? Add a comment. Active Oldest Votes. Nav 1, 14 14 silver badges 23 23 bronze badges. Shin Kim Shin Kim 4, 1 1 gold badge 26 26 silver badges 31 31 bronze badges.
0コメント