al-folio: libv8-node (16.10.0.0) installation error
Describe the bug
Upon forking and then cloning the current version of the repo to my machine, bundle install
produces an error, specifically:
An error occurred while installing libv8-node (16.10.0.0), and Bundler cannot
continue.
In Gemfile:
mini_racer was resolved to 0.6.2, which depends on
libv8-node
To Reproduce I followed the instructions in the “Getting Started” guide, under “Local Setup”.
System
- OS: Windows 10 64-bit
- Browser: Chrome Version 101.0.4951.67
- Jekyll version: 4.2.2
- Ruby version: 3.1.2p20 (2022-04-12 revision 4491bb740a)
Additional context I’m completely new to Jekyll and Ruby, so apologies if I’m missing something obvious.
Below I paste the full output. This was after the second time I ran bundle install
$ bundle install
Fetching gem metadata from https://rubygems.org/........
Resolving dependencies....
Using bundler 2.3.14
Using concurrent-ruby 1.1.10
Using minitest 5.15.0
Using public_suffix 4.0.7
Using latex-decode 0.3.2
Using namae 1.1.1
Using rexml 3.2.5
Using colorator 1.1.0
Using crass 1.0.6
Using cssminify2 2.0.1
Using eventmachine 1.2.7
Using http_parser.rb 0.8.0
Using execjs 2.8.1
Using racc 1.6.0
Using sax-machine 1.3.2
Using ffi 1.15.5 (x64-mingw-ucrt)
Using forwardable-extended 2.6.0
Using gemoji 3.0.1
Using htmlcompressor 0.4.0
Using mime-types-data 3.2022.0105
Using multi_xml 0.6.0
Using rb-fsevent 0.11.1
Using liquid 4.0.3
Using mercenary 0.4.0
Using rouge 3.28.0
Using safe_yaml 1.0.5
Using unicode-display_width 1.8.0
Using jekyll-email-protect 1.1.0
Using json 2.6.2
Using jekyll-twitter-plugin 2.1.0
Using unicode_utils 1.4.0
Using webrick 1.7.0
Using i18n 1.10.0
Using tzinfo 2.0.4
Using addressable 2.8.0
Using citeproc 1.0.10
Using csl 1.6.0
Using bibtex-ruby 6.0.0
Using nokogiri 1.13.6 (x64-mingw-ucrt)
Using kramdown 2.4.0
Using em-websocket 0.5.3
Fetching libv8-node 16.10.0.0
Using mime-types 3.4.1
Using sassc 2.4.0
Using rb-inotify 0.10.1
Using pathutil 0.16.2
Using uglifier 4.2.0
Using terminal-table 2.0.0
Using json-minify 0.0.3
Using activesupport 7.0.3
Using citeproc-ruby 1.1.14
Using csl-styles 1.0.1.11
Using loofah 2.18.0
Using httparty 0.20.0
Using kramdown-parser-gfm 1.1.0
Using jekyll-sass-converter 2.2.0
Using listen 3.7.1
Using feedjira 3.2.1
Using html-pipeline 2.14.1
Using jekyll-watch 2.2.1
Using jekyll 4.2.2
Using jekyll-archives 2.2.1
Using jekyll-diagrams 0.10.0
Using jekyll-feed 0.16.0
Using jekyll-imagemagick 1.4.0
Using jekyll-minifier 0.1.10
Using jekyll-paginate-v2 3.0.0
Using jekyll-scholar 7.1.0
Using jekyll-sitemap 1.4.0
Using jekyll-target-blank 2.0.0
Using jemoji 0.12.0
Installing libv8-node 16.10.0.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/libv8-node-16.10.0.0/ext/libv8-node
C:/myprograms/Ruby31-x64/bin/ruby.exe -I C:/myprograms/Ruby31-x64/lib/ruby/3.1.0
-r ./siteconf20220601-33924-8or4sy.rb extconf.rb
creating Makefile
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/libv8-node-16.10.0.0/ext/libv8-node/builder.rb:12:in
`build_libv8!': failed to download node 16.10.0 (Libv8::Node::BuilderError)
from
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/libv8-node-16.10.0.0/ext/libv8-node/location.rb:30:in
`install!'
from extconf.rb:9:in `<main>'
==== in
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/libv8-node-16.10.0.0/ext/libv8-node
==== running
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/libv8-node-16.10.0.0/libexec/download-node
extconf failed, exit code 1
Gem files will remain installed in
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/libv8-node-16.10.0.0 for
inspection.
Results logged to
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/extensions/x64-mingw-ucrt/3.1.0/libv8-node-16.10.0.0/gem_make.out
C:/myprograms/Ruby31-x64/lib/ruby/3.1.0/rubygems/ext/builder.rb:95:in `run'
C:/myprograms/Ruby31-x64/lib/ruby/3.1.0/rubygems/ext/ext_conf_builder.rb:47:in
`block in build'
C:/myprograms/Ruby31-x64/lib/ruby/3.1.0/tempfile.rb:317:in `open'
C:/myprograms/Ruby31-x64/lib/ruby/3.1.0/rubygems/ext/ext_conf_builder.rb:26:in
`build'
C:/myprograms/Ruby31-x64/lib/ruby/3.1.0/rubygems/ext/builder.rb:161:in
`build_extension'
C:/myprograms/Ruby31-x64/lib/ruby/3.1.0/rubygems/ext/builder.rb:195:in `block
in build_extensions'
C:/myprograms/Ruby31-x64/lib/ruby/3.1.0/rubygems/ext/builder.rb:192:in `each'
C:/myprograms/Ruby31-x64/lib/ruby/3.1.0/rubygems/ext/builder.rb:192:in
`build_extensions'
C:/myprograms/Ruby31-x64/lib/ruby/3.1.0/rubygems/installer.rb:853:in
`build_extensions'
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.14/lib/bundler/rubygems_gem_installer.rb:71:in
`build_extensions'
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.14/lib/bundler/rubygems_gem_installer.rb:28:in
`install'
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.14/lib/bundler/source/rubygems.rb:204:in
`install'
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.14/lib/bundler/installer/gem_installer.rb:54:in
`install'
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.14/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.14/lib/bundler/installer/parallel_installer.rb:186:in
`do_install'
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.14/lib/bundler/installer/parallel_installer.rb:177:in
`block in worker_pool'
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.14/lib/bundler/worker.rb:62:in
`apply_func'
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.14/lib/bundler/worker.rb:57:in
`block in process_queue'
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.14/lib/bundler/worker.rb:54:in
`loop'
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.14/lib/bundler/worker.rb:54:in
`process_queue'
C:/myprograms/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.14/lib/bundler/worker.rb:91:in
`block (2 levels) in create_threads'
An error occurred while installing libv8-node (16.10.0.0), and Bundler cannot
continue.
In Gemfile:
mini_racer was resolved to 0.6.2, which depends on
libv8-node
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 30
- Comments: 40 (1 by maintainers)
Commits related to this issue
- Unable to continue past ex.1. 'mini-racer' broken on Windows Unable to install 'mini_racer' dependencies on Windows based machines. https://github.com/rubyjs/mini_racer/issues/252 https://github.co... — committed to Cell9/Web-palvelinohjelmointi-Ruby-on-Rails by Cell9 2 years ago
- Update Gemfile commenting out miniracer based on advice at https://github.com/alshedivat/al-folio/issues/691 — committed to yazenkk/yazenkk.github.io by yazenkk 2 years ago
I have had the same Issue on Window 10, as many of you suggested I fixed it in the following way:
gem 'wdm', '~> 0.1.0'
on the GemFile => Groups# gem 'mini_racer'
$ jekyll serve
command…and it finally works!I was afraid that the more I tried to solve it, the smarter the problem became!
Thank you All for being so Helpful! 🙏
There could be a possible loophole, just disable (comment out) the
min_racer
ortherubyracer
plugin. And install Node.js. Then try to build again.But make sure when committing to the remote, the plugin should not be disabled.
I can successfully run the website locally on my computer. However, for deployment, I face the following error. Note that I’m a windows user and a beginner (thanks for your patience)!
Summary:
gem env
to check your gem path, and then go togems\jekyll-imagemagick-1.4.0\lib\jekyll-imagemagick\convert.rb
in my ruby directory and change the command fromconvert
tomagick convert
.Everything works, but I have not tried to push it to GitHub yet.
@petrasvestartas I could not figure out the
mini_racer
problem, so I commented it out in my Gemfile for now. I wanted to mention that your other error may be due to the fact thatconvert.exe
is a windows application that is being called instead ofmagick convert
.To fix it, I went into
gems\jekyll-imagemagick-1.4.0\lib\jekyll-imagemagick\convert.rb
in my ruby directory and changed the command fromconvert
tomagick convert
.I had this problem, but solved it by including this line in the gemfile
gem 'wdm', '>=0.1.0'
This tells Ruby you’re on a windows and libv8 loads successfully. However, you need to comment it out for deployment.
I had the same issue and solved it by doing these (I’m on macOS 12.4):
gem uninstall nokogiri
, then choose the one with “arm64” suffixbundle install
brew install imagemagick
(thanks jbudlender for this tip)I also did a bunch of other things but I think these are all that matter. Hope that helps!
Same problem here in Iran, I just deleted this twitter markdown file.
Hmm, That’s just odd to me. It seems to me that docker can be installed on any computer. Docker can even be installed on small low-resource raspberry pie computers. Are you sure about that?
I was facing the same problem with the libv8-node (16.10.0.0) installation error on Windows until yesterday. But, I just followed the steps in this https://www.taniarascia.com/make-a-static-website-with-jekyll/, mentioned in the Readme file under the ‘Getting started’ section, and was able to solve this issue.