Subject: | Failure to open /usr/share/mime/magic |
Installed shared-mime-info:
shared-mime-info.i386 0.19-3.el5 installed
Error message:
[root@host ~]# perl test_mime.pl test_mime.pl
Magic file '/usr/share/mime/magic' doesn't seem to be a magic file at
test_mime.pl line 24
mimetype: text/plain
It will report every file text file (HTML, XML, CSS, Perl, ...) as
text/plain and every binary file as 'application/octet-stream'.
I've done an update of the MIME databases, but that doesn't work.
# /usr/bin/update-mime-database /usr/share/mime/
***
* Updating MIME database in /usr/share/mime...
Wrote 501 strings at 20 - 298c
Wrote aliases at 298c - 2b88
Wrote parents at 2b88 - 3584
Wrote literal globs at 3584 - 35e0
Wrote suffix globs at 35e0 - 69f8
Wrote full globs at 69f8 - 6a1c
Wrote magic at 6a1c - c37c
Wrote namespace list at c37c - c38c
***
I've attached the generated magic file
Subject: | magic |
Message body not shown because it is not plain text.