handyfloss

Because FLOSS is handy, isn’t it?

Mathematica fonts error

Posted by isilanes on June 20, 2006

Blog moved to: handyfloss.net

Entry available at: http://handyfloss.net/2006.06/mathematica-fonts-error/

I reproduce here a new entry in the (pompously self named) GNU/Linux Troubleshooting subsection of the Linux Stuff section of my Home Page. The original entry can be directly accessed here.

Problem

I don’t have Mathematica installed on my PC, but I execute it remotely at a computer that does have it. However, I have found the following error when executing mathematica remotely:

xset:  bad font path element (#77), possible causes are:
    Directory does not exist or has wrong permissions    
    Directory missing fonts.dir    
    Incorrect font server address or syntax
xset:  bad font path element (#77), possible causes are:    
    Directory does not exist or has wrong permissions    
    Directory missing fonts.dir    
    Incorrect font server address or syntax

It means that I don’t have some fonts installed in my computer, so I googled for the string ‘”Directory missing fonts.dir” mathematica’, and found this Wolfram Inc. support page. Read it, but don’t follow its instructions literally. Instead, do the following:

Solution

Download the corresponding tar.gz here (for GNU/Linux), which is the place referred to in the support link above, and untar it anywere. It contains a directory called Fonts/, which in turn contains AFM/, BDF/ and Type1/. You have to su to root and create the directory /usr/lib/X11/fonts/Mathematica/, and place the directories AFM/, BDF/ and Type1/ there. Actually, only BDF/ seemed necessary for me.

Next, the support page I mention above says you have to execute:

% xset fp+ /usr/lib/X11/fonts/Mathematica/Type1

and

% xset fp+ /usr/lib/X11/fonts/Mathematica/BDF

However, the first one (Type1), will faill again with the same message that caused all this trouble in the first place:

xset:  bad font path element (#77), possible causes are:    
    Directory does not exist or has wrong permissions    
    Directory missing fonts.dir    
    Incorrect font server address or syntax

You will be at a loss, but don’t despair: actually only the latter (BDF) is needed, and it won’t give you any error. After that, the remote execution of Mathematica should work fine.

4 Responses to “Mathematica fonts error”

  1. Jul said

    The new version of the fonts can be found at http://support.wolfram.com/technotes/latestfonts.en.html

  2. Ricky B. said

    You are my hero. You too, Jul.

  3. […] References: https://wiki.lepp.cornell.edu/lepp/bin/view/Computing/CygwinXorg http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-error-font-eof https://handyfloss.wordpress.com/2006/06/20/mathematica-fonts-error […]

  4. […] follow these steps for linux and these for windows. (windows solution not yet […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: