ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Mimemagic - Could not find MIME type database in the following locations:
    Ruby, Rails 2021. 6. 14. 03:32
    반응형

     

    #27 402.0 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
    #27 402.0 
    #27 402.0 current directory:
    #27 402.0 /usr/local/lib/ruby/gems/2.6.0/gems/mimemagic-0.3.10/ext/mimemagic
    #27 402.0 /usr/local/bin/ruby -rrubygems
    #27 402.0 /usr/local/lib/ruby/gems/2.6.0/gems/rake-13.0.0/exe/rake
    #27 402.0 RUBYARCHDIR\=/usr/local/lib/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0/mimemagic-0.3.10
    #27 402.0 RUBYLIBDIR\=/usr/local/lib/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0/mimemagic-0.3.10
    #27 402.0 rake aborted!
    #27 402.0 Could not find MIME type database in the following locations:
    #27 402.0 ["/usr/local/share/mime/packages/freedesktop.org.xml",
    #27 402.0 "/opt/homebrew/share/mime/packages/freedesktop.org.xml",
    #27 402.0 "/opt/local/share/mime/packages/freedesktop.org.xml",
    #27 402.0 "/usr/share/mime/packages/freedesktop.org.xml"]
    #27 402.0 
    #27 402.0 Ensure you have either installed the shared-mime-info package for your
    #27 402.0 distribution, or
    #27 402.0 obtain a version of freedesktop.org.xml and set FREEDESKTOP_MIME_TYPES_PATH to
    #27 402.0 the location
    #27 402.0 of that file.
    #27 402.0 
    #27 402.0 This gem might be installed as a dependency of some bigger package, such as
    #27 402.0 rails, activestorage,
    #27 402.0 axlsx or cucumber. While most of these packages use the functionality of this
    #27 402.0 gem, some gems have
    #27 402.0 included this gem by accident. Set USE_FREEDESKTOP_PLACEHOLDER=true if you are
    #27 402.0 certain that you
    #27 402.0 do not need this gem, and wish to skip the inclusion of freedesktop.org.xml.
    #27 402.0 
    #27 402.0 The FREEDESKTOP_PLACEHOLDER option is meant as a transitional feature, and will
    #27 402.0 be deprecated in
    #27 402.0 the next release.
    #27 402.0 
    #27 402.0 Tasks: TOP => default
    #27 402.0 (See full trace by running task with --trace)
    #27 402.0 
    #27 402.0 rake failed, exit code 1
    #27 402.0 
    #27 402.0 Gem files will remain installed in
    #27 402.0 /usr/local/lib/ruby/gems/2.6.0/gems/mimemagic-0.3.10 for inspection.
    #27 402.0 Results logged to
    #27 402.0 /usr/local/lib/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0/mimemagic-0.3.10/gem_make.out
    #27 402.0 
    #27 402.0 An error occurred while installing mimemagic (0.3.10), and Bundler cannot
    #27 402.0 continue.
    #27 402.0 Make sure that `gem install mimemagic -v '0.3.10' --source
    #27 402.0 'https://rubygems.org/'` succeeds before bundling.
    #27 402.0 
    #27 402.0 In Gemfile:
    #27 402.0   rails_admin was resolved to 2.0.0, which depends on
    #27 402.0     rails was resolved to 6.0.0, which depends on
    #27 402.0       actionmailbox was resolved to 6.0.0, which depends on
    #27 402.0         activestorage was resolved to 6.0.0, which depends on
    #27 402.0           marcel was resolved to 0.3.3, which depends on
    #27 402.0             mimemagic

     

     

    Mac 사용자

     brew install shared-mime-info
     bundle update mimemagic

     

    Linux

     

    apt-get update && apt-get install -y shared-mime-info

     

    Docker

     

    RUN apt-get update && apt-get install -y shared-mime-info
    반응형
Designed by Tistory.