'I am trying to install mailcatcher but am getting this error?

I am using rails 7.0.2.3 and ruby 3.0.3 and I am not able to understand what the problem is. I searched on the internet and found nothing.

Building native extensions. This could take a while...
ERROR:  Error installing mailcatcher:
        ERROR: Failed to build gem native extension.
current directory: C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/eventmachine-1.0.9.1/ext/fastfilereader
C:/Ruby31-x64/bin/ruby.exe -I C:/Ruby31-x64/lib/ruby/3.1.0 -r ./siteconf20220418-6832-scw8z6.rb extconf.rb
creating Makefile
current directory: C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/eventmachine-1.0.9.1/ext/fastfilereader
make DESTDIR\= clean
current directory: C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/eventmachine-1.0.9.1/ext/fastfilereader
make DESTDIR\=
generating fastfilereaderext-x64-mingw-ucrt.def
compiling mapper.cpp
compiling rubymain.cpp


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source