Difference between revisions of "Mathematica"

From ArchWiki
Jump to: navigation, search
m (Troubleshooting: Use link syntex.)
m (Style fixes, Removed section about 8.0.1 since not in AUR (which was the only information). Changed a package name.)
Line 12: Line 12:
 
{{Article summary link|Official Support|http://www.wolfram.com/support/}}
 
{{Article summary link|Official Support|http://www.wolfram.com/support/}}
 
{{Article summary end}}
 
{{Article summary end}}
 +
 +
{{Accuracy|Many informations here may be outdated.}}
 +
 
== Installation ==
 
== Installation ==
 +
 
=== Mathematica 6 ===
 
=== Mathematica 6 ===
 +
 
==== Mounting iso ====
 
==== Mounting iso ====
One way to mount the Mathematica .iso is to create '''/media/iso''' and add the following line to the fstab:
+
 
  /<location/of/mathematica.iso> /media/iso iso9660 exec,ro,user,noauto,loop=/dev/loop0  0 0
+
One way to mount the Mathematica .iso is to create ''/media/iso'' and add the following line to the fstab:
 +
  /''location/of/mathematica.iso'' /media/iso iso9660 exec,ro,user,noauto,loop=/dev/loop0  0 0
 
Now you can mount it with:
 
Now you can mount it with:
 
  mount /media/iso
 
  mount /media/iso
 +
 
==== Running the Installer ====
 
==== Running the Installer ====
 +
 
You can start the installer by navigating to:
 
You can start the installer by navigating to:
 
  /Unix/Installer
 
  /Unix/Installer
 
Run ./MathInstaller with:
 
Run ./MathInstaller with:
 
  sh ./MathInstaller
 
  sh ./MathInstaller
{{Box Note|If you do not place the '''sh''' in front, then you will get an error about a bad interpreter}}
+
{{Note|If you do not place the "sh" in front, then you will get an error about a bad interpreter.}}
  
 
==== Fonts ====
 
==== Fonts ====
Add the directories containing Type1 and BDF fonts to your FontPath.  
+
 
 +
Add the directories containing Type1 and BDF fonts to your FontPath.
  
 
==== Troubleshooting ====
 
==== Troubleshooting ====
If you have font rendering problems where certain symbols do not show up (i.e. "/" appears as a square), try uninstalling the package "mathematica-fonts".
+
 
 +
If you have font rendering problems where certain symbols do not show up (i.e. "/" appears as a square), try uninstalling {{Pkg|font-mathematica}}.
  
 
Also, try [http://mathematica.stackexchange.com/questions/1158/invisible-conjugate-glyph-in-the-linux-frontend this] solution.
 
Also, try [http://mathematica.stackexchange.com/questions/1158/invisible-conjugate-glyph-in-the-linux-frontend this] solution.
Line 44: Line 54:
 
Follow instructions.
 
Follow instructions.
  
For KDE users, the Mathematica icon may appear in the Lost & Found category. To solve this, execute the following as root:
+
For KDE users, the Mathematica icon may appear in the ''Lost & Found'' category. To solve this, execute the following as root:
  
  sudo ln -s /etc/xdg/menus/applications-merged /etc/xdg/menus/kde-applications-merged
+
  # ln -s /etc/xdg/menus/applications-merged /etc/xdg/menus/kde-applications-merged
 
+
 
+
=== Mathematica 8 ===
+
 
+
==== Mathematica 8.0.1 ====
+
 
+
There is a package on the [[AUR]] for Mathematica 8.0.1-2 available [https://aur.archlinux.org/packages.php?ID=47077 here].
+
The Mathematica_8.0.1_LINUX.sh installation script is required.
+
  
 
=== Mathematica 8.0.4.0 ===
 
=== Mathematica 8.0.4.0 ===
Line 63: Line 65:
 
The first issue assumes you are trying to use nVidia, CUDA and OpenCL libraries within Mathematica.
 
The first issue assumes you are trying to use nVidia, CUDA and OpenCL libraries within Mathematica.
  
The 64-bit archlinux nvidia and opencl driver packages install libraries in /usr/lib, not in /usr/lib64 as does nVidia's binary installer. This is not a problem; /usr/lib is the correct location for 64-bit libraries on a 64-bit arch system. However, a 64-bit install of Mathematica will assume the drivers are installed in /usr/lib64; other distributions that Mathematica has been tested on have their drivers in that location. The easiest method to overcome this is to make a symlink from /usr/lib64 -> /usr/lib. Mathematica will be able to find nVidia, CUDA, and OpenCL libraries this way without further tweaking.
+
The 64-bit archlinux nVidia and opencl driver packages install libraries in {{ic|/usr/lib}}, not in {{ic|/usr/lib64}} as does nVidia's binary installer. This is not a problem: {{ic|/usr/lib}} is the correct location for 64-bit libraries on a 64-bit arch system. However, a 64-bit install of Mathematica will assume the drivers are installed in {{ic|/usr/lib64}}; other distributions that Mathematica has been tested on have their drivers in that location. The easiest method to overcome this is to make a symlink from {{ic|/usr/lib64}} to {{ic|/usr/lib}}. Mathematica will be able to find nVidia, CUDA, and OpenCL libraries this way without further tweaking.
  
 
A second, separate but partial solution, is to set the following environment variables:
 
A second, separate but partial solution, is to set the following environment variables:
  
export NVIDIA_DRIVER_LIBRARY_PATH=/usr/lib/libnvidia-tls.so
+
export NVIDIA_DRIVER_LIBRARY_PATH=/usr/lib/libnvidia-tls.so
 +
 
 +
export CUDA_LIBRARY_PATH=/usr/lib/libcuda.so
 +
 
 +
This second method, however, still will not permit Mathematica to find the OpenCL libraries in {{ic|/usr/local}} as Mathematica seems hardwired to find them in {{ic|/usr/lib64}}.
  
export CUDA_LIBRARY_PATH=/usr/lib/libcuda.so
+
The second issue with Mathematica 8 in 64-bit archlinux (may also affect 32-bit environments; but not tested) is a reproducible crash when performing WolframAlpha[] functions. By default, Mathematica is configured to detect the system's proxy settings when configuring how to connect to the internet to fetch data. A "bug" exists that will eventually crash Mathematica when the calling library is used. A workaround is to avoid this library call altogether by configuring Mathematica to "directly connect" to the internet. (''Edit > Preferences > Internet Connectivity > Proxy Settings''). This bug has been reported to Wolfram.
  
This second method, however, still will not permit Mathematica to find the OpenCL libraries in /usr/local as Mathematica seems hardwired to find them in /usr/lib64.
+
=== Mathematica 9 ===
  
The second issue with Mathematica 8 in 64-bit archlinux (may also affect 32-bit environments; but not tested) is a reproducible crash when performing WolframAlpha[] functions.  By default, Mathematica is configured to detect the system's proxy settings when configuring how to connect to the internet to fetch data. A "bug" exists that will eventually crash Mathematica when the calling library is used. A workaround is to avoid this library call altogether by configuring Mathematica to "directly connect" to the internet. (Edit -> Preferences -> Internet Connectivity -> Proxy Settings).  This bug has been reported to Wolfram.
+
[[pacman|Install]] {{AUR|mathematica}} from the [[AUR]]. The ''Mathematica_9.0.1_LINUX.sh'' installation script is required.

Revision as of 16:13, 8 September 2013

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Mathematica#)
Template:Article summary start

Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary heading Template:Article summary link Template:Article summary link Template:Article summary end

Tango-inaccurate.pngThe factual accuracy of this article or section is disputed.Tango-inaccurate.png

Reason: Many informations here may be outdated. (Discuss in Talk:Mathematica#)

Installation

Mathematica 6

Mounting iso

One way to mount the Mathematica .iso is to create /media/iso and add the following line to the fstab:

/location/of/mathematica.iso /media/iso iso9660 exec,ro,user,noauto,loop=/dev/loop0   0 0

Now you can mount it with:

mount /media/iso

Running the Installer

You can start the installer by navigating to:

/Unix/Installer

Run ./MathInstaller with:

sh ./MathInstaller
Note: If you do not place the "sh" in front, then you will get an error about a bad interpreter.

Fonts

Add the directories containing Type1 and BDF fonts to your FontPath.

Troubleshooting

If you have font rendering problems where certain symbols do not show up (i.e. "/" appears as a square), try uninstalling font-mathematica.

Also, try this solution.

Mathematica 7

Mathematica 7 is much easier to install.

tar xf Mathematica-7.0.1.tar.gz
cd Unix/Installer
./MathInstaller

Follow instructions.

For KDE users, the Mathematica icon may appear in the Lost & Found category. To solve this, execute the following as root:

# ln -s /etc/xdg/menus/applications-merged /etc/xdg/menus/kde-applications-merged

Mathematica 8.0.4.0

On 64-bit machines, two known issues are present; but solutions are provided. The second issue is present on 64-bit installs: but not yet confirmed on a 32-bit arch setup.

The first issue assumes you are trying to use nVidia, CUDA and OpenCL libraries within Mathematica.

The 64-bit archlinux nVidia and opencl driver packages install libraries in /usr/lib, not in /usr/lib64 as does nVidia's binary installer. This is not a problem: /usr/lib is the correct location for 64-bit libraries on a 64-bit arch system. However, a 64-bit install of Mathematica will assume the drivers are installed in /usr/lib64; other distributions that Mathematica has been tested on have their drivers in that location. The easiest method to overcome this is to make a symlink from /usr/lib64 to /usr/lib. Mathematica will be able to find nVidia, CUDA, and OpenCL libraries this way without further tweaking.

A second, separate but partial solution, is to set the following environment variables:

export NVIDIA_DRIVER_LIBRARY_PATH=/usr/lib/libnvidia-tls.so
export CUDA_LIBRARY_PATH=/usr/lib/libcuda.so

This second method, however, still will not permit Mathematica to find the OpenCL libraries in /usr/local as Mathematica seems hardwired to find them in /usr/lib64.

The second issue with Mathematica 8 in 64-bit archlinux (may also affect 32-bit environments; but not tested) is a reproducible crash when performing WolframAlpha[] functions. By default, Mathematica is configured to detect the system's proxy settings when configuring how to connect to the internet to fetch data. A "bug" exists that will eventually crash Mathematica when the calling library is used. A workaround is to avoid this library call altogether by configuring Mathematica to "directly connect" to the internet. (Edit > Preferences > Internet Connectivity > Proxy Settings). This bug has been reported to Wolfram.

Mathematica 9

Install mathematicaAUR from the AUR. The Mathematica_9.0.1_LINUX.sh installation script is required.