MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Mathematica won't run if LANG var is set to pt_BR

  • To: mathgroup at
  • Subject: [mg60260] Re: Mathematica won't run if LANG var is set to pt_BR
  • From: Scott Hemphill <hemphill at>
  • Date: Fri, 9 Sep 2005 04:07:00 -0400 (EDT)
  • References: <dfm7v8$hcn$> <dfov2u$f77$>
  • Reply-to: hemphill at
  • Sender: owner-wri-mathgroup at

Scott Hemphill <hemphill at> writes:

> Renan <renan.birck at> writes:
> > Hello,
> > 
> > I have installed Mathematica in Linux (Ubuntu Linux 5.04 - essentially
> > Debian) and works OK, as long as my LANG environment variable is set to 'C'
> > (which means 'no specific language') or 'US'.
> > 
> > But I want to use the GNOME window manager in Portuguese, and this,
> > "automagically" sets the LANG variable to pt_BR (which means 'Brazilian
> > Portuguese'). When this is set, Mathematica will not run, it will error at
> > startup with "An illegal right-hand side value was specified for the cell
> > style option "FontColor"".
> > 
> > Anybody knows how to fix this problem?
> > 
> > I use Mathematica 5.0.
> I use Mathematica 5.1, but I expect my solution to work for you.  In my
> installation, links for "math", "mathematica" and "Mathematica" were placed
> in /usr/local/bin.  I replaced each of these links with the following
> shell script:
>   #!/bin/bash
>   MATH=`basename "$0"`
>   export LANG=C
>   export LD_ASSUME_KERNEL=2.4.1
>   export OMP_NUM_THREADS=1
>   exec /usr/local/Wolfram/Mathematica/5.1/Executables/"$MATH" "$@"

You should also replace "MathKernel".  I don't know whether "mcc" benefits
from any of these environment variables, but it wouldn't hurt to replace it

Scott Hemphill	hemphill at
"This isn't flying.  This is falling, with style."  -- Buzz Lightyear

  • Prev by Date: Looking for n for which all 2-partitions are prime partitions.
  • Next by Date: New SetFaceAndFont Palette, please help me to check!
  • Previous by thread: Re: Mathematica won't run if LANG var is set to pt_BR
  • Next by thread: true limit of mathematica ? Help me !!!