Mathematica
Installation
Fairly recent installation files for mathematica are usually located under s15.fluid.tuwien.ac.at/home/E322/Software/Mathematica. Navigate to, e.g., Linux/v11.1/ and copy the files Linuxsh.md5 and Mathematica_11.1.0_LINUX.sh to your computer. Make the install script executable and execute it,
sudo chmod +x Mathematica_11.1.0_LINUX.sh # With graphical user interface: Give lserver.tuwien.ac.at as the license server sudo ./Mathematica_11.1.0_LINUX.sh # Without graphical user interface sudo ./Mathematica_11.1.0_LINUX.sh --nox11 -- -auto -nodesktop -execdir=/usr/local/bin/ -targetdir=/usr/local/share/Mathematica/11.1/ # Other option: --keep to keep the temporary installation directory, e.g., .32153 # Give the license server echo "!mathematica.it.tuwien.ac.at" | sudo tee /usr/local/share/Mathematica/11.1/Configuration/Licensing/mathpass
Pay attention, that the installation script creates a symbolic link called mcc in /usr/local/bin, which has the same name as a symbolic link created by matlab.
Installation on s15
# move away old executables cd /usr/local/bin for f in MathKernel Mathematica WolframKernel math mathematica wolfram wolframcc; do ls -l $f mv $f ../libexec/130$f ln -s /usr/local/libexec/count 130$f # record calls in /var/log/countcalls done export V=13.3 export VMINOR=.1 mv mcc mcc-matlab cd /home/E322/Software/Mathematica/Linux/$V$VMINOR/ chmod +x Mathematica_$V${VMINOR}_LINUX.sh ./Mathematica_$V${VMINOR}_LINUX.sh --nox11 -- -auto -nodesktop \ -execdir=/usr/local/bin -targetdir=/usr/local/share/Mathematica/$V # other options to the self-extractable script # --help # --keep .. keep the extracted directory, usally .23421 in the current dir # options to the embedded installer script (after --) # - verbose cd /usr/local/bin && rm mcc; mv matlab-mcc mcc echo '!mathematica.it.tuwien.ac.at' >/usr/local/share/Mathematica/$V/Configuration/Licensing/mathpass
Fonts
Für mathematica müssen Fonts für den X-server installiert werden, auch wenn auf math gerechnet wird.
- Fonts auf den eigenen Rechner kopieren. Auf math liegen die fonts unter
/usr/local/share/Wolfram/Mathematica/5.2/SystemFiles/Fonts. Es müssen die beiden sub-directories BDF und Type1 auf den lokalen Rechner kopiert werden, z.B:
>ssh math
>cd /usr/local/share/Wolfram/Mathematica/5.2/SystemFiles/Fonts
>scp -r BDF Type1 root@meinrechner:/usr/local/lib/X11/mathfonts
- Dem X-Server den Pfad zu den Fonts mitteilen, indem /etc/X11/xorg.conf oder XF86Config editiert wird. Am Schluss der Sektion "Files" den Pfad zu den eben kopierten directories angeben:
FontPath "/usr/local/lib/X11/mathfonts/BDF"
FontPath "/usr/local/lib/X11/mathfonts/Type1" - X-Server neu starten: Unter KDE mit Strg-Alt-Backspace.
Testen: >xfontsel sollte under fndry "wri" finden. Dann sollte auch
>ssh math
math>mathematica
funktionieren.
Das Installieren mit dem Tool des Windowmanagers, z.B. KDE: Startmenü -> System Settings -> Appearance -> FontInstaller, war nicht ausreichend.
Fehlerbehebung
Eine Reihe von Fehlermeldungen die ähnlich ausschauen wie
X Error of failed request: RenderBadPicture (invalid Picture parameter)
- Major opcode of failed request: 154 (RENDER)
Minor opcode of failed request: 7 (RenderFreePicture) Picture id in failed request: 0x2a012df
- Current serial number in output stream: 46876
- Major opcode of failed request: 154 (RENDER)
wird durch das Setzen der Variable XLIB_SKIP_ARGB_VISUALS=1 verhindert:
#!/bin/bash (-) # inspieriert durch # http://forums.wolfram.com/mathgroup/archive/2007/Feb/msg00110.html export XLIB_SKIP_ARGB_VISUALS=1 mathematica