LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Fontconfig problem with Mathematica 8 (http://www.linuxquestions.org/questions/slackware-14/fontconfig-problem-with-mathematica-8-a-4175431566/)

VisionIncision 10-10-2012 08:33 PM

Fontconfig problem with Mathematica 8
 
Hi all,
So I downloaded a trial version of Mathematica 8, and cannot get it to work on Slackware64 14.00. I am sure its font related as GNUPlot also moans about font issues.

When trying to start Mathematica from the terminal:-

Code:

mktemp: cannot create temp file /tmp/fontsXXXXX: Invalid argument
/usr/local/bin/mathematica: line 218: ${TMP_FONTCONFIG_FILE}: ambiguous redirect
Fontconfig warning: no <cachedir> elements found. Check configuration.
Fontconfig warning: adding <cachedir>/var/cache/fontconfig</cachedir>
Fontconfig warning: adding <cachedir>~/.fontconfig</cachedir>

Any insight would be great.

guanx 10-11-2012 04:40 AM

Quote:

Originally Posted by VisionIncision (Post 4802588)
Hi all,
So I downloaded a trial version of Mathematica 8, and cannot get it to work on Slackware64 14.00. I am sure its font related as GNUPlot also moans about font issues.

Probably that's a different problem. For gnuplot you can use the full path to a font file to specify a font.


Quote:

Originally Posted by VisionIncision (Post 4802588)
When trying to start Mathematica from the terminal:-

Code:

mktemp: cannot create temp file /tmp/fontsXXXXX: Invalid argument
/usr/local/bin/mathematica: line 218: ${TMP_FONTCONFIG_FILE}: ambiguous redirect
Fontconfig warning: no <cachedir> elements found. Check configuration.
Fontconfig warning: adding <cachedir>/var/cache/fontconfig</cachedir>
Fontconfig warning: adding <cachedir>~/.fontconfig</cachedir>

Any insight would be great.

It may be helpful to insert a "set -x" (without quotes) to the beginning of the script "/usr/local/bin/mathematica".

VisionIncision 10-12-2012 04:05 AM

Quote:

Originally Posted by guanx (Post 4802820)
Probably that's a different problem. For gnuplot you can use the full path to a font file to specify a font.



It may be helpful to insert a "set -x" (without quotes) to the beginning of the script "/usr/local/bin/mathematica".

Unfortunately, nothing happens. Thanks anyway.

Petri Kaukasoina 10-12-2012 04:11 AM

Quote:

Originally Posted by VisionIncision (Post 4802588)

Code:

mktemp: cannot create temp file /tmp/fontsXXXXX: Invalid argument

There seems to be a mistake in that script: one X is missing. Look for 'mktemp /tmp/fontsXXXXX' and add the sixth X to that.

guanx 10-12-2012 04:29 AM

Quote:

Originally Posted by Petri Kaukasoina (Post 4803698)
There seems to be a mistake in that script: one X is missing. Look for 'mktemp /tmp/fontsXXXXX' and add the sixth X to that.

Very sharp eyes!

Quote:

Originally Posted by VisionIncision (Post 4803693)
Unfortunately, nothing happens. Thanks anyway.

In *nix if "nothing happens" then everything is successful.

ponce 10-12-2012 04:51 AM

Quote:

Originally Posted by Petri Kaukasoina (Post 4803698)
There seems to be a mistake in that script: one X is missing. Look for 'mktemp /tmp/fontsXXXXX' and add the sixth X to that.

yupz, looks like an error in Mathematica's launch scripts: changing that in line 202 of the Mathematica one fixed launching it here.

VisionIncision 10-16-2012 04:17 PM

Quote:

Originally Posted by ponce (Post 4803720)
yupz, looks like an error in Mathematica's launch scripts: changing that in line 202 of the Mathematica one fixed launching it here.

Sorry, I know its been a while, but BRILLIANT!!!!

Thank you.


All times are GMT -5. The time now is 03:17 PM.