I have a project made in Ruby on Rails. Being in the command line I write and execute the command "rails server". I get the following:
Could not find gem 'wdm (>= 0.1.0) x64-mingw32' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
I heeded the message, and typed and ran that "bundle install" command. The result was the following:
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 12.3.2
Using concurrent-ruby 1.1.5
Using i18n 1.6.0
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.3
Using builder 3.2.3
Using erubi 1.8.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.3 (x64-mingw32)
Using rails-dom-testing 2.0.3
Using crass 1.0.4
Using loofah 2.2.3
Using rails-html-sanitizer 1.0.4
Using actionview 5.2.3
Using rack 2.0.7
Using rack-test 1.1.0
Using actionpack 5.2.3
Using nio4r 2.3.1
Using websocket-extensions 0.1.3
Using websocket-driver 0.7.0
Using actioncable 5.2.3
Using globalid 0.4.2
Using activejob 5.2.3
Using mini_mime 1.0.1
Using mail 2.7.1
Using actionmailer 5.2.3
Using activemodel 5.2.3
Using arel 9.0.0
Using activerecord 5.2.3
Using mimemagic 0.3.3
Using marcel 0.3.3
Using activestorage 5.2.3
Using public_suffix 3.0.3
Using addressable 2.6.0
Using io-like 0.3.0
Using archive-zip 0.12.0
Using execjs 2.7.0
Using autoprefixer-rails 9.5.1.1
Using bcrypt 3.1.12 (x64-mingw32)
Using bindex 0.7.0
Using msgpack 1.2.10 (x64-mingw32)
Fetching bootsnap 1.4.4
Installing bootsnap 1.4.4 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/ext/bootsnap
C:/Ruby25-x64/bin/ruby.exe -I C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0 -r
./siteconf20191111-14144-oc1pjz.rb extconf.rb
creating Makefile
current directory:
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/ext/bootsnap
make "DESTDIR=" clean
current directory:
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/ext/bootsnap
make "DESTDIR="
generating bootsnap-x64-mingw32.def
compiling bootsnap.c
linking shared-object bootsnap/bootsnap.so
C:/Ruby25-x64/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
bootsnap.o:bootsnap.c:(.text+0x557): undefined reference to `__strcat_chk'
C:/Ruby25-x64/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
bootsnap.o:bootsnap.c:(.text+0xa07): undefined reference to `__chk_fail'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:259: bootsnap.so] Error 1
make failed, exit code 2
Gem files will remain installed in
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4 for inspection.
Results logged to
C:/Ruby25-x64/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/bootsnap-1.4.4/gem_make.out
An error occurred while installing bootsnap (1.4.4), and Bundler cannot
continue.
Make sure that `gem install bootsnap -v '1.4.4' --source
'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
bootsnap
There seems to be a problem with the bootsnap. It is what gives me to understand, what is the problem exactly, I do not know. And again I paid attention to the message by executing the command indicated there "gem install bootsnap -v '1.4.4' --source ' https://rubygems.org/ '" Result:
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing bootsnap:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/ext/bootsnap
C:/Ruby25-x64/bin/ruby.exe -I C:/Ruby25-x64/lib/ruby/site_ruby/2.5.0 -r ./siteconf20191111-10600-w75ju8.rb extconf.rb
creating Makefile
current directory: C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/ext/bootsnap
make "DESTDIR=" clean
current directory: C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4/ext/bootsnap
make "DESTDIR="
generating bootsnap-x64-mingw32.def
compiling bootsnap.c
linking shared-object bootsnap/bootsnap.so
C:/Ruby25-x64/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bootsnap.o:bootsnap.c:(.text+0x557): undefined reference to `__strcat_chk'
C:/Ruby25-x64/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: bootsnap.o:bootsnap.c:(.text+0xa07): undefined reference to `__chk_fail'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:259: bootsnap.so] Error 1
make failed, exit code 2
Gem files will remain installed in C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.4 for inspection.
Results logged to C:/Ruby25-x64/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/bootsnap-1.4.4/gem_make.out
Searching the internet, I found several times the same thing that they recommended to edit the gemfile and put gem 'bootsnap', '>= 1.4.4', require: false
. But I did it, run bundle install
it and it didn't come out again exactly what I put above. I'm very VERY new to what Ruby is and everything related, so I don't know where to go, so to speak. Don't try anything else, because I don't know what I could try either.
Thank you very much in advance for any help you can give me!
Quoting the bootsnap documentation:
Apparently there have been some attempts to make it compatible with windows , but I don't think there is official support. The options I see are:
1.1.0
, or rather, the one you had in yourGemfile.lock
.