Closed bkoelman closed 2 years ago
Try pressing ENTER without choosing an option. See https://github.com/oneclick/rubyinstaller2/issues/57
That didn't help. So I've uninstalled all and instead tried using https://rubyinstaller.org/downloads/archives/, which passes install of the prerequisites.
Now I'm facing the next error when running bundle install
:
E:\Bart\Source\Repos\CSharpGuidelines [master ≡]> bundle install
Fetching gem metadata from https://rubygems.org/.........
Your bundle is locked to nokogiri (1.10.10-x64-mingw32) from rubygems repository
https://rubygems.org/ or installed locally, but that version can no longer be
found in that source. That means the author of nokogiri (1.10.10-x64-mingw32)
has removed it. You'll need to update your bundle to a version other than
nokogiri (1.10.10-x64-mingw32) that hasn't been removed in order to install.
Got it working after fetching the latest master, which bumped nokogiri.
Which version of Ruby did you eventually install? Because I've upgraded from Ruby 2.4 to 3.1 on two machines and got it to work.
I used the one with the arrow in front of it from https://rubyinstaller.org/downloads/archives/.
Following the installation steps at https://github.com/dennisdoomen/CSharpGuidelines/blob/master/README.md, Building section, I get the following error:
Install MSYS2 and MINGW development toolchain failed
``` E:\Bart\Source\Repos\CSharpGuidelines [master ≡]> ridk install _____ _ _____ _ _ _ ___ | __ \ | | |_ _| | | | | | |__ \ | |__) | _| |__ _ _ | | _ __ ___| |_ __ _| | | ___ _ __ ) | | _ / | | | '_ \| | | | | | | '_ \/ __| __/ _` | | |/ _ \ '__/ / | | \ \ |_| | |_) | |_| |_| |_| | | \__ \ || (_| | | | __/ | / /_ |_| \_\__,_|_.__/ \__, |_____|_| |_|___/\__\__,_|_|_|\___|_||____| __/ | _ |___/ _|_ _ __ | | o __ _| _ _ | (_) | |^| | | |(_|(_)\^/_> 1 - MSYS2 base installation 2 - MSYS2 system update (optional) 3 - MSYS2 and MINGW development toolchain Which components shall be installed? If unsure press ENTER [1,3] 3 > sh -lc true MSYS2 seems to be properly installed Install MSYS2 and MINGW development toolchain ... > pacman -S --needed --noconfirm autoconf autogen automake-wrapper diffutils file gawk grep libtool m4 make patch sed texinfo texinfo-tex wget mingw-w64-ucrt-x8 6_64-binutils mingw-w64-ucrt-x86_64-crt-git mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-gcc-libs mingw-w64-ucrt-x86_64-headers-git mingw-w64-ucrt-x86_64-lib mangle-git mingw-w64-ucrt-x86_64-libwinpthread-git mingw-w64-ucrt-x86_64-make mingw-w64-ucrt-x86_64-tools-git mingw-w64-ucrt-x86_64-winpthreads-git pkgconf ming w-w64-ucrt-x86_64-pkgconf warning: file-5.37-1 is up to date -- skipping warning: gawk-5.0.0-1 is up to date -- skipping warning: grep-3.0-2 is up to date -- skipping warning: m4-1.4.18-2 is up to date -- skipping warning: sed-4.7-1 is up to date -- skipping warning: wget-1.20.3-1 is up to date -- skipping error: target not found: mingw-w64-ucrt-x86_64-binutils error: target not found: mingw-w64-ucrt-x86_64-crt-git error: target not found: mingw-w64-ucrt-x86_64-gcc error: target not found: mingw-w64-ucrt-x86_64-gcc-libs error: target not found: mingw-w64-ucrt-x86_64-headers-git error: target not found: mingw-w64-ucrt-x86_64-libmangle-git error: target not found: mingw-w64-ucrt-x86_64-libwinpthread-git error: target not found: mingw-w64-ucrt-x86_64-make error: target not found: mingw-w64-ucrt-x86_64-tools-git error: target not found: mingw-w64-ucrt-x86_64-winpthreads-git error: target not found: pkgconf error: target not found: mingw-w64-ucrt-x86_64-pkgconf Install MSYS2 and MINGW development toolchain failed Installation failed: pacman failed 1 - MSYS2 base installation 2 - MSYS2 system update (optional) 3 - MSYS2 and MINGW development toolchain Which components shall be installed? If unsure press ENTER [] ```Trying the next step fails too:
An error occurred while installing commonmarker (0.17.13), and Bundler cannot continue.
``` E:\Bart\Source\Repos\CSharpGuidelines [master ≡]> bundle install Fetching gem metadata from https://rubygems.org/......... Using minitest 5.15.0 Using bundler 2.3.6 Fetching concurrent-ruby 1.1.9 Fetching thread_safe 0.3.6 Fetching public_suffix 4.0.6 Fetching coffee-script-source 1.11.1 Installing coffee-script-source 1.11.1 Installing public_suffix 4.0.6 Installing thread_safe 0.3.6 Installing concurrent-ruby 1.1.9 Fetching execjs 2.8.1 Fetching colorator 1.1.0 Installing execjs 2.8.1 Fetching unf_ext 0.0.8 Installing colorator 1.1.0 Fetching eventmachine 1.2.7 Fetching http_parser.rb 0.8.0 Installing unf_ext 0.0.8 with native extensions Installing eventmachine 1.2.7 with native extensions Installing http_parser.rb 0.8.0 with native extensions Fetching ffi 1.15.5 (x64-mingw-ucrt) Installing ffi 1.15.5 (x64-mingw-ucrt) Fetching faraday-em_http 1.0.0 Installing faraday-em_http 1.0.0 Fetching faraday-em_synchrony 1.0.0 Fetching faraday-excon 1.1.0 Installing faraday-em_synchrony 1.0.0 Fetching faraday-httpclient 1.0.1 Installing faraday-excon 1.1.0 Fetching multipart-post 2.1.1 Fetching faraday-net_http 1.0.1 Installing faraday-httpclient 1.0.1 Fetching faraday-net_http_persistent 1.2.0 Installing multipart-post 2.1.1 Installing faraday-net_http 1.0.1 Fetching faraday-patron 1.0.0 Fetching faraday-rack 1.0.0 Installing faraday-net_http_persistent 1.2.0 Fetching faraday-retry 1.0.3 Using ruby2_keywords 0.0.5 Fetching forwardable-extended 2.6.0 Installing faraday-rack 1.0.0 Installing faraday-patron 1.0.0 Installing faraday-retry 1.0.3 Installing forwardable-extended 2.6.0 Fetching gemoji 3.0.1 Fetching rb-fsevent 0.11.0 Using rexml 3.2.5 Fetching liquid 4.0.3 Fetching mercenary 0.3.6 Installing rb-fsevent 0.11.0 Installing liquid 4.0.3 Installing mercenary 0.3.6 Installing gemoji 3.0.1 Fetching rouge 3.26.0 Fetching safe_yaml 1.0.5 Fetching mini_portile2 2.4.0 Installing safe_yaml 1.0.5 Installing mini_portile2 2.4.0 Fetching jekyll-paginate 1.1.0 Installing rouge 3.26.0 Fetching rubyzip 2.3.2 Installing jekyll-paginate 1.1.0 Fetching jekyll-swiss 1.0.0 Fetching unicode-display_width 1.8.0 Installing rubyzip 2.3.2 Installing jekyll-swiss 1.0.0 Installing unicode-display_width 1.8.0 Fetching webrick 1.7.0 Fetching addressable 2.8.0 Fetching tzinfo 1.2.9 Installing addressable 2.8.0 Installing webrick 1.7.0 Installing tzinfo 1.2.9 Fetching coffee-script 2.4.1 Fetching i18n 0.9.5 Installing coffee-script 2.4.1 Fetching ethon 0.15.0 Installing i18n 0.9.5 Installing ethon 0.15.0 Fetching rb-inotify 0.10.1 Installing rb-inotify 0.10.1 Fetching faraday-multipart 1.0.3 Fetching kramdown 2.3.1 Fetching pathutil 0.16.2 Installing faraday-multipart 1.0.3 Fetching nokogiri 1.10.10 Installing kramdown 2.3.1 Installing pathutil 0.16.2 Fetching terminal-table 1.8.0 Installing terminal-table 1.8.0 Fetching jekyll-coffeescript 1.1.1 Fetching activesupport 5.2.6 Installing jekyll-coffeescript 1.1.1 Fetching ruby-enum 0.9.0 Installing activesupport 5.2.6 Installing ruby-enum 0.9.0 Fetching sass-listen 4.0.0 Installing nokogiri 1.10.10 with native extensions Installing sass-listen 4.0.0 Fetching listen 3.7.1 Installing listen 3.7.1 Fetching typhoeus 1.4.0 Fetching faraday 1.9.3 Installing typhoeus 1.4.0 Installing faraday 1.9.3 Fetching commonmarker 0.17.13 Fetching sass 3.7.4 Fetching jekyll-watch 2.2.1 Installing jekyll-watch 2.2.1 Installing commonmarker 0.17.13 with native extensions Installing sass 3.7.4 Fetching kramdown-parser-gfm 1.1.0 Fetching sawyer 0.8.2 Installing kramdown-parser-gfm 1.1.0 Installing sawyer 0.8.2 Fetching octokit 4.22.0 Fetching jekyll-sass-converter 1.5.2 Installing octokit 4.22.0 Installing jekyll-sass-converter 1.5.2 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/commonmarker-0.17.13/ext/commonmarker C:/tools/ruby31/bin/ruby.exe -I C:/tools/ruby31/lib/ruby/3.1.0 -r ./siteconf20220204-3956-ijf98y.rb extconf.rb creating Makefile current directory: C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/commonmarker-0.17.13/ext/commonmarker make DESTDIR\= clean current directory: C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/commonmarker-0.17.13/ext/commonmarker make DESTDIR\= make failedNo such file or directory - make Gem files will remain installed in C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/commonmarker-0.17.13 for inspection. Results logged to C:/tools/ruby31/lib/ruby/gems/3.1.0/extensions/x64-mingw-ucrt/3.1.0/commonmarker-0.17.13/gem_make.out C:/tools/ruby31/lib/ruby/3.1.0/rubygems/ext/builder.rb:70:in `rescue in run' C:/tools/ruby31/lib/ruby/3.1.0/rubygems/ext/builder.rb:67:in `run' C:/tools/ruby31/lib/ruby/3.1.0/rubygems/ext/builder.rb:44:in `block in make' C:/tools/ruby31/lib/ruby/3.1.0/rubygems/ext/builder.rb:36:in `each' C:/tools/ruby31/lib/ruby/3.1.0/rubygems/ext/builder.rb:36:in `make' C:/tools/ruby31/lib/ruby/3.1.0/rubygems/ext/ext_conf_builder.rb:63:in `block in build' C:/tools/ruby31/lib/ruby/3.1.0/tempfile.rb:317:in `open' C:/tools/ruby31/lib/ruby/3.1.0/rubygems/ext/ext_conf_builder.rb:26:in `build' C:/tools/ruby31/lib/ruby/3.1.0/rubygems/ext/builder.rb:161:in `build_extension' C:/tools/ruby31/lib/ruby/3.1.0/rubygems/ext/builder.rb:195:in `block in build_extensions' C:/tools/ruby31/lib/ruby/3.1.0/rubygems/ext/builder.rb:192:in `each' C:/tools/ruby31/lib/ruby/3.1.0/rubygems/ext/builder.rb:192:in `build_extensions' C:/tools/ruby31/lib/ruby/3.1.0/rubygems/installer.rb:847:in `build_extensions' C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.3.6/lib/bundler/rubygems_gem_installer.rb:71:in `build_extensions' C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.3.6/lib/bundler/rubygems_gem_installer.rb:28:in `install' C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.3.6/lib/bundler/source/rubygems.rb:204:in `install' C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.3.6/lib/bundler/installer/gem_installer.rb:54:in `install' C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.3.6/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec' C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.3.6/lib/bundler/installer/parallel_installer.rb:186:in `do_install' C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.3.6/lib/bundler/installer/parallel_installer.rb:177:in `block in worker_pool' C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.3.6/lib/bundler/worker.rb:62:in `apply_func' C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.3.6/lib/bundler/worker.rb:57:in `block in process_queue' C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.3.6/lib/bundler/worker.rb:54:in `loop' C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.3.6/lib/bundler/worker.rb:54:in `process_queue' C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/bundler-2.3.6/lib/bundler/worker.rb:91:in `block (2 levels) in create_threads' An error occurred while installing commonmarker (0.17.13), and Bundler cannot continue. In Gemfile: github-pages was resolved to 220, which depends on jekyll-commonmark-ghpages was resolved to 0.1.6, which depends on jekyll-commonmark was resolved to 1.3.1, which depends on commonmarker Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: C:/tools/ruby31/lib/ruby/gems/3.1.0/gems/unf_ext-0.0.8/ext/unf_ext C:/tools/ruby31/bin/ruby.exe -I C:/tools/ruby31/lib/ruby/3.1.0 -r ./siteconf20220204-3956-8q5n7n.rb extconf.rb checking for -lstdc++... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/tools/ruby31/bin/$(RUBY_BASE_NAME) --with-static-libstdc++ --without-static-libstdc++ --with-stdc++-dir --without-stdc++-dir --with-stdc++-include --without-stdc++-include=${stdc++-dir}/include --with-stdc++-lib --without-stdc++-lib=${stdc++-dir}/lib --with-stdc++lib --without-stdc++lib C:/tools/ruby31/lib/ruby/3.1.0/mkmf.rb:498:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from C:/tools/ruby31/lib/ruby/3.1.0/mkmf.rb:591:in `try_link0' from C:/tools/ruby31/lib/ruby/3.1.0/mkmf.rb:609:in `try_link' from C:/tools/ruby31/lib/ruby/3.1.0/mkmf.rb:837:in `try_func' from C:/tools/ruby31/lib/ruby/3.1.0/mkmf.rb:1065:in `block in have_library' from C:/tools/ruby31/lib/ruby/3.1.0/mkmf.rb:1007:in `block in checking_for' from C:/tools/ruby31/lib/ruby/3.1.0/mkmf.rb:362:in `block (2 levels) in postpone' from C:/tools/ruby31/lib/ruby/3.1.0/mkmf.rb:332:in `open' from C:/tools/ruby31/lib/ruby/3.1.0/mkmf.rb:362:in `block in postpone' from C:/tools/ruby31/lib/ruby/3.1.0/mkmf.rb:332:in `open' from C:/tools/ruby31/lib/ruby/3.1.0/mkmf.rb:358:in `postpone' from C:/tools/ruby31/lib/ruby/3.1.0/mkmf.rb:1006:in `checking_for' from C:/tools/ruby31/lib/ruby/3.1.0/mkmf.rb:1060:in `have_library' from extconf.rb:6:in `Running from an elevated pwsh on Windows 8.1 x64. Any advice on how to proceed?