Windows - error upgrading to 3.7.3 [solved]

I just tried to upgrade from 3.6 to 3.73 and got an error. I’m working on upgrading ruby at the moment hopefully that is the problem.

Maybe I didn’t have devkit installed.

Error:

gem install jekyll
Fetching: jekyll-watch-2.0.0.gem (100%)
Successfully installed jekyll-watch-2.0.0
Fetching: concurrent-ruby-1.0.5.gem (100%)
Successfully installed concurrent-ruby-1.0.5
Fetching: i18n-0.9.5.gem (100%)
Successfully installed i18n-0.9.5
Fetching: eventmachine-1.2.5-x64-mingw32.gem (100%)
Successfully installed eventmachine-1.2.5-x64-mingw32
Fetching: http_parser.rb-0.6.0.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing jekyll:
        ERROR: Failed to build gem native extension.

    C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20180409-20992-150n16a.rb extconf.rb
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
generating ruby_http_parser-x64-mingw32.def
compiling ruby_http_parser.c
make: x86_64-w64-mingw32-gcc: Command not found
make: *** [ruby_http_parser.o] Error 127

make failed, exit code 2

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/http_parser.rb-0.6.0 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/http_parser.rb-0.6.0/gem_make.out
PS S:\> jekyll -V
jekyll 3.6.0 | Error:  Whoops, we can't understand your command.
jekyll 3.6.0 | Error:  invalid option: -V
jekyll 3.6.0 | Error:  Run your command again with the --help switch to see available options.

I updated ruby from 2.2 to 2.5.

I did the installer that had devkit, which was probably the problem - I think my 2.2 install didn’t have that and one of the gems needed to be built (http_parser).

Once installed I edited the path to remove the path to the old version.

Did gem install jekyll and it worked with no error.