How to Solve "Could not find MIME type database" Error on M1 MacBook
- Categories:
- ruby
When installing ruby gems for a new project I get the following error on my M1 MacBook.
After some Googling, there are 2 solutions to solve this error.
Manually Copy & Paste File freedesktop.org.xml
First, create a file named freedesktop.org.xml
, copy the file content found from Freedesktop and save it to freedesktop.org.xml
.
Second, set the FREEDESKTOP_MIME_TYPES_PATH
environment variable.
Install Dependency via Homebrew
Alternatively, if Homebrew is installed on your M1 Macbook, just run brew install shared-mime-info
.
References
Sponsored Links
- Register to Digital Ocean cloud with this link and get $200 credit
- Looking for cheap CDN? Bunny is the answer
- Alternative Cloud besides AWS and Digital Ocean