How to Solve ruby rails Install Error [Windows]

Fetching mimemagic 0.3.10
Installing mimemagic 0.3.10 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Ruby26/bin/ruby.exe -rrubygems
rake aborted!
Could not find MIME type database in the following locations:

Ensure you have either installed the shared-mime-info package for your
distribution, or
obtain a version of and set FREEDESKTOP_MIME_TYPES_PATH to
the location
of that file.

This gem might be installed as a dependency of some bigger package, such as
rails, activestorage,
axlsx or cucumber. While most of these packages use the functionality of this
gem, some gems have
included this gem by accident. Set USE_FREEDESKTOP_PLACEHOLDER=true if you are
certain that you
do not need this gem, and wish to skip the inclusion of

For this problem, just create a new file with the following contents, and then create a new name FREEDESKTOP_MIME_TYPES_PATH in the windows environment variable, pointing to this file, including the directory name and file name.

Read More: