Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
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.
  1. #11
    Linux Newbie
    Join Date
    Sep 2005
    Location
    CZ
    Posts
    164

    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 exactly that string.

  2. #12
    Just 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

  3. #13
    Just 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 : " (???)

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •