Results 11 to 13 of 13
The string
Code:
text/Mathematica
should appear in the magic file as a description of a file type. Is it there?
If it is there, I'm quite lost
Edit:
Must be ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-11-2007 #11Linux Newbie
- Join Date
- Sep 2005
- Location
- CZ
- Posts
- 164
The string
should appear in the magic file as a description of a file type. Is it there?Code:text/Mathematica
If it is there, I'm quite lost

Edit:
Must be exactly that string.
- 05-11-2007 #12Just Joined!
- Join Date
- Jan 2007
- Location
- Germany
- Posts
- 73
Hello,
yes, in magic there stands "text/Mathematica" as it should be. This is a problem.
I am not quite sure but I suspect the problem might be with installation of KDE on my laptop (upgrade SuSe 10.1->10.2) or with SuSe 10.2 in general.
KDE on my laptop is installed to /opt/kde3/..., but somewhy there is a clone @ /etc/opt/kde3/
Nevertheless, thank You very much for your help,
Best wishes,
Xaleandr
- 05-12-2007 #13Just Joined!
- Join Date
- Jan 2007
- Location
- Germany
- Posts
- 73
Hello,
finally I found solution--hope this info might be useful for somebody else.
According to "strace file MyFile.nb", the problem was that content-based type recognition is using file
"/usr/share/misc/magic.mgc ",
which is a "compiled" version of "magic"[see "man file" for more details, "file -C magic" to compile magic -->magic.mgc ].
On our system "magic.mgc" was obsolete, which caused all problems.
Thus, if I write some crazy app which uses some nonstandard binary format, and want it to be correctly recognized on any machine, I have to add recompilation of "magic" in
Makefile/ " install : " (???)


Reply With Quote
