LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-10-2012, 08:33 PM   #1
VisionIncision
Member
 
Registered: Dec 2011
Location: Wiltshire, UK
Distribution: Slackware, Gentoo
Posts: 130

Rep: Reputation: 3
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.
 
Old 10-11-2012, 04:40 AM   #2
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,179

Rep: Reputation: 236Reputation: 236Reputation: 236
Quote:
Originally Posted by VisionIncision View Post
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 View Post
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".
 
Old 10-12-2012, 04:05 AM   #3
VisionIncision
Member
 
Registered: Dec 2011
Location: Wiltshire, UK
Distribution: Slackware, Gentoo
Posts: 130

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by guanx View Post
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.
 
Old 10-12-2012, 04:11 AM   #4
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476Reputation: 1476
Quote:
Originally Posted by VisionIncision View Post

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.
 
1 members found this post helpful.
Old 10-12-2012, 04:29 AM   #5
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,179

Rep: Reputation: 236Reputation: 236Reputation: 236
Quote:
Originally Posted by Petri Kaukasoina View Post
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 View Post
Unfortunately, nothing happens. Thanks anyway.
In *nix if "nothing happens" then everything is successful.
 
Old 10-12-2012, 04:51 AM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,100

Rep: Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177Reputation: 4177
Quote:
Originally Posted by Petri Kaukasoina View Post
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.
 
Old 10-16-2012, 04:17 PM   #7
VisionIncision
Member
 
Registered: Dec 2011
Location: Wiltshire, UK
Distribution: Slackware, Gentoo
Posts: 130

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by ponce View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fatal error: fontconfig/fontconfig.h: No such file or directory bogzab Slackware 3 11-07-2011 03:13 PM
Problem in installing Mathematica 5.2 on FC5 somitras Linux - Software 2 03-22-2007 09:19 AM
Problem with Mathematica 5.2 and Maple 10.06 suses Linux - Software 0 03-15-2007 10:13 PM
problem with fontconfig adilturbo Linux - Newbie 0 06-24-2006 08:59 PM
Another problem........fontconfig-2.2.2 / fontconfig-2.2.94 xonner Linux - Software 2 04-28-2004 10:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration