Package Details: mathematica 13.0.1-1

Git Clone URL: (read-only, click to copy)
Package Base: mathematica
Description: A computational software program used in scientific, engineering, and mathematical fields and other areas of technical computing.
Upstream URL:
Licenses: proprietary
Submitter: Feanor12
Maintainer: JP-Ellis
Last Packager: JP-Ellis
Votes: 74
Popularity: 0.009959
First Submitted: 2011-03-03 21:27 (UTC)
Last Updated: 2022-03-15 22:38 (UTC)

Dependencies (50)

Sources (1)

Pinned Comments

Latest Comments

JP-Ellis commented on 2022-07-22 00:51 (UTC)

I've been a bit busy these part few weeks, but I am intending to get to this upgrade on the weekend. The split from a single installer to separate program and docs installer is good, though it does mean that the upgrade is less trivial. Thanks @mane.andrew for the patch though!

mane.andrea commented on 2022-07-21 13:44 (UTC)

They decided to change the way the software is shipped: now you have to download the binary and the documentation as separate files and install them separately.

I took the liberty of adding a patch. You can use it as a starting point, I don't think it's perfect, but it works (I built it in a chroot and installed it just now)

diff --git a/.SRCINFO b/.SRCINFO
index 6a72d0d..cae6dbc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = mathematica
    pkgdesc = A computational software program used in scientific, engineering, and mathematical fields and other areas of technical computing.
-   pkgver = 13.0.1
+   pkgver = 13.1.0
    pkgrel = 1
    url =
    arch = x86_64
@@ -56,7 +56,9 @@ pkgbase = mathematica
    optdepends = tesseract
    optdepends = zlib
    options = !strip
-   source = local://
-   md5sums = cdeae74ad72420c1dea5027f7f8c569e
+   source = local://
+   source = local://
+   md5sums = 43fee918e0520250daab1d962fb3a594
+   md5sums = b041ba25be3e8ec517cd845bf1f338da

 pkgname = mathematica
diff --git a/.gitignore b/.gitignore
index 0e5f346..009aae3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
\ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
index e071fd0..534eca5 100644
@@ -7,7 +7,7 @@
 # Contributor: teratomata <>

 pkgdesc="A computational software program used in scientific, engineering, and mathematical fields and other areas of technical computing."
@@ -70,8 +70,10 @@ optdepends=(
+        "local://WLDocs_${pkgver}")
+         'b041ba25be3e8ec517cd845bf1f338da')

 ## To build this package you need to place the mathematica-installer into your
@@ -96,19 +98,40 @@ prepare() {
         exit 1

-    chmod +x ${srcdir}/Mathematica_${pkgver}
+    chmod +x ${srcdir}/Mathematica_${pkgver}
+    chmod +x ${srcdir}/WLDocs_${pkgver}

 package() {
+    # The installer calls hostname, which is not necessarily available
+    hostname() { echo '$HOSTNAME'; }
+    export -f hostname
     msg2 "Running Mathematica installer"
-    sh ${srcdir}/Mathematica_${pkgver} -- \
+    sh ${srcdir}/Mathematica_${pkgver} -- \
              -execdir=${pkgdir}/usr/bin \
              -targetdir=${pkgdir}/opt/Mathematica \
     msg2 "Errors related to 'xdg-icon-resource' and 'xdg-desktop-menu' are to be expected during Mathematica's installation."
     rm ${pkgdir}/opt/Mathematica/InstallErrors

+    ## The documentation takes up the majority of the disk space (7.8G+).  If you
+    ## do not wish to have the documentation installed, comment out the following
+     sh ${srcdir}/WLDocs_${pkgver} -- \
+             -execdir=${pkgdir}/usr/bin \
+             -targetdir=${pkgdir}/opt/Mathematica_docs \
+             -auto
+    # Merge contents of Mathematica_docs with Mathematica
+    rm -r ${pkgdir}/opt/Mathematica/Documentation/English/{SearchIndex,System}
+    mv ${pkgdir}/opt/Mathematica_docs/Documentation/English/* ${pkgdir}/opt/Mathematica/Documentation/English/
+    rm -r ${pkgdir}/opt/Mathematica_docs/
+    ## until here
     msg2 "Fixing symbolic links"
     cd ${pkgdir}/opt/Mathematica/Executables
     rm wolframscript
@@ -169,10 +192,4 @@ package() {

     msg2 "Fixing file permissions"
     chmod go-w -R ${pkgdir}/*
-    ## The documentation takes up the majority of the disk space (6.8G+).  If you
-    ## do not wish to have the documentation installed, uncomment the following
-    ## lines.
-    # msg2 "Removing documentation"
-    # rm -rf "${pkgdir}/opt/Mathematica/Documentation"

iyanmv commented on 2022-06-02 11:16 (UTC)

RabbitLime: you can define an env variable QT_QPA_PLATFORM=wayland;xcb, so you don't have to manually add this in the Exec line of each app.

RabbitLime commented on 2022-03-24 10:07 (UTC)

Can't launch it in Gnome Wayland. But just add 'QT_QPA_PLATFORM=xcb', then solve it.

JP-Ellis commented on 2022-03-15 22:40 (UTC)

Updated to 13.0.1

This release includes hundreds of bug fixes, feature enhancements and performance improvements, including a security update for log4j.

Thanks for everyone's patience as I was waiting to be able to download the installer from Wolfram.

hel commented on 2022-03-14 18:49 (UTC)

Download link for 13.0.1 (I got this from wolfram support):

JP-Ellis commented on 2022-03-08 04:59 (UTC)

Unfortunately, I am still unable to download v13.0.1 which makes it impossible for me to update the PKGBUILD at this time.

In the past, Wolfram has made updates available to a few users before making everything broadly available, and perhaps this is what is going on here. Hopefully I will get access to v13.0.1 soon.

qumaciel commented on 2022-03-04 15:49 (UTC)

@prs, can you elaborate on the required changes for 13.0.1?!

prs commented on 2022-02-23 10:54 (UTC)

Greetings all! Since the 13.0.1 version has arrived about a month ago, I made a branch 13_0_1 and did some required changes. Kindly assist me with the process of making a pull request.

Also, I'm in a University where they have access to Mathematica so I might provide help in this repository with regards to updating the PKGBUILD.


kjslag commented on 2021-12-14 00:23 (UTC)

Version 13 fixes the text rendering issue for 3D plots for me. Here's a PKGBUILD:

JP-Ellis commented on 2021-12-13 22:14 (UTC)

I see that v13 has been released. I will be upgrading the package once I have access to it.

Kandscode commented on 2021-10-16 00:26 (UTC) (edited on 2021-10-16 00:27 (UTC) by Kandscode)

I think the categories should be


Instead of


JP-Ellis commented on 2021-08-30 21:14 (UTC)

@Patschke Thanks for bringing my attention to this! I think it was just a typo, I'll fix that today (though I won't release a new minor version as it is such an insignificant change).

Patschke commented on 2021-08-30 12:04 (UTC)

Is there a reason why the license is stored in /usr/share/license? The common path would be /usr/share/licenses (with a trailing s).

dayfather commented on 2021-08-26 16:18 (UTC) (edited on 2021-08-26 16:20 (UTC) by dayfather)

I was getting the error

Error: There is not enough space available to install the requested components in the selected location

I was able to solve this by temporarily resizing my tempfs

mount -o remount,size=40G,noatime /tmp/

JP-Ellis commented on 2021-07-15 23:11 (UTC)

@ajdunlap Strange that the checksum has changed. It looks like Wolfram has released an update without actually increasing the version. I will make a new release shortly.

ajdunlap commented on 2021-07-15 19:19 (UTC)

Also, it appears that the name of the wolframscript deb needs to be updated to wolframscript_1.6.0+20210709241_amd64.deb in the PKGBUILD.

ajdunlap commented on 2021-07-15 19:01 (UTC)

The md5sum from is 7a192570cdcac6b40fed09cc7015b6bd which doesn't match what is in the PKGBUILD.

kjslag commented on 2021-05-20 21:08 (UTC)

Here's a PKGBUILD for 12.3

Opacity in 3D plots works for me now. But text in 3D plots is still ugly. I haven't noticed any regressions yet.

clurch commented on 2021-05-17 13:08 (UTC) (edited on 2021-05-17 13:12 (UTC) by clurch)

Hi, I am having an issue building this package. I successfully downloaded the sources, but I keep getting the following error. I see that one user ran into a similar issue back into 2014, but it doesn't seem like he got an answer. I appreciate any help you guys may have.

==> Starting package()...
  -> Running Mathematica installer
/var/tmp/pamac-build-[USER]/mathematica/src/ line 265: exec: -t: invalid option
exec: usage: exec [-cl] [-a name] [command [argument ...]] [redirection ...]
==> ERROR: A failure occurred in package().

tonowak commented on 2021-04-07 17:58 (UTC)

Thanks for your help! This information is indeed written in the PKGBUILD, I'm a dumbass for not seeing it. Though pinning that in the comments may also be helpful.

ivanmlerner commented on 2021-04-07 17:53 (UTC)

You need to download the sources yourself, since they require an account and valid license to download.

tonowak commented on 2021-04-07 14:25 (UTC)

==> Retrieving sources...
==> ERROR: was not found in the build directory and is not a URL.
error downloading sources: mathematica

BachoSeven commented on 2021-02-12 21:48 (UTC)

No problem, and thank you for the quick update.

JP-Ellis commented on 2021-02-12 21:46 (UTC)

@BachoSeven Thanks! I've fixed it and updated the PKGBUILD.

I decided not to bump the pkgrel as this is such a minor change and I don't want to force everyone to repackage Mathematica.

BachoSeven commented on 2021-02-12 11:38 (UTC)

i.e. this is how the last line of the .desktop file looks like:


BachoSeven commented on 2021-02-11 18:48 (UTC)

@JP-Ellis I think that line 144 should have a \n at the end of the printf statement, since you have two of them appending text to the .desktop file. Otherwise, it will print a single line with both entries(which broke the parsing of mathematica's Categories for a program on my system, which is how I realised this).

JP-Ellis commented on 2021-02-01 03:45 (UTC)

@MagHSK and @defty Mathematica has really poor support of non-ASCII characters. I suspect it is something to do with that? Unfortunately I really don't know how this can be fixed.

defty commented on 2021-02-01 02:43 (UTC)

@MagHSK I'm getting the same issue, not sure why.

maghsk commented on 2021-01-14 04:53 (UTC)

Why all the buttons showing $Failed in my install?

<img alt="picture" src="" />

ver 12.2.0, tried LC_ALL=en_US.UTF-8

kjslag commented on 2020-12-21 22:19 (UTC)

Wolfram got back to me about the Graphics3D issues with poor font rendering and Opacity. As previously mentioned, a workaround is to use the -mesa option when starting Mathematica (which renders on the CPU and is thus slow) or using an Nvidia GPU. (I don't know about AMD?) They also gave me a nicer workaround for the Opacity issue:

kjslag commented on 2020-12-18 22:45 (UTC) (edited on 2020-12-19 00:22 (UTC) by kjslag)

Here's a PKGBUILD for 12.2.0 I haven't noticed any regressions. Unfortunately, the Graphics3D issues with poor font rendering and Opacity making things invisible haven't been fixed. (I contacted Wolfram about these issues today, so hopefully they'll be fixed in a later version.)

bryango commented on 2020-10-06 15:32 (UTC) (edited on 2020-10-06 15:34 (UTC) by bryango)

@tuxzz This is a known issue. Unfortunately, it seems that there is no easy fix. For a not so easy fix, check this: Disclaimer: I haven't tried this myself.

JP-Ellis commented on 2020-09-28 12:27 (UTC)

@tuxzz I've never used Fcitx or fcitx5. From what I could find, they are meant to add support for inputting non-ASCII characters? If that's the case, then I doubt that will ever work because Mathematica simply does not support unicode very well. It only added unicode support in v12, and even then it's very limited and you cannot input non-ASCII characters without using the special syntax they use.

JP-Ellis commented on 2020-09-28 12:24 (UTC)


Indeed you don't need most optional dependencies. Mathematica has such a broad scope that including every dependency seems like overkill (especially if one wants to install Mathematica without needing the GUI).

As the the error you're getting, I'm not really sure what might be causing it.

tuxzz commented on 2020-09-28 12:19 (UTC)

fcitx5 doesn't work in this Mathematica. Did anyone fix it?

defty commented on 2020-08-19 22:18 (UTC)

2 questions:

  1. Do I need to install all the optional dependencies? From reading the PKGBUILD, my guess would be no.
  2. I'm getting this error: Does anyone know how to fix

BachoSeven commented on 2020-08-17 10:47 (UTC)

@JP-Ellis do the 21 GB need to be free storage in the / partition or in /home?

JP-Ellis commented on 2020-08-17 10:26 (UTC)

@wjhandley Mostly likely, the directory Mathematica is being built in ran out of space during installation, resulting in Mathematica's installer just not creating certain files. Please make sure you have at least 21GB of space (I believe that is the current total).

JP-Ellis commented on 2020-08-17 10:24 (UTC)

@RunAndTumble I did that for a short while (as @kjslag mentioned) due to a font-related bug. I have contemplated of switching entirely to system dependencies, but given we don't have access to any of the source, they may require specific version of libraries which aren't the same as the system versions (in particular, I would expect quite a few outdated libraries to be included).

You are free to try and modify the PKGBUILD and remove all bundled libraries and instead use system libraries.

wjhandley commented on 2020-08-17 09:00 (UTC)

I currently get the error

Installation failed. See

  -> Errors related to 'xdg-icon-resource' and 'xdg-desktop-menu' are to be expected during Mathematica's installation.
  -> Fixing symbolic links
/home/will/.cache/yay/mathematica/PKGBUILD: line 112: cd: /home/will/.cache/yay/mathematica/pkg/mathematica/opt/Mathematica/Executables: No such file or directory
==> ERROR: A failure occurred in package().
error making: %!s(func() string=0x55cf50e1fbb0)

At the command line output. There is no content in /home/will/.cache/yay/mathematica/pkg/mathematica/opt/Mathematica/InstallErrors, though that file does exist.

kjslag commented on 2020-08-16 00:24 (UTC)

@RunAndTumble Although bundling libraries has fixed a bug in the past, it also has the potential to create new bugs. Wolfram supposedly sometimes modifies some of the bundled libraries and they do not support linking to system libraries. If you want to use system libraries, you can remove or rename the bundled library files that you do not want to use.

RunAndTumble commented on 2020-08-16 00:19 (UTC)


What are the chances to get rid of the bundled components by simply linking to the system ones?

wbthomason commented on 2020-07-06 16:29 (UTC)

Has anyone run into the following error while installing 12.0.0?

mkdir: cannot create directory '/applications-merged': Permission denied

It seems as though the installer is trying to write to actual system root (at least, from the error message) as opposed to the root of pkg/

h313 commented on 2020-06-24 04:55 (UTC)

12.1.1 was released earlier this month:

physkets commented on 2020-06-22 06:03 (UTC)

Why is this flagged out-of-date? I don't see any new releases.

kjslag commented on 2020-05-26 04:28 (UTC)

@bryango I think the -mesa option tells Mathematica to tell it's bundled Qt to use mesa llvmpipe to render graphics on the CPU.

bryango commented on 2020-05-26 04:11 (UTC) (edited on 2020-05-26 04:18 (UTC) by bryango)

@kjslag Yes! I can confirm both issues (segfault for 12.0 and blank 3D for 12.1) are gone with mesa. However, 11.3 works fine with OpenGL and displays better graphics (with less aliasing). It seems that 12+ is somehow incompatible with system's OpenGL implementation, which, I think (at least for me), is also mesa; by searching through my installed packages with keyword OpenGL, I find that the only related package is mesa v20.0.6. Hence I believe there might be conflicts betweeen the bundled mesa and system mesa. Weird since it worked fine in 11.3.

References: Mathematica documentation for RenderingOptions:

"Mesa"    use the bundled Mesa implementation of OpenGL, available on all systems
"OpenGL"  use the system's OpenGL driver, available only on non-Windows systems

kjslag commented on 2020-05-25 19:13 (UTC)

@bryango iyanmv's idea of starting Mathematica with -mesa fixes your issues for me. See also:

iyanmv commented on 2020-05-25 16:10 (UTC)

I upgraded from Mathematica 12.0.0 to Mathematica 12.1.0, and now I have some kind of render issue. When I'm typing in a notebook, there is a gray bar on top of the text. It is quite annoying to be honest. I have written to their support email, hope to get any answer. In the meantime, anyone facing a similar issue?

I have also tried to start Mathematica with -mesa option, but still same problem. I suspect this has something to do with the new support for HiDPI. They kind of change all default sizes.

kjslag commented on 2020-05-20 04:29 (UTC)

@JP-Ellis I think the packages that I listed, along with espeak, ncurses, qt5-, and java-, are all bundled with mathematica in that directory and shouldn't be listed as optional dependencies.

JP-Ellis commented on 2020-05-20 04:12 (UTC)

@kjslag The list of optional dependencies was initially produced using the inspect namcap. I'll admit I do know know which are strictly necessary and I would love to narrow it down; however, Mathematica has so many components that I don't even know where to start and if it would be all that useful ultimately.

kjslag commented on 2020-05-20 04:10 (UTC) (edited on 2020-05-20 04:30 (UTC) by kjslag)

I can reproduce the issue of invisible 3D plots described on the stackexchange website. I also have an issue where the text on the frame of Plot3D is not rendered well, which I think also just started with mathematica 12.1. I do not know how to fix either issue. bryango, you should consider reporting this to Wolfram.

I'm using mathematica 12.1 (installed March 19) on arch linux with KDE, a 4k screen, and intel GPU. I last updated my packages on May 1st.

JP-Ellis, where did this list of optional dependencies come from? For example, why is intel-mkl, freetype2, gmp, libssh2, openssl on the list? I think Mathematica is bundled with these libraries (and probably many of the others) in /opt/Mathematica/SystemFiles/Libraries/Linux-x86-64/

Below is my list of optional dependencies:

alsa-lib [installed]
atk [installed]
cairo [installed]
clucene [installed]
curl [installed]
espeak [installed]
ffmpeg [installed]
fluidsynth [installed]
fontconfig [installed]
freetype2 [installed]
gdk-pixbuf2 [installed]
glib2 [installed]
glu [installed]
gmp [installed]
gtk2 [installed]
harfbuzz [installed]
icu [installed]
intel-mkl [installed]
intel-tbb [installed]
java-environment [installed]
java-runtime [installed]
lame [installed]
lcms2 [installed]
libffi [installed]
libjpeg-turbo [installed]
libmad [installed]
libnet [installed]
libogg [installed]
libpng12 [installed]
libsm [installed]
libssh2 [installed]
libutil-linux [installed]
libwebp [installed]
libx11 [installed]
libxml2 [installed]
libxslt [installed]
libxtst [installed]
libxxf86vm [installed]
mesa-demos: for improved graphics output [installed]
ncurses [installed]
nvidia-utils [installed]
openssl-1.0 [installed]
pango [installed]
pixman [installed]
portaudio [installed]
postgresql-libs [installed]
qt5-multimedia [installed]
qt5-svg [installed]
qt5-webengine [installed]
qt5-xmlpatterns [installed]
r [installed]
zlib [installed]

JP-Ellis commented on 2020-05-20 04:10 (UTC)

@bryango From the log, I would start with installing the Qt dependencies. Not sure which exactly is the culprit, but that's my first guess :) Thanks for the help!

bryango commented on 2020-05-20 04:07 (UTC) (edited on 2020-05-20 04:42 (UTC) by bryango)

@JP-Ellis Thank you very much for the hint! It is indeed a front end issue; the buggy commands works fine when executed from wolfram command line. However, the crash log seems to be less useful... I've put it here: I'll start checking optional dependencies; it might take some time though.

Update: I've checked, I got all your dependencies, and more... Maybe the issue lies in the packages that you do not have... I'll check later!

JP-Ellis commented on 2020-05-20 03:29 (UTC) (edited on 2020-05-20 03:30 (UTC) by JP-Ellis)

@bryango I can't replicate this issue on my end so I'm going to guess this is an issue due to a missing optional dependency.

Can you do two things:

  1. Can you launch mathematica from the command line, cause it to crash, and tell me if there's any indication as to which library might be the culprit?

  2. If the above doesn't help at all, can you check which dependency you are missing that I have installed. You can check the optional dependencies you have with pacman -Qi mathematica (the ones I have installed are below). Once we have narrowed down which package, I'll make sure to give an explicit description to inform others what the dependency is for.

I don't intend to make it a required dependency because I suspect this is an issue purely related to the GUI and thus a server installation with no GUI would not have the issue.

alsa-lib [installed]
atk [installed]
cairo [installed]
curl [installed]
ffmpeg [installed]
fluidsynth [installed]
fontconfig [installed]
freetype2 [installed]
gdk-pixbuf2 [installed]
glib2 [installed]
glu [installed]
gmp [installed]
gtk2 [installed]
harfbuzz [installed]
icu [installed]
intel-tbb [installed]
java-runtime [installed]
lame [installed]
lcms2 [installed]
leptonica [installed]
libarchive [installed]
libffi [installed]
libjpeg-turbo [installed]
libmad [installed]
libnet [installed]
libogg [installed]
libraw [installed]
libsm [installed]
libssh2 [installed]
libutil-linux [installed]
libwebp [installed]
libx11 [installed]
libxcomposite [installed]
libxml2 [installed]
libxrandr [installed]
libxslt [installed]
libxss [installed]
libxtst [installed]
libxxf86vm [installed]
mesa-demos: for improved graphics output
ncurses [installed]
nss [installed]
opencv [installed]
pango [installed]
pixman [installed]
portaudio [installed]
postgresql-libs [installed]
python [installed]
qt5-declarative [installed]
qt5-multimedia [installed]
qt5-svg [installed]
qt5-svg [installed]
qt5-webengine [installed]
qt5-xmlpatterns [installed]
zlib [installed]

bryango commented on 2020-05-20 03:20 (UTC)

Running Plot3D[..., MeshStyle -> Opacity[0.3]] crashes my 12.0 with segmentation fault and produces an empty graph in 12.1. The latter is described in; it seems to suggest that this issue is Arch (or maybe Manjaro) specific. I am currently using Manjaro 20.0.1.

Curiously, my 12.0 install worked fine before; it only broke after some recent system upgrades. Therefore, I suspect that these issues are, again, triggered by some conflicts between mathematica & system libraries. Has anyone encountered similar bugs with Plot3D[..., MeshStyle -> Opacity[0.3]] under 12+ on Arch or Manjaro? I would like to find a solution instead of going back to 11.3...

Pippip19 commented on 2020-04-20 15:31 (UTC) (edited on 2020-04-20 15:32 (UTC) by Pippip19)

After upgrading libffi (3.2.1-4 -> 3.3-3) Mathematica 11.3 broke due to missing

Can simply link .so from /usr/bin or from another place in the Mathematica path it still exists:

# ln -sf /opt/Mathematica/SystemFiles/Links/MIMETools/LibraryResources/Linux-x86-64/ /opt/Mathematica/SystemFiles/FrontEnd/Binaries/Linux-x86-64/Mathematica/

stecampanella commented on 2020-04-05 14:49 (UTC)

Any news on a PKGBUILD for the wolfram engine?

JP-Ellis commented on 2020-04-02 23:34 (UTC) (edited on 2020-04-02 23:36 (UTC) by JP-Ellis)

Update to Mathematica 12.1.0

Summary of new features:

Please let me know if you encounter any issues.

ivanmlerner commented on 2020-04-02 02:48 (UTC)

Hi, building 12.1 in a clean environment showed the need for the package inetutils at least as makedepends. Avahi might also be a good addition for the optdepends, since running the installer gives a warning that without avahi it will not use "kernel discovery features". The build does not fail without avahi, but it does without inetutils.

Pippip19 commented on 2020-03-06 18:28 (UTC)

@hmenke Thanks - My licence expired with 11.3 so this is v. helpful.

For others with this issue, the problem arose with openmp 9.0.1-1 -> 9.0.1-2, so downgrading to 9.0.1-1 is also an option if that isn't required by another package on your system.

hmenke commented on 2020-02-25 04:25 (UTC)

The recent openmp update removed the aliases and now is no longer provided. Older version of the PKGBUILD did deduplicate system libraries an removed, so these older version will break now. I chose to just link into the package:

ln -sf /usr/lib/ ./opt/Mathematica/SystemFiles/Libraries/Linux-x86-64/

This in only an issue with the PKGBUILD for Mathematica 11.3 (an older I guess).

JP-Ellis commented on 2019-12-16 00:51 (UTC)

I have fixed the backticks in the PKGBUILD.

jfernandz commented on 2019-12-14 00:49 (UTC) (edited on 2019-12-14 00:50 (UTC) by jfernandz)

I can confirm what @ruy16109 says. When you replace the backticks ` with the common apostrophe ' there is no one ERROR message.

ruy16109 commented on 2019-10-18 01:44 (UTC) (edited on 2019-10-18 01:44 (UTC) by ruy16109)

Probably unrelated to my previous comment:

When trying to install 12.0.0 using makechrootpkg (with the help of aur helper "aurutils" using aur build -c), the installation seems to be "unable to determine the pacakge manageer used by the system..." and leaves installation files on my /opt/Mathematica/SystemFiles/Installation under RPM and DEB formats. I guess I can just convert one of them to tar and install it directly.

ruy16109 commented on 2019-10-18 01:24 (UTC) (edited on 2019-10-18 01:29 (UTC) by ruy16109)

In the newest update (Mathematica 12.0.0, AUR update time 2019-09-11 23:52), the prepare function contains the following line:

warning ".. 18 GiB of space for makepkg, and ..."

Since around the "makepkg" is a pair of backticks, I am suspecting that this invokes another "makepkg" process and causes the "no PKGBUILD" error that I have been repeatedly for my multiple attempts.

Edit: confirmed. The back ticks caused the prepare() function to fail, and thus I was unable to proceed in makechrootpkg. For some reason makepkg, even though it still shows the error message, continues to run the script.

alfunx commented on 2019-09-20 15:40 (UTC)

@Firnen Read the PKGBUILD, there is an explanation on how to obtain that file and where to place it.

Firnen commented on 2019-09-19 19:11 (UTC) (edited on 2019-09-19 19:15 (UTC) by Firnen)

A file appears to be missing for the build.

Building mathematica...
==> Making package: mathematica 12.0.0-1 (Thu 19 Sep 2019 03:04:40 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> ERROR: was not found in the build directory and is not a URL.

JP-Ellis commented on 2019-09-12 03:48 (UTC)

@JP-Undercover The issue you have is most likely because you are running out of space. Unfortunately, Mathematica's installer doesn't check for available space and if your drive fills up, Mathematica simply doesn't install create all the files (hence why wolframscript is missing). With the recent updates, I think you'll actually need more than 18GiB (I think the latest version needs 26.4GiB of free space unpack, install and then re-pack everything).

oUndercover commented on 2019-09-11 15:41 (UTC) (edited on 2019-09-11 15:54 (UTC) by oUndercover)

@JP-Ellis i have at least 18GB avalible on my system, i'm trying to edit the PKGBUILD by using yay --editmenu mathematica but it's not working. I've deleted all the cache and tried again, same error shows up, i'm trying to install normally by simply using yay -S mathematica.

EDIT: Installing using yay -S mathematica shows that i in fact don't have enough space, disregard what i said it turns out it was just me being incompetent, thanks for the tip!

JP-Ellis commented on 2019-09-11 11:22 (UTC) (edited on 2019-09-11 11:24 (UTC) by JP-Ellis)

@JP-Undercover Please make sure the directory in which the package archive is being built has enough space.

It shouldn't be installed in your actual system, but is taking up a lot of space in /home/undercover/.cache/yay/mathematica/ in your case.

oUndercover commented on 2019-09-11 11:20 (UTC) (edited on 2019-09-11 11:39 (UTC) by oUndercover)

Installing this package on Manjaro ended up with this:

Installation failed. See

  -> Errors related to 'xdg-icon-resource' and 'xdg-desktop-menu' are to be expected during Mathematica's installation.
  -> Fixing symbolic links
rm: cannot remove 'wolframscript': No such file or directory
==> ERROR: A failure occurred in package().
Error making: mathematica

The file InstallErrors is empty.

stecampanella commented on 2019-06-24 15:09 (UTC)

Any news about the Wolfram Engine AUR package?

JP-Ellis commented on 2019-06-09 00:28 (UTC)

@bryango Thanks! I've updated the PKGBUILD. Note that I have not updated the release number as this is such a minor change and most people will get this at the next update.

bryango commented on 2019-06-08 13:45 (UTC)

@JP-Ellis Adding StartupWMClass=Mathematica to the desktop file will greatly improve the window management experience (e.g. the window will now use themed icons set in the system). Strongly recommended!

JP-Ellis commented on 2019-06-03 00:36 (UTC)

@dareme7 All the AUR packages always assume that the base and base-devel groups are installed (and sed is in fact a member of both... indicating that somehow you don't even have the base group installed which contains essential software for Linux systems).

dareme7 commented on 2019-06-01 14:47 (UTC)

This package is missing sed as a dependancy, it won't start otherwise.

stecampanella commented on 2019-05-23 13:29 (UTC)

@JP-Ellis Thanks for your work!

JP-Ellis commented on 2019-05-23 03:16 (UTC)

@sfncmp1729 I'll have a look at creating a PKGBUILD for the Wolfram Engine soon. I'll have to play around with it and make sure it works first which might take a day or two, but hopefully by the end of this weekend I should have something up!

stecampanella commented on 2019-05-22 13:19 (UTC)

Hi! A free version of the Wolfram Engine for developers has been released ( Just wondering, would it be possible to adapt this PKGBUILD for it?

RunAndTumble commented on 2019-04-30 14:18 (UTC)


Yes, I didn't notice that I was out of space, thank you.

JP-Ellis commented on 2019-04-29 23:43 (UTC)

@RunAndTumble did you make sure there was enough disk space available? It seems like Mathematica did not complete installing all the components. Do you have any other error messages arising before this?

RunAndTumble commented on 2019-04-29 14:46 (UTC)

This is odd, now, with the latest script I get this:

-> Errors related to 'xdg-icon-resource' and 'xdg-desktop-menu' are to be expected during Mathematica's installation. -> Fixing symbolic links /run/media/user/misc/inst/mathematica/mathematica/PKGBUILD: line 123: cd: /run/media/user/misc/inst/mathematica/mathematica/pkg/mathematica/opt/Mathematica/Executables: No such file or directory ==> ERROR: A failure occurred in package().

Icemole commented on 2019-04-29 09:56 (UTC)

@JP-Ellis thanks for the quick answer. If someone is wondering where to find the script, I found mine on my Wolfram User Portal.

JP-Ellis commented on 2019-04-29 08:54 (UTC)

@Icemole Unfortunately, there are (afaik) no publicly available download links for Mathematica. As a result, you must download manually and place it in the same directory as the PKGBUILD.

Icemole commented on 2019-04-29 08:52 (UTC)

Hey, when executing makepkg I'm getting "ERROR: was not found in the compilation directory, and it is not an URL address". It's right after sources are received. What I did was just downloading the snapshot and executing makepkg. Any ideas as to what's happening?

JP-Ellis commented on 2019-04-29 01:00 (UTC)

@rvlobato In my experience, Mathematica doesn't support HiDPI screens all that well, especially in pop-up windows. I have not found any workaround myself other than manually resizing the window.

rvlobato commented on 2019-04-25 00:45 (UTC) (edited on 2019-04-25 01:27 (UTC) by rvlobato)

Hi, I just have installed, but when the licence agreement appears, I cannot see the button to accept at window's end, it is cutted in the middle. My screen is HiDPI, I have tried to change the resolution and the scale unsuccessfully. Any suggestion?

JP-Ellis commented on 2019-04-24 05:41 (UTC)

Update to Mathematica 12.0.0

Summary of new features:

Please let me know if you encounter any issues.

pants commented on 2019-04-17 19:27 (UTC) (edited on 2019-04-18 00:59 (UTC) by pants)

The following patch builds the package, but something may have to be done to get some libraries working correctly—I get SSL errors when attempting to do online registration and had to use the offline version. Once registered it runs fine, and even connects to the Wolfram cloud.

edit: I registered with the same PKGBUILD on my laptop, but using the graphical interface instead of the command line and suffered no problems.

diff --git a/PKGBUILD b/PKGBUILD
index [`8a45ff6`]( 100644
@@ -7,8 +7,8 @@
 # Contributor: teratomata <>

 pkgdesc="A computational software program used in scientific, engineering, and mathematical fields and other areas of technical computing."
 arch=('i686' 'x86_64')
@@ -75,8 +75,8 @@ optdepends=(
 source=("local://Mathematica_${pkgver}" "duplicate-libs.txt")
-         'e442aa2286a9d93e932076c974517dd7')
+         'f01cd280d4e13014f6253df657d1e572')

 ## To build this package you need to place the mathematica-installer into your
@@ -145,8 +145,8 @@ package() {
     mkdir -p ${srcdir}/WolframScript
     mkdir -p ${pkgdir}/usr/share/
     cd ${srcdir}/WolframScript
-    bsdtar -xf ${pkgdir}/opt/Mathematica/SystemFiles/Installation/wolframscript_1.2.0-36_amd64.deb data.tar.gz
-    tar -xf data.tar.gz -C ${pkgdir}/usr/share/ --strip=3 ./usr/share/
+    bsdtar -xf ${pkgdir}/opt/Mathematica/SystemFiles/Installation/wolframscript_1.2.0+2019040701_amd64.deb data.tar.xz
+    tar -xf data.tar.xz -C ${pkgdir}/usr/share/ --strip=3 ./usr/share/

     msg2 "Copying menu and mimetype information"
@@ -155,7 +155,7 @@ package() {
           ${pkgdir}/usr/share/desktop-directories \
     cd ${pkgdir}/opt/Mathematica/SystemFiles/Installation
-    desktopFile='wolfram-mathematica11.desktop'
+    desktopFile='wolfram-mathematica12.desktop'
     sed -Ei 's|^(\s*TryExec=).*|\1/usr/bin/Mathematica|g' $desktopFile
     sed -Ei 's|^(\s*Exec=).*|\1/usr/bin/Mathematica %F|g' $desktopFile
     printf 'Categories=Science;Math;NumericalAnalysis;DataVisualization;' >> $desktopFile
diff --git a/duplicate-libs.txt b/duplicate-libs.txt
index [`66f4cca`]( 100644
--- a/duplicate-libs.txt
+++ b/duplicate-libs.txt
@@ -1,38 +1,11 @@

RunAndTumble commented on 2019-04-17 18:15 (UTC) (edited on 2019-04-29 14:45 (UTC) by RunAndTumble)

OK, this is what I get when I try to install v12.0 using the old script:

-> Setting up WolframScript bsdtar: Error opening archive: Failed to open '/run/media/user/misc/mathematica/pkg/mathematica/opt/Mathematica/SystemFiles/Installation/wolframscript_1.2.0-36_amd64.deb'

PlaidPenguin commented on 2019-03-17 15:17 (UTC)

@JP-Ellis @miro86 I managed to get rid of the error. The problem was, that there was a $ in front of the directory name that the cd in line 120 was supposed to change to. Removing this fixed this specific bug. I also changed the directory to point to the one where my wolframscript was. I am actually running manjaro, so maybe the's why it doesn't work for me... Now i only have a bug, saying, that my fakeroot doesn't work and it cannot create or remove directories. I hope this may have helped.

qft commented on 2019-03-12 14:48 (UTC)

@JP-Ellis @hzhangxyz espeak should not be a dependency of Mathematica. Like I mentioned in one of the previous comment, this error only happens because the file '/opt/Mathematica/SystemFiles/Libraries/Linux-x86-64/' that ships with Mathematica is wrongly removed via the duplicate-libs.txt file. If you modify duplicate-libs.txt and do not remove so many libraries that ship with Mathematica, then there is no need to make up for these included libraries with external dependencies.

JP-Ellis commented on 2019-03-11 22:12 (UTC)

@PlaidPenguin @miro86 I still have no idea how this error happens, and I am unable to replicate it. I have installed Mathematica without error on several different machines without issue, so I don't even know where to start with this bug.

@hzhangxyz This is already a optional dependency. I do not have everything included as compulsory dependencies because most people will only use a subset of what Mathematica offers.

PlaidPenguin commented on 2019-03-07 21:23 (UTC)

@JP-Ellis I also get the same error as miro86 and mpr. Has someone found a solution to this problem?

hzhangxyz commented on 2019-03-07 04:44 (UTC)

I didn't install espeak so mathematica report error since the library has already been removed via duplicate-libs.txt

run pacman -Foq awk -F / '{print "/usr/lib/"$7}' duplicate-libs.txt | sort | uniq and get:

community/espeak community/libpng12 community/portaudio core/glib2 core/gmp core/libffi core/libssh2 core/openssl-1.0 core/zlib extra/cairo extra/freetype2 extra/glu extra/harfbuzz extra/openmp extra/pango extra/pixman

I think this should be put into depend list

mpr commented on 2019-03-02 16:30 (UTC) (edited on 2019-03-02 16:38 (UTC) by mpr)

I get a similar error as miro86. There's no xterm error but I do get the error of line 120. Did you manage to fix it @miro86?

JP-Ellis commented on 2019-01-22 03:18 (UTC)

@miro86 Unfortunately, I really don't know what could be the cause of your issue as I have never encountered it. Have you tried using a different terminal by any chance? Are you using an AUR helper and having you tried using makepkg? Sorry I can't be of more help.

Virtualmorpher commented on 2019-01-19 22:07 (UTC)

@JP-Ellis: the installer seems to work, it loads then asks for the installation directory. Is there a solution with regards to xterm?

JP-Ellis commented on 2019-01-18 03:02 (UTC)

@miro86 Sorry for the late reply. I'm not entirely sure why you are receiving this error; but it seems like the Mathematica installer itself isn't working? Have you tried running the installer manually (just to see if it loads). I'm also wondering whether this is an issue with xterm.

Virtualmorpher commented on 2019-01-08 19:09 (UTC) (edited on 2019-01-08 19:25 (UTC) by Virtualmorpher)

I'm getting the following error:

==> Starting package()...
  -> Running Mathematica installer
xterm: cannot load font "-Misc-Fixed-medium-R-*-*-13-120-75-75-C-120-ISO10646-1"
xterm: cannot load font "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1"
  -> Errors related to 'xdg-icon-resource' and 'xdg-desktop-menu' are to be expected during Mathematica's installation.
  -> Fixing symbolic links
/home/miro/AUR/pamac-build/mathematica/PKGBUILD: line 120: cd: /home/miro/AUR/pamac-build/mathematica/pkg/mathematica/opt/Mathematica/Executables: No such file or directory
==> ERROR: A failure occurred in package().

I've got around 27GB free space in my home directory, so the problem seems to be somewhere else.

fenho commented on 2018-12-31 05:32 (UTC)

new around here, just wanna say thank you.

Brikowski commented on 2018-12-03 12:58 (UTC) (edited on 2018-12-03 13:01 (UTC) by Brikowski)

I get a bsdtar error when installing with trizen, right after the install script finishes. It seems that a file 'data.tar.gz' is missing.

                      Wolfram Mathematica 11.3 Installer 
Installation complete.

  -> Errors related to 'xdg-icon-resource' and 'xdg-desktop-menu' are to be expected during Mathematica's installation.
  -> Fixing symbolic links
  -> Setting up WolframScript
bsdtar: data.tar.gz: Not found in archive
bsdtar: Error exit delayed from previous errors.

kjslag commented on 2018-11-21 20:40 (UTC)

Removing breaks Encrypt and Decrypt. The examples in the documentation don't work when is removed. Please remove the libcrypto line from duplicate-libs.txt. Maybe removing so many libraries is dangerous? What's the motivation for removing so many?

JP-Ellis commented on 2018-10-23 23:17 (UTC)

@lol-md5 portaudio is already an optional dependency.

lol-md5 commented on 2018-10-23 22:34 (UTC)

@JP-Ellis, would you mind adding portaudio to the optional deps?

lol-md5 commented on 2018-10-23 22:04 (UTC)

@JP-Ellis, yep, disk space was the issue. Man, this is such bloated software.

JP-Ellis commented on 2018-10-22 23:36 (UTC)

@lol-md5 it appears you have an issue with running out of space. Do you have about 10GiB of free space? Can you try building to package using makepkg?

lol-md5 commented on 2018-10-22 23:16 (UTC)

I'm having trouble installing this.

Installation failed. See

  -> Errors related to 'xdg-icon-resource' and 'xdg-desktop-menu' are to be expected during Mathematica's installation.
  -> Fixing symbolic links
~/.cache/aurman/mathematica/PKGBUILD: line 120: cd: ~/.cache/aurman/mathematica/pkg/mathematica/opt/Mathematica/Executables: No such file or directory
==> ERROR: A failure occurred in package().
2018-10-22 23:09:47,103 - wrappers - makepkg - ERROR - makepkg query ['makepkg', '-cf', '--noconfirm'] failed in directory ~/.cache/aurman/mathematica

(actual home directory replaced with ~)

~/.cache/aurman/mathematica/pkg/mathematica/opt/Mathematica/InstallErrors is empty.

What should I do? I need this for school.

JP-Ellis commented on 2018-10-08 05:15 (UTC)

@ucb Your best bet with Mathematica is to download the snapshot of the PKGBUILD in some directory and have the installer in the same directory, and then building everything using makepkg. I'm not familiar with pakku, but most likely what is happening is that pakku is downloading the PKGBUILD into some other directory (something like ~/.cache/pakku/mathematica or $TMPDIR/pakku/mathematica) and then running makepkg in there (which doesn't have the .sh installer and thus makepkg fails).

ucb commented on 2018-10-08 01:59 (UTC)

Newbie here:

Can somebody tell me what is the 'startdir' of the installer? I executed the installer using pakku from my download dir where the .sh resides but the installer couldn't find it. I also tried to edit the source line to point to the download dir so far to no avail.

Thanks in advance!

JP-Ellis commented on 2018-10-08 01:36 (UTC)

@shuye02 Portaudio is already an optional dependency. The reason it is optional is that it is not needed when Mathematica is used within the terminal only.

@RunAndTumble Indeed Mathematica is quite a big package. I already make attempts to reduce its size by removing duplicate system libraries or unnecessary binaries. Also please have a look at the end of the PKGBUILD as I include an option to remove all documentation. It is commented out as most people will actually want the documentation; however, you are free to uncomment that and save a large amount of space.

RunAndTumble commented on 2018-10-05 13:34 (UTC)

Hey Folks

What do you think about further compression of the package? Now it's about 10GB, however, people here ( ) suggest additional ways to save some space.

yechs commented on 2018-10-02 21:37 (UTC) (edited on 2018-10-02 21:37 (UTC) by yechs)

/opt/Mathematica/SystemFiles/FrontEnd/Binaries/Linux-x86-64/Mathematica: error while loading shared libraries: cannot open shared object file: No such file or directory
This is fixed by installing portaudio, can the maintainer add portaudio to the dependencies list?

rpfunnyman commented on 2018-09-27 22:11 (UTC)

@JP-Ellis Building on the HD seemed to do the trick! I was previously building in /tmp, which (supposedly) had 16 GB free. Everything works brilliantly now, thank you.

JP-Ellis commented on 2018-09-27 05:12 (UTC)

@rpfunnyman This is very strange. I actually suspect it is due to a space issue. Is the package being built in /tmp (or similar)? And does it have at least 8GB of free space?

rpfunnyman commented on 2018-09-27 03:35 (UTC)

I have installed without receiving any error messages. However, when entering the command "mathematica" or "math" into the command line, nothing happens. Documentation does come up if I type in "man mathematica" or "man math".

All the files in /opt/Mathematica/Executables/ have 0 bytes and do nothing when executed.

tzcrawford commented on 2018-06-18 21:12 (UTC) (edited on 2018-06-18 21:13 (UTC) by tzcrawford)

I was having a problem where I would install this package and I could run mathematica via command line, but the GUI would immediately crash. I think what initially caused this problem is I initially just tried installing Mathematica via the shell script that was supplied by Wolfram. Then all following installation attempts would either fail or would result in the same problem. I even tried to delete the four main cache locations, but was still getting the same problem.

I ended up fixing the issue by deleting every file or directory on my computer with Wolfram or Mathematica in the title. I used this script:




find $INPATH -name "$STRING" -exec rm -ri {} +

and again replacing w/ STRING="Mathematica" Be careful in that you might have a file that includes these in the title but are unassociated; hence the rm -i.

Then I manually built this AUR package rather than using some package manager like yaourt. Yaourt will try to install in a temporary directory in RAM which is too small for the install. So if you're a total noob, git clone the package somewhere; chown the directory; and copy Wolfram's shell script into that directory. Finally, run makepkg -si and follow the prompts.

JP-Ellis commented on 2018-06-06 01:37 (UTC)

@vsilv Please have a look at some of the optional dependencies as some might be required for correct graphical display. (They are not marked as required as some users might only want to use the command-line version of Mathematica).

vsilv commented on 2018-06-05 17:07 (UTC)

Dear JP-Ellis, Even though it was possible to install mathematica using the PKGBUILD, running it for the first time creates a activation screen with flawed buttons; in particular, the activate button does not work. Where could I search for the error? Both building the .pkg.tar and installing worked out without errors. vsilv

WeeTC commented on 2018-05-30 09:24 (UTC)

@JP-Ellis Ok, so the saga is over ( for now ... :) ). The installation, after installing portaudio, is now fine (the option to install without the documentation turned out to be important for me as well - thanks).

JP-Ellis commented on 2018-05-30 04:34 (UTC)

@WeeTC Thanks for the update. It appears Wolfram released a new version of Mathematica 11.3.0 (though with no release notes). I've updated the checksums and it should build fine now.

WeeTC commented on 2018-05-29 06:25 (UTC)


Unfortunately, I tried this and I got "One or more files did not pass the validity check! " as an error message.

Is the installer up to date?

JP-Ellis commented on 2018-05-29 03:44 (UTC)

@WeeTC You ideally should clone/download a snapshot of the AUR package into a directory, copy (or link) Mathematica in the same directory and then use makepkg to build the full package which can then be installed with pacman -U package_name.tar.xz.

In the case of pacaur, by default it will clone the AUR package into ~/.cache/pacaur so you could copy (or link) Mathematica into ~/.cache/pacaur/mathematica.

WeeTC commented on 2018-05-28 11:42 (UTC)


Running "pacaur -S mathematica" in the directory with the files:

(output of ls -l)" total 4845616 -rw-r--r-- 1 weetc users 2695 Apr 11 07:06 duplicate-libs.txt drwxr-xr-x 7 root root 4096 May 18 16:14 Install -rw-r--r-- 1 weetc users 4961862431 May 12 14:27 -rw-r--r-- 1 weetc users 22314 Apr 11 07:06 PKGBUILD drwxr-xr-x 2 weetc users 4096 May 12 14:50 src " produces " ==> ERROR: was not found in the build directory and is not a URL. :: failed to verify mathematica integrity ".

Have I made a simple mistake here?



Lchu613 commented on 2018-04-11 18:33 (UTC)

As jumper149 pointed out, having portaudio installed is now necessary for 11.3.0-2 to run; otherwise everything runs fine.

jumper149 commented on 2018-04-11 08:36 (UTC)

i had to install portaudio but now it works. Maybe this shouldnt be optional.

Keep up the good work!

qft commented on 2018-04-11 06:25 (UTC)

I do not use text-to-speech functionalities. I just do not like the fact that some features that were working before become broken for no added benefit. For people who do reply on the affected features, they would have to install new dependencies that they don't need before. This is a net loss.

Anyways, thank you for maintaining the package.

JP-Ellis commented on 2018-04-11 06:17 (UTC)

@qft At this stage, I would recommend you install espeak as an optional dependency since you use the text-to-speech functionalities.

If anyone else reports an issue with this latest change, then I will reintroduce the libraries. I will reconsider adding all the libraries back in for the next release of Mathematica.

qft commented on 2018-04-11 06:04 (UTC)

I agree we should not mark all the dependencies as required and that was my original point. However many of the library files you removed are not related to the recent freetype bug, and by removing those files there is no system libraries to replace them.

One example is the Before you removed this file, my installation of Mathematica could do text2speech perfectly. Now it cannot because does not exist. Now a feature is broken with no added benefit. The same can be said for other libraries files. Each removed library file implies either one extra dependency or at least one missing feature. Why not just limit the deleted library files to the really necessary ones related to the freetype bug?

JP-Ellis commented on 2018-04-11 05:46 (UTC) (edited on 2018-04-11 05:51 (UTC) by JP-Ellis)

@qft I was hesitant to remove the extra libraries; however, given the incompatibility that came up with freetype I thought I would try for the time being to default using the system libraries.

If people do report issues, then I am able to revert back to including some of the libraries.

Additionally, I am not going to mark all dependencies as required simply because there exists a situation where they might be used. For example, I will not be making GUI libraries required as these are clearly not required for installations of Mathematica on a server. (Same argument can be made for GPU computing libraries).

In response to your second comment: all the libraries you list are all already on the optional dependencies. I myself have neither libpng12 nor espeak installed, and I am yet to encounter any issues. These libraries presumably are used by Mathematica at some point, but I have no idea where/when.

qft commented on 2018-04-11 05:39 (UTC) (edited on 2018-04-11 05:40 (UTC) by qft)

Also, removing the libraries in duplicate-libs.txt implies the following packages become required:

cairo, espeak, freetype2, glib2, glu, gmp, harfbuzz, libffi, libpng12, libssh2, openssl-1.0, pango, pixman, portaudio, zlib

Since espeak, libpng12 and portaudio are not commonly installed, the files,, and should not be removed. In my opinion the original library files should kept as is unless absolutely necessary.

qft commented on 2018-04-11 05:24 (UTC)

Actually I think instead of making openmp as a required dependency, a better strategy is to not include in the duplicate-libs.txt file. The file that ships with mathematica was from gcc, and the file from openmp package was from LLVM. I'm sure these two files are not compatible even if the share the same name.

Also the files and should not be removed. Otherwise two more dependencies are needed and it's always not a good idea to add unnecessary extra dependencies.

JP-Ellis commented on 2018-04-11 05:06 (UTC)

@qft I have added openmp are a required dependency (instead of just an optional one). Thanks for the feedback.

Note that I will not be incrementing the release number as this is such a minor change (and openmp was already optional). If there are libraries which are required, please let me know.

qft commented on 2018-04-11 04:50 (UTC)

openmp should be a dependency of the latest version, otherwise mathematica complains about missing and cannot start.

JP-Ellis commented on 2018-04-10 23:33 (UTC)

@jumper149 I have made a new release of 11.3.0, please give it a go and let me know if you have any issue with it. (The reason you couldn't find the libraries is that they are located in /opt/Mathematica/SystemFiles/Libraries/Linux-x86-64/)

jumper149 commented on 2018-04-10 13:23 (UTC)

I uninstalled Mathematica 11.2 with instructions from Before it was installed without pacman. I lately got the error: /opt/Mathematica/SystemFiles/FrontEnd/Binaries/Linux-x86-64/Mathematica: symbol lookup error: /usr/lib/ undefined symbol: FT_Done_MM_Var

Then i installed Mathematica 11.3 with this aur package. The fix @JP-Ellis is not possible because the following files are NOT in /opt/Mathematica/SystemFiles/FrontEnd/Binaries/Linux-x86-64/:, and

so i cant remove them.

The installation seems fine I think.

/lib/ exists.

what can i do now i still get the fontconfig error.

JP-Ellis commented on 2018-03-26 06:25 (UTC)

As pointed out by wjhandley, a recent update broke aspects of Mathematica handling fonts. At this stage, the easiest is to just remove, and so that Mathematica falls back to the system libraries.

I am currently testing a new release of 11.3.0 which removes certain libraries already provided by the system. Although everything works fine for me so far, I suspect this may break things for some users until they install the necessary optional dependencies. I will be releasing the next release in the next day or so.

wjhandley commented on 2018-03-25 16:23 (UTC)

If you get an error like:

/opt/Mathematica/SystemFiles/FrontEnd/Binaries/Linux-x86-64/Mathematica: symbol lookup error: /lib/ undefined symbol: FT_Done_MM_Var

then just remove or rename the mathematica and libraries in the directory ${TopDirectory}/SystemFiles/Libraries/Linux-x86-64

(source )

JP-Ellis commented on 2018-03-15 04:26 (UTC) (edited on 2018-05-30 04:37 (UTC) by JP-Ellis)

Update to Mathematica 11.3.0

Summary of new features:

Release 2 The second release of 11.3.0 removes various libraries which are automatically included in Mathematica so that Mathematica falls back on the system version. This was done in order to address an incompatibility in a recent system library update. I have been using this release for a while with no issue, but as usual let me know if any issue comes up.

In particular, portaudio may be required (though is not necessary is you only run Mathematica from the command line)

Release 3 Update reflects the new release of 11.3.0 by Wolfram. I could not find release notes (probably a minor bug fix release).

eisterman commented on 2018-03-14 08:53 (UTC) (edited on 2018-03-14 08:54 (UTC) by eisterman)

I've fixed the PKGBUILD for the 11.3


  • Update pkgver

  • Updated hardcoded name wolframscript_1.2.0-22_amd64.deb to wolframscript_1.2.0-36_amd64.deb

  • Updated data.tar.xz to data.tar.gz (file inside wolframscript_1.2.0-36_amd64.deb)

  • Fixed bug on a mkdir that interrupted the compilation if the folder ${srcdir}/WolframScript already existed (line 143 old version, missing -p argument)

PKGBUILD already tested, but only on a single PC x86_64.

JP-Ellis commented on 2018-03-14 04:04 (UTC)

I'm aware that 11.3 of Mathematica has been released; unfortunately, my licence so far does not allow me to download 11.3. As soon as I am able to get my hand on 11.3, I will update this package. Sorry for the delay.

JP-Ellis commented on 2017-09-30 11:07 (UTC)

@Excaliber You need to have the PKGBUILD and the Mathematica installer in the same directory (a symlink works too).

Excaliber commented on 2017-09-30 04:24 (UTC) (edited on 2017-09-30 04:25 (UTC) by Excaliber)

I have the file in my home folder but i still have the error: ==> ERROR: was not found in the build directory and is not a URL. thanks for the support!

kjslag commented on 2017-09-19 03:32 (UTC)

@johnramsden did you run out of disk space by chance?

JP-Ellis commented on 2017-09-19 03:27 (UTC)

@johnramsden Mathematica's installation error log should have just errors to do with xdg (`xdg-icon-resource`, `xdg-desktop-menu`, etc.) and these are expected. I do not know what is causing the errors from `tar` though. Did the `` pass the checksums?

johnramsden commented on 2017-09-19 02:06 (UTC)

I keep getting the following error on install. I had 11.1.x installed before and didn't get this error: Installation failed. See /home/john/.cache/mm/mathematica/pkg/mathematica/opt/Mathematica/InstallErrors. -> Fixing symbolic links /home/john/.cache/mm/mathematica/PKGBUILD: line 117: cd: /home/john/.cache/mm/mathematica/pkg/mathematica/opt/Mathematica/Executables: No such file or directory ==> ERROR: A failure occurred in package(). Aborting... In the error log: tar: Substituting `.' for empty member name tar: Skipping to next header tar: Exiting with failure status due to previous errors tar: Substituting `.' for empty member name tar: .: Unknown file type ' ', extracted as normal file tar: .: Cannot open: Is a directory tar: Substituting `.' for empty member name tar: .: Unknown file type ' ', extracted as normal file tar: .: Cannot open: Is a directory tar: Substituting `.' for empty member name tar: .: Unknown file type ' ', extracted as normal file tar: .: Cannot open: Is a directory tar: Substituting `.' for empty member name tar: .: Unknown file type ' ', extracted as normal file tar: .: Cannot open: Is a directory tar: Skipping to next header tar: Exiting with failure status due to previous errors xdg-icon-resource: No writable system icon directory found.

JP-Ellis commented on 2017-09-18 04:53 (UTC)

Update to Mathematica 11.2.0. Summary of new features:

JP-Ellis commented on 2017-09-02 10:46 (UTC)

@alge Mathematica is a paid, proprietary software and must be downloaded separately.

alge commented on 2017-09-02 10:33 (UTC)

Trying to get mathematica thru AUR. Getting this error: ==> Making package: mathematica 11.1.1-1 (sat sep 2 12:31:24 CEST 2017) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... ==> ERROR: was not found in the build directory and is not a URL

JP-Ellis commented on 2017-05-17 00:38 (UTC)

@bred These errors are (unfortunately) normal. The Mathematica install script tries to install certain desktop files (icons, .desktop) to the system which it shouldn't, and since makepkg isn't run with sudo access, the script (correctly) fails to install them. The PKGBUILD handles these files fine afterwards. As far as I know, there is no way to avoid this. As long as the errors are only relating to xdg-..., then everything's fine.

bred commented on 2017-05-16 17:33 (UTC) (edited on 2017-05-16 17:34 (UTC) by bred)

I've this errors messages: Installation failed. See /mnt/hd_root/media/Mathematica/pkg/mathematica/opt/Mathematica/InstallErrors. -------------- And the content of /mnt/hd_root/media/Mathematica/pkg/mathematica/opt/Mathematica/InstallErrors ------ xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. mkdir: cannot create directory '/applications-merged': Permission denied xdg-desktop-menu: No writable system menu directory found.

JP-Ellis commented on 2017-04-28 01:39 (UTC)

My apologies everyone. As @jon correctly pointed out, I accidentally committed the `exit 1` in the PKGBUILD which I use to debug the build process and make sure that everything looks good. I have pushed the new PKGBUILD up and it should work now (since this is such a minor issue, I have not bumped the release, but next time yaourt/pacaur is run it should use the new PKGBUILD).

jon commented on 2017-04-27 19:22 (UTC)

@JP-Ellis The last commit added "exit 1" after running the Mathematica installer:

rosekunkel commented on 2017-04-27 19:15 (UTC)

@JP-Ellis I don't get any errors other than what I mentioned. I do get this warning: WARNING: Avahi Daemon is not active on your system so some Kernel Discovery features will not be available. Try activating the avahi-daemon service by running (as root): systemctl enable avahi-daemon But that doesn't seem likely to be the source of the issue, and I got that warning last time that I successfully installed Mathematica. As far as I know, makepkg isn't using /tmp or a tmpfs file system for anything. I'm not sure how I would check to make sure.

JP-Ellis commented on 2017-04-27 14:42 (UTC)

@wkunkel The installer tries to access certain system directories to write icons, but fails as it does not have sudo access so it is normal to have the following errors: xdg-icon-resource: No writable system icon directory found. mkdir: cannot create directory '/applications-merged': Permission denied xdg-desktop-menu: No writable system menu directory found. Despite this, the installer finishes fine and the icons are then handled by the PKGBUILD. Are there any other errors being reported? In particular, have you made sure that makepkg isn't extracting everything in a tmpfs directory such as /tmp?

rosekunkel commented on 2017-04-27 14:33 (UTC)

I can no longer make this package on my machine. When I run makepkg -si, I get this output: ==> Making package: mathematica 11.1.1-1 (Thu Apr 27 10:26:43 EDT 2017) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found ==> Validating source files with sha256sums... ... Passed ==> Extracting sources... ==> Starting prepare()... ==> Entering fakeroot environment... ==> Starting package()... -> Running Mathematica installer Mathematica 11.1.1 for LINUX Installer Archive Verifying archive integrity. Extracting installer. .............. -- the Mathematica installer runs -- Installation failed. See /home/will/aur/mathematica/pkg/mathematica/opt/Mathematica/InstallErrors. ==> ERROR: A failure occurred in package(). Aborting... The InstallErrors file it references has three unique errors in it: xdg-icon-resource: No writable system icon directory found. (18 times) mkdir: cannot create directory '/applications-merged': Permission denied xdg-desktop-menu: No writable system menu directory found.

JP-Ellis commented on 2017-04-01 00:57 (UTC)

@wangjiezhe Thanks for noticing that! I'm not sure how that changed as I thought I created the list using `find` :/ (I think it might've been due to some 'smart' search/replace that adjusts the capitalization...) I'll fix that now. I'll push the changes, but I won't make a new release as I don't want to force everyone to re-download Mathematica and re-install everything since this only cleans up a few files. You can always manually re-install Mathematica though. @kjslag If I add them again, it'll be as optional dependencies. It is possible to use Mathematica's command line interface only in which case those libraries aren't necessary.

kjslag commented on 2017-03-31 15:49 (UTC)

FYI, libxcursor was included as a dependency due to an old comment by gamezelda. I never personally checked if it was necessary, but that's why it was there. I have no idea if it's still necessary. Thanks for taking over JP-Ellis! gamezelda commented on 2016-01-06 16:32 ... BTW, I also had to install libxcursor, alsa-lib and libxml2 in order to get the application running (using a very minimalistic setup with, so you may want to consider adding those to the dependencies on a future release.

wangjiezhe commented on 2017-03-31 15:35 (UTC)

Removed files should be in "/opt/Mathematica", not "/opt/mathematica".

JP-Ellis commented on 2017-03-18 03:12 (UTC) (edited on 2017-04-27 05:59 (UTC) by JP-Ellis)

Update to Mathematica 11.1.0. Summary of new features: Blog post: 2017-04-27 - Update to Mathematica 11.1.1 (bugfix release) 2017-04-01 - PKGBUILD was updated to correctly remove unnecessary files - Optional dependencies were updated based on namcap output.

JP-Ellis commented on 2017-02-15 00:14 (UTC)

Yeah, then I'm sorry, but I'm not sure what can be done. I'm guessing there's no `` file anywhere on the ISO? You could always download Mathematica from their website, but if you must use the ISO then you'll have to install it manually (or try and adapt this PKGBUILD to suit your needs).

aplund commented on 2017-02-14 23:59 (UTC)

The script in the Installer directory is called MathInstaller and does indeed have a different checksum 472e8fd55adf5b29dd0940aeee0fb6bb /tmp/mathematica-mount/Unix/Installer/MathInstaller If I force it to be the installer as you suggested I just get this error: -> Running Mathematica installer CRITICAL FAILURE: Fundamental Error Installer text not found.

JP-Ellis commented on 2017-02-14 23:40 (UTC)

@aplund Here's how it might work: - Mount the ISO into a directory, say /media/Mathematica_ISO - Download a snapshot of this PKGBUILD: cd ~ wget -O - | tar xz - Go to the snapshot folder, and create a symbolic link to the installer on the ISO: cd ~/mathematica ln -s /media/Mathematica_ISO/Unix/Installer/ - Run `makepkg -si` to install Mathematica Note that this PKGBUILD expects Mathematica 11.0.1, and verifies the content of the `.sh` file with a checksum. If the `.sh` file on the ISO is in any way different, it'll create an error. You can skip the checksums with `--skipchecksums`, but I can't guarantee that it'll work.

aplund commented on 2017-02-14 23:30 (UTC)

I have an ISO image instead of the Mathematica_${pkgver} script. The installation proceeds more like the instructions here: I'm not sure exactly how I'm meant to use this PKGBUILD file with the ISO image.

JP-Ellis commented on 2017-02-10 01:44 (UTC)

Update release: - Fix an incorrect symlink to wolframscript; - Remove `matheamtica.install` as it is handled by Pacman hooks - Make certain dependencies optional, so that Mathematica can be installed on a system without a GUI if only the command line is required. If there are any bugs, please let me know. NOTE: Mathematica's install script produces an install error as it tries to install the icons itself.

JP-Ellis commented on 2017-02-09 23:31 (UTC)

@kjslag That's fine, I can take care of this package. Just add me as a co-maintainer (in the Package Actions above) so that when you disown yourself, I should automatically become the new owner.

kjslag commented on 2017-02-09 18:28 (UTC)

@JP-Ellis Unfortunately, I don't think I'll be able to maintain any new versions of this package. Would you like to adopt it?

JP-Ellis commented on 2017-02-09 07:38 (UTC)

@kjslag I realized a small mistake in some of the changes are suggested to the PKGBUILD regarding `wolframscript`. I also took the opportunity to replace the `echo` statements with makepkg's own `msg2`. The patch can be found at and can be imported with: ``` cd <mathematica repository> wget git am mathematica.diff ```

positron commented on 2016-11-13 08:17 (UTC)

user1549751245 read the PKGBUILD before trying to build it.

user1549751245 commented on 2016-11-13 07:29 (UTC) (edited on 2016-11-13 07:29 (UTC) by user1549751245)

I get this errors as I try to install it: ==> Building and installing package ==> Making package: mathematica 11.0.1-1 ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... ==> ERROR: was not found in the build directory and is not a URL. ==> ERROR: Makepkg was unable to build mathematica. ==> Restart building mathematica ? [y/N]

positron commented on 2016-10-15 08:17 (UTC)

After I compiled it on the hdd instead of tmpfs everything's working now! Thanks!

kjslag commented on 2016-10-15 03:50 (UTC)

@JP-Ellis Thanks! I added your tmpfs check to package() since it didn't seem to work for me in prepare().

JP-Ellis commented on 2016-10-15 03:14 (UTC)

@kjslag Sorry I didn't check your message earlier. The issues with the xdg-icon-resources I believe is that it wants to write to system directories, but it cannot as it does not have root access. Other than that, the installation works fine for me. I have slightly updated the PKGBUILD to check if it is building in a tpmfs and issue a warning (and I updated to use makepkg's `msg2` and `warning` commands).

akrai commented on 2016-10-14 23:14 (UTC)

Wow, okay, using the env var builddir to build where the scripts are, the built package was now 9gb instead of 3.5gb and now all is working and correctly installed, perfect, and a new thing learned today

akrai commented on 2016-10-14 22:34 (UTC) (edited on 2016-10-14 23:00 (UTC) by akrai)

@kjslag hmmm nope, the package was in my home directory, i just downloaded this aur script, uncompressed it, and put the .sh installer script of mathematica together with the aur scripts, and just ran makepkg, i didnt choose ram or whatever, just pacman uses tmp to build packages as i know, so... Am i using a wrong command? edit: i forgot that i put in the config the builddir in tmp, sorry, im gonna try again

kjslag commented on 2016-10-14 17:52 (UTC)

@akrai You should try not building Mathematica in RAM. The package is built in whatever directory the PKGBUILD file is put into. If you use an AUR helper like yaourt or pacaur, the AUR helper probably (optionally) builds in /tmp, which I guess you (as I do also) have mounted into your RAM. I'm not sure how to make the PKGBUILD check for this issue... Does anyone know?

akrai commented on 2016-10-14 13:24 (UTC)

@kjslag i think it is probably related with the compilation of the package, because as i monitor the system with conky i saw that at first it gave me error because not enough space was found by the mathematica installer, because it is installed in RAM (am i the only one having this problem? it is pretty obvious you will have an error unless u have 16 gb ram) then i saw that tmp makes use of half of the ram and so i remounted it to make use of my full 8gb, and it got filled completely but no errors showing, and i suspected that maybe the package was not built correctly, so i changed swappiness from 10 to 60, and the building made use of about 50mb of swap so i though it was enough, but it seems there are problems with the building and the space but without errors printed... What should i do?

kjslag commented on 2016-10-13 22:23 (UTC)

@Akrai I'm not sure why your mimetype files are empty. Mine are not empty. positiron also seems to be having trouble starting mathematica.. Perhaps you should try contacting Wolfram tech support.

akrai commented on 2016-10-13 22:14 (UTC)

Installed, the only error is in the last moment, when generating mimetypes, saying that the mime files are empty, and it's true, when exploring the pkg.tar you can see that /usr/share/mime/packages/* are empty (0 bits size). I suppose it is related with the mime types error, but no shortcuts in the whiskers menu (xfce) But the most important thing: it doesn't run from terminal, i type mathematica, Mathematica, mcc, Wolfram, and nothing, not even an error message.

positron commented on 2016-10-04 18:46 (UTC)

I installed the latest version with no problem.. Not even the infamous "Installation failed. See .../pkg/mathematica/opt/Mathematica/InstallErrors." However when I try to launch it doesn't start. From the terminal doesn't print out anything. It doesn't even exit with error, it just doesn't launch. Am I the only one to experience this?

kjslag commented on 2016-10-03 18:29 (UTC) (edited on 2016-10-03 18:30 (UTC) by kjslag)

Thanks JP-Ellis. I updated to 11.0.1. Unfortunately, the following error still occurs: Installation failed. See .../pkg/mathematica/opt/Mathematica/InstallErrors. If InstallErrors is full of xdg-icon-resource, mkdir, and xdg-desktop-menu messages, then everything is fine. This is a known issue in the Mathematica installer [CASE:3493135].

jfernandz commented on 2016-10-03 16:14 (UTC) (edited on 2016-10-03 16:17 (UTC) by jfernandz)

I get this msg when install script is running: Installation failed. See ~/AUR/mathematica/pkg/mathematica/opt/Mathematica/InstallErrors. This file contains this warnings: xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. xdg-icon-resource: No writable system icon directory found. mkdir: cannot create directory '/applications-merged': Permission denied xdg-desktop-menu: No writable system menu directory found. This happens in Gnome 3, I suspect it may have to do with DE integration (icons of .nb files in nautilus, etc). This have been commented by @qft already. Maybe PKGBUILD could it be upgraded to improve that. Thank you so much.

JP-Ellis commented on 2016-10-01 03:53 (UTC)

PKGBUILD for 11.0.1:

kjslag commented on 2016-09-22 15:24 (UTC)

@Light2Yellow Mathematica isn't free. You need to purchase it, and then download from their website and put it in the build directory.

commented on 2016-09-22 11:54 (UTC)

==> ERROR: was not found in the build directory and is not a URL. ==> ERROR: Makepkg was unable to build mathematica.

kjslag commented on 2016-08-20 03:32 (UTC)

@qft Yes, I know. I think that happens to everyone. The Mathematica installer is ignoring the fact that it's not being installed by root. Wolfram needs to fix this. But in the meantime, the package still works just fine.

qft commented on 2016-08-20 00:01 (UTC)

When I run makepkg with this PKGBUILD, I always see the following error message: Installation failed. See /home/qft/build/mathematica/pkg/mathematica/opt/Mathematica/InstallErrors. And the file /opt/Mathematica/InstallErrors is not removed from the final package.

kjslag commented on 2016-08-19 03:29 (UTC) (edited on 2016-08-19 04:18 (UTC) by kjslag)

The installation is fine, the package made by makepkg should work. This is just a bug in the Mathematica installer. I'll bug Wolfram about it again. Edit: I have an open case [CASE:3493135] with Wolfram support regarding the issue. It was actually fixed in 10.4.0, but came back again in 10.4.1.

qft commented on 2016-08-19 03:26 (UTC)

Latest Mathematica 11 fails to install with the following error: xdg-icon-resource: No writable system icon directory found. mkdir: cannot create directory '/applications-merged': Permission denied xdg-desktop-menu: No writable system menu directory found. The installation script bypasses fakeroot and tries to write to the root directory directly...

kjslag commented on 2016-07-25 19:12 (UTC)

I see. I added mesa-demos.

JP-Ellis commented on 2016-07-25 05:25 (UTC)

If glxinfo isn't available, Mathematica informs that glxinfo is required for "optimized graphics capabilities" (you need to launch Mathematica from the command line to see the warning); I don't know anything more beyond that. I think that either mesa-demos and glxinfo are fine. I suggested glxinfo since Mathematica is already an AUR package and doesn't keep the extra content for the demos, but since mesa-demos is an Extra and only 7MB, I think it's also fine to list mesa-demos as the optional dependency.

kjslag commented on 2016-07-25 02:37 (UTC)

Really? What exactly does glxinfo add to Mathematica? If it does do something, I think mesa-demos would be better since it's in Extra as opposed to the AUR.

JP-Ellis commented on 2016-07-25 01:39 (UTC)

As an optional dependency, glxinfo should be added for optimized graphics capabilities (I updated my gist in the comment below to reflect that).

JP-Ellis commented on 2016-05-28 03:18 (UTC)

Yeah, unfortunately, the comments on this site are stripped of leading whitespaces :/ Here's a gist which has all the whitespaces preserved:

kjslag commented on 2016-05-27 22:55 (UTC)

Thanks! I added the symbolic links. That's a lot of aesthetic changes, and ironically the indentation whitespace was lost...

JP-Ellis commented on 2016-05-27 08:21 (UTC)

Wolfram is pushing their new "Wolfram Language" and as a result, they now have `wolfram` and `WolframKernel` (as binaries which should be installed as well. These are (afaik) equivalent to `math` and `MathKernel`. Here's an updated PKGBUILD (which has a few minor aesthetic changes as well): ``` # Maintainer: kjslag <kjslag at gmail dot com> # Contributor: Michael Pusterhofer <pusterhofer at student dot tugraz dot at> # Contributor: Raphael Scholer <> # Contributor: Anish Tondwalkar <> # Contributor: Ghost91 <> # Contributor: teratomata <> # Contributor: Joshua Ellis <> pkgname=mathematica pkgver=10.4.1 pkgrel=2 pkgdesc="A computational software program used in scientific, engineering, and mathematical fields and other areas of technical computing." arch=('i686' 'x86_64') url="" license=('proprietary') depends=('ttf-bitstream-vera' 'libxcursor' 'alsa-lib' 'libxml2') source=("local://Mathematica_${pkgver}") md5sums=('ea1f13a88279e6fc2ed1edc80e7a1612') install='mathematica.install' options=('!strip') PKGEXT=".pkg.tar" # To build this package you need to place the mathematica-installer into your startdir # If you don't own the installer you can download a trial version at build() { if [[ `echo "${srcdir}" | wc -w` -ne 1 ]] then echo echo "ERROR: The Mathematica installer doesn't support directory names with spaces. Try building from a directory without spaces." echo "current build directory: ${srcdir}" false fi chmod +x ${srcdir}/Mathematica_${pkgver} } package() { # ${srcdir}/Mathematica_${pkgver} -- \ -execdir=${pkgdir}/usr/bin \ -targetdir=${pkgdir}/opt/Mathematica \ -auto printf "Fixing symbolic symlinks..." cd ${pkgdir}/usr/bin rm * ln -s /opt/Mathematica/Executables/math ln -s /opt/Mathematica/Executables/mathematica ln -s /opt/Mathematica/Executables/Mathematica ln -s /opt/Mathematica/Executables/MathKernel ln -s /opt/Mathematica/Executables/mcc ln -s /opt/Mathematica/Executables/wolfram ln -s /opt/Mathematica/Executables/WolframKernel printf " Done\n" printf "Linking MathematicaScript..." if [ "${CARCH}" = "x86_64" ]; then ln -s /opt/Mathematica/SystemFiles/Kernel/Binaries/Linux-x86-64/MathematicaScript ln -s /opt/Mathematica/SystemFiles/Kernel/Binaries/Linux-x86-64/WolframScript else ln -s /opt/Mathematica/SystemFiles/Kernel/Binaries/Linux/MathematicaScript ln -s /opt/Mathematica/SystemFiles/Kernel/Binaries/Linux/WolframScript fi printf " Done\n" printf "Copying menu and mimetype information..." mkdir -p ${pkgdir}/usr/share/applications mkdir -p ${pkgdir}/usr/share/desktop-directories mkdir -p ${pkgdir}/usr/share/mime/packages cd ${pkgdir}/opt/Mathematica/SystemFiles/Installation desktopFile='wolfram-mathematica.desktop' sed -Ei 's|^(\s*TryExec=).*|\1/usr/bin/Mathematica|g' $desktopFile sed -Ei 's|^(\s*Exec=).*|\1/usr/bin/Mathematica %F|g' $desktopFile cp $desktopFile ${pkgdir}/usr/share/applications/ echo -e '\t\tCategories=Science;Math;NumericalAnalysis;DataVisualization;' >> ${pkgdir}/usr/share/applications/$desktopFile cp ${pkgdir}/usr/share/desktop-directories/ cp *.xml ${pkgdir}/usr/share/mime/packages/ printf " Done\n" printf "Copying icons..." mkdir -p ${pkgdir}/usr/share/icons/hicolor/{32x32,64x64,128x128}/{apps,mimetypes} cd ${pkgdir}/opt/Mathematica/SystemFiles/FrontEnd/SystemResources/X for i in "32" "64" "128"; do cp App.Mathematica.${i}.png \ ${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/wolfram-mathematica.png cp App.Player.${i}.png ${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/wolfram-mathematicaplayer.png cp vnd.wolfram.cdf.${i}.png \ ${pkgdir}/usr/share/icons/hicolor/${i}x${i}/mimetypes/application-vnd.wolfram.cdf.png cp vnd.wolfram.nb.${i}.png \ ${pkgdir}/usr/share/icons/hicolor/${i}x${i}/mimetypes/application-mathematica.png cp vnd.wolfram.player.${i}.png \ ${pkgdir}/usr/share/icons/hicolor/${i}x${i}/mimetypes/application-mathematicaplayer.png cp vnd.wolfram.cdf.${i}.png \ ${pkgdir}/usr/share/icons/hicolor/${i}x${i}/mimetypes/application-vnd.wolfram.cdf.png cp vnd.wolfram.nb.${i}.png \ ${pkgdir}/usr/share/icons/hicolor/${i}x${i}/mimetypes/gnome-mime-application-mathematica.png cp vnd.wolfram.player.${i}.png\ ${pkgdir}/usr/share/icons/hicolor/${i}x${i}/mimetypes/gnome-mime-application-mathematicaplayer.png cp vnd.wolfram.cdf.${i}.png \ ${pkgdir}/usr/share/icons/hicolor/${i}x${i}/mimetypes/gnome-mime-application-vnd.wolfram.cdf.png done printf " Done\n" printf "Copying man pages..." mkdir -p ${pkgdir}/usr/share/man/man1 cd ${pkgdir}/opt/Mathematica/SystemFiles/SystemDocumentation/Unix cp *.1 ${pkgdir}/usr/share/man/man1 printf " Done\n" printf "Fixing file permissions..." chmod go-w -R ${pkgdir}/* printf " Done\n" } # vim:set ts=2 sw=2 et: # Local Variables: # major-mode: sh # End: ```

kjslag commented on 2016-05-03 20:29 (UTC)

@mirh done

mirh commented on 2016-05-03 19:32 (UTC)

It wouldn't be bad if you could edit this with local:// "protocol" instead of the unsupported file://

karlpvoss commented on 2016-04-26 06:12 (UTC)

Thanks someonerandom and kjslag, downgrading worked very well. No problems installing the package.

kjslag commented on 2016-04-25 17:17 (UTC)

If you can't install due to the gzip-1.7 error, you could downgrade gzip by downloading and installing gzip-1.6 from

torfan commented on 2016-04-25 14:23 (UTC)

@someonerandom I installed yesterday Arch Linux with KDE Desktop and I can't install Mathematica. I have the problem you describe. I don't know how to apply the patch you refer. How I will install Mathematica (or the patch)? Thanks in advance.

someonerandom commented on 2016-04-24 12:28 (UTC)

If someone recently wants to build this package, keep away from gzip-1.7-1: gzip: write error: Bad file descriptor expr: syntax error Critical Failure in CheckSpace_() Unix/Installer/MathInstaller: line 3484: [: =: unary operator expected Unix/Installer/MathInstaller: line 3488: [: =: unary operator expected Unix/Installer/MathInstaller: line 3484: [: =: unary operator expected Unix/Installer/MathInstaller: line 3488: [: =: unary operator expected This is only fixed at git at the moment:

kjslag commented on 2016-04-22 01:35 (UTC)

@chrisbdaemon: Yes, they keep renaming their desktop files... :/ Also, the xdg-icon-resource errors from 10.3.1 are back. (It was temporarily fixed in 10.4.0.) Luckily, these errors appear to be harmless. I emailed Wolfram about it again.

chrisbdaemon commented on 2016-04-20 16:27 (UTC) (edited on 2016-04-20 16:54 (UTC) by chrisbdaemon)

Has anyone had success installing 10.4.1? I changed the pkgver and the md5 hashsum and the installation fails. No real information on why either. Update: Found the problem, wolfram-mathematica10.desktop is now wolfram-mathematica.desktop

doug commented on 2016-03-21 21:11 (UTC)

yes it works, we are using MathLM network license manager and have no problem activating

kjslag commented on 2016-03-19 19:34 (UTC)

I hope so. However, I haven't managed to successfully activate Mathematica 10.4 yet. Neither the online nor offline password generator have worked for me, and I'm still discussing with tech support. If someone confirms that 10.4 does indeed work on Arch, I'll update the package. You can test by changing the pkgver line near the top of the PKGBUILD, and then build using makepkg --skipinteg

GLaDER commented on 2016-03-19 18:57 (UTC)

Is there an upcoming 10.4-package coming?

batarjal commented on 2016-03-12 02:53 (UTC)

That worked. Thanks for your help!

kjslag commented on 2016-03-10 20:04 (UTC) (edited on 2016-04-19 22:36 (UTC) by kjslag)

To install a different version, change the pkgver line near the top of the PKGBUILD to the desired version, and build with makepkg --skipinteg

batarjal commented on 2016-03-10 12:58 (UTC)

That's probably my issue - My installer's name is Is there a way to use your package with my installer? My university only has version 10.1 available at this point in time.

kjslag commented on 2016-03-10 05:28 (UTC)

It's correct to have the installer in the same directory as the PKGBUILD. What's the name of the installer? The PKGBUILD currently expects

batarjal commented on 2016-03-10 04:07 (UTC)

I currently have the installer in the same directory as PKGBUILD. Should it be in the src subdirectory?

kjslag commented on 2016-03-10 02:55 (UTC)

Since Mathematica isn't free, you have to download the installer yourself and put it into the build directory.

batarjal commented on 2016-03-10 02:31 (UTC)

I'm a bit new to installing things via AUR. I ran makepkg -sri, but makepkg gave me an error saying "Unknown download protocol: file," and aborts. I have the necessary .sh file in the same folder as the PKGBUILD file. Is there anything that I need to do differently?

kjslag commented on 2016-01-27 18:31 (UTC)

To install, obviously the easiest would be to upgrade your SDD if possible or USB to 32GB ($10). But if you don't want to do that, you can use ln -s to help alternate where all the data is being stored. makepkg --noarchive will build the package without making the tar file, giving you time to delete the Mathematica installer and probably move things around again. Then makepkg --repackage to make the tar file. You can also change the PKGEXT line in /etc/makepkg.conf to be PKGEXT='.pkg.tar' so you don't have to compress the package file. Mathematica takes up 6.34GB on my laptop. But there is a ton of stuff in /opt/Mathematica that you can try deleting if you want. (Rename the folder and test that things still work first.) Documentation/ is 3.6GB and can be found online You'll only need one of these: SystemFiles/Libraries/Linux SystemFiles/Libraries/Linux-x86-64 and similar for SystemFiles/Java Doing all of that will bring things down to ~2GB I think. Have fun!

phyks commented on 2016-01-27 11:02 (UTC)

I am having an SSD on my laptop, which is not very large and quite full and do not have much more free space than the 10GB or so required by Mathematica to install (at least according to Wolfram website). I was building this package on a separate USB key, so that I could build and install it (USB key which has 16GB storage capacity). However, the build failed because I ran out of space on this USB key. It surprises me that to build this Mathematica package, I need at least twice more than the required free space than Mathematica. Maybe there are some tweaks that could be done to reduce disk use? (eventually commented out in the PKGBUILD, but which could be easily enabled). Things like removing sh script before compressing package and so on. Thanks!

kjslag commented on 2016-01-06 23:32 (UTC)

Thanks, I added the dependencies.

gamezelda commented on 2016-01-06 16:32 (UTC) (edited on 2016-01-06 16:32 (UTC) by gamezelda)

Thanks for maintaining this package! Aside from the icon-related errors you mentioned during installation, the application works correctly. BTW, I also had to install libxcursor, alsa-lib and libxml2 in order to get the application running (using a very minimalistic setup with, so you may want to consider adding those to the dependencies on a future release.

kjslag commented on 2015-12-18 01:27 (UTC)

I updated the package to 10.3.1. Unfortunately, the installer now runs xdg-icon-resource a bunch of times, which results in some installation errors. However, Mathematica still seems to run fine, so I submitted a bug report to Wolfram and updated the package. The installer error is: Installation failed. See /home/k/build/mathematica/pkg/mathematica/opt/Mathematica/InstallErrors The InstallErrors file contains: xdg-icon-resource: No writable system icon directory found. ... around 30 copies of the above line mkdir: cannot create directory '/applications-merged': Permission denied xdg-desktop-menu: No writable system menu directory found.

kjslag commented on 2015-10-20 06:17 (UTC)

Oops, thanks! I fixed the PKGBUILD. For those who don't want to reinstall, you can change the Exec and TryExec lines in /usr/share/applications/wolfram-mathematica10.desktop to point to /usr/bin/Mathematica.

edh commented on 2015-10-19 21:48 (UTC)

The Exec fields in the .desktop file are broken, since the wrong path for the executable is considered in the creation process. It defaults to the build directory and not to /usr/bin.

kjslag commented on 2015-08-07 21:17 (UTC)

Did you check to see what command is being launched when you "clicked in the applications"?

Blanchet commented on 2015-08-07 21:13 (UTC)

I've just run makepkg -s and pacman -U and it installed without any issue, thanks. However, I'm still curious why using pacaur did not work. Off topic, the program runs then immediately exits when clicked in the applications but works like a charm when started from the command line. Any thoughts?

kjslag commented on 2015-08-06 23:02 (UTC)

@Blanchet Does makepkg work?

Blanchet commented on 2015-08-06 22:45 (UTC)

Using pacaur, at first the update said "no such file", so I moved the .sh file to tmp/pacaur/mathematica; but now, after having moved the file, it returns this error /tmp/pacaurtmp-jb/mathematica/src/ line 265: exec: -t: invalid option exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...] :: mathematica cleaning skipped :: failed to build mathematica package(s) Any thoughts?

kjslag commented on 2015-08-05 01:09 (UTC)

That's funny. I guess Wolfram updated their package without updating the version number. I guess I'll do the same.

anntzer commented on 2015-08-04 21:49 (UTC)

md5sum is incorrect (1945ef3bb486b1091371128dd337aa19).

kjslag commented on 2015-07-18 16:52 (UTC)

Oops, thanks! I changed the desktop file and included some Categories. I didn't update the pkgrel.

berquist commented on 2015-07-18 15:33 (UTC)

I've noticed that `/usr/share/applications/wolfram-mathematica10.desktop` contains `Name=Mathematica 8`. It also doesn't show up in my Applications menu since there's no `Categories` entry in the desktop file. I vaguely remember there used to be one.

michalrus commented on 2015-05-04 14:35 (UTC)

Beware of spaces in directory names, the installer cannot handle these.

archlenovo commented on 2015-04-06 09:18 (UTC)

No problems installing here.

vanillacoffee commented on 2015-04-05 22:01 (UTC)

Yes, the empty files are the same in the makepkg pkgdir, the package tarball, and in the final installed files. Plenty of disk space. Tried rebuilding / reinstalling several times. Anyway, I can work around this by commenting the installer line in the PKGBUILD, running it manually, then running makepkg. So it's no big deal. Maybe someone else will have the same issue and see these comments. Thanks!

kjslag commented on 2015-04-05 21:33 (UTC)

Ok, then I don't think there's anything wrong with the PKGBUILD. If you untar your package file (the one you would install using pacman -U) into a new directory, are there still empty files? You probably already checked these, but just in case: Are you low on hard disk space? If you haven't already, you could try rebooting, rebuilding, and reinstalling the package.

vanillacoffee commented on 2015-04-05 21:17 (UTC)

No, those script files are normal. Maybe the installer is unable to detect the architecture in the makepkg environment?

kjslag commented on 2015-04-05 21:12 (UTC)

That's strange. Are the files in your build directory pkg/mathematica/opt/Mathematica/Executables/ also empty?

vanillacoffee commented on 2015-04-05 21:00 (UTC)

The Mathematica 10.1 installer does not work quite right under the control of makepkg on my system. Most files are installed correctly, but several are installed as empty files, most importantly the actual executables in /opt/Mathematica/SystemFiles/FrontEnd/Binaries. This does not happen if I run the installer outside of makepkg (using the same arguments). The PKGBUILD worked fine for previous releases. Any ideas?

archlenovo commented on 2014-12-15 18:42 (UTC)

A word of caution: after upgrading to 10.0.2 the fonts looked terrible. However, I had several font packages installed (freetype2-infinality, fontconfig-infinality, ttf-ms-win8). Eventually, I found that I could solve it in one of two ways: A) either uninstalling fontconfig-infinality, which was somehow doing a bad font substitution, B) or uninstalling ttf-ms-win8, which was providing a font that fontconfig-infinality could not substitute. The result of A) and B) is different, but in any case the font improves a lot. For the moment I'm sticking with A).

kjslag commented on 2014-12-11 17:02 (UTC)

Updated to 10.0.2. This release fixed the font issues that I was having :)

kjslag commented on 2014-11-03 05:28 (UTC)

# To build this package you need to place the mathematica-installer into your startdir # If you don't own the installer you can download a trial version at

PythonNut commented on 2014-11-03 05:24 (UTC)

I get ==> Retrieving sources... ==> ERROR: Unknown download protocol: file Aborting... ==> ERROR: Makepkg was unable to build mathematica. ==> Restart building mathematica ? [y/N] ==> ------------------------------------ ==> Building today.

kjslag commented on 2014-10-05 19:44 (UTC)

Does /bin/sh point to bash for you? From looking at the script, it looks like the script checks to see if you're using a terminal by running 'tty -s' and checking for an exit success. In your case, 'tty -s' seems to fail, which seems odd. What do you get when you run 'tty || echo fail'? I get /dev/pts/4.

land_or commented on 2014-10-05 18:39 (UTC)

I get following error: /tmp/pacaurtmp-roland/mathematica/src/ line 265: exec: -t: invalid option any suggestions?

kjslag commented on 2014-09-18 23:49 (UTC)

Oops, sorry about that. I added frederik's suggestion.

freswa commented on 2014-09-18 22:50 (UTC)

There are some files in this package that are world writeable (xx7). This is a security risk since anybody on this computer may execute commands as another user. You should add chmod o-w -R ${pkgdir}/* at the end before "Done" to avoid this. Thanks

kjslag commented on 2014-07-11 18:40 (UTC)

@JKAbrams I don't have ttf-ms-win8.

JKAbrams commented on 2014-07-11 14:31 (UTC)

@doug, tried installing the ubuntu font, the others I have already, I have the older ttf-ms fonts installed, but holding off on installing win8 fonts until I know I _really_ have to.. @kjslag tried, did not help. Do you have ttf-ms-win8? right I guess it's not a packaging issue then, taking this to the forum:

kjslag commented on 2014-07-10 21:35 (UTC)

@JKAbrams Fonts work for me also. You could try moving the ~/.Mathematica file if none of the ttf packages fix it. (When you start Mathematica again, it won't be able to find your license info. So just close it and copy in your old .Mathematica/Licensing/mathpass file.)

doug commented on 2014-07-10 19:23 (UTC)

no problem with fonts here I have installed ttf-bitstream-vera, ttf-dejavu, ttf-ubuntu-font-family and ttf-ms-win8 from aur

JKAbrams commented on 2014-07-10 17:30 (UTC)

I got a font-problem on 10.0.0 Tried to install the font-mathematica 9.0-3 but that did not help, anyone got a tip what to try? @w1ntermute: I got false out of space messages while running the .sh by itself from a NTFS partition when I installed 9.0.1 yesterday, I moved it to a ext4 partition and then it worked. But for 10.0.0 you need 5,4 GiB for the actual install plus, I think, at least double that for cache during installation. BTW, hat off to doug for the speedy update!

w1ntermute commented on 2014-07-10 12:14 (UTC)

Is anyone else getting the 'not enough space' error from the installer? I have Mathematica 9 installed, but when I tried to upgrade to 10, I got that error. I have ~5 GB free - is that not enough?

doug commented on 2014-07-09 20:41 (UTC)

I updated the package to mathematica 10

ava1ar commented on 2014-06-22 18:32 (UTC)

Can somebody pickup this package? I am no longer use it so disowning

lahwaacz commented on 2014-04-04 18:38 (UTC)

@mueslo: 'startdir' is the directory where the PKGBUILD is located on your filesystem.

mueslo commented on 2014-04-04 18:35 (UTC)

What is 'startdir'?

Razor.X commented on 2013-09-29 04:19 (UTC)

Are you running makepkg as root? If the installer tried to install things outside of the package build directory it should not be able to as long as you're running as a normal user.

PrincessYukon commented on 2013-09-27 18:01 (UTC)

I had to install this with "--force" because a bunch of files needed to be overwritten---presumably those installed by the wolfram installer during the package building process.

Razor.X commented on 2013-07-08 04:57 (UTC)

I'm new at this, but I took the existing PKGBUILD and moved the extraction step to the build() section. This seems to work normally now.

Johnny_Net commented on 2013-07-01 03:33 (UTC)

Can some one fix this please?

lahwaacz commented on 2013-06-29 18:52 (UTC)

@PerfectGentleman: are you kidding? why would someone compile as root? The command in build() function does not compile anything (it's proprietary software, so why would it compile?), it only extracts some files, so I agree with luolimao, it should be placed in package() instead.

luolimao commented on 2013-06-01 15:57 (UTC)

Error: Cannot create directory /home/.../makepkg/build/mathematica/pkg/mathematica/opt/Mathematica. There should be no mention of $pkgdir in a build() function, because building the PKGBUILD fails on the above error.

dmikalova commented on 2013-02-14 03:24 (UTC)

9.0.1 has just been updated with a minor bugfix for Linux that fixes the input suggestions. Here's the new md5sum: 7fcbc4d1488757b10ef07740ac30a580

Ghost91 commented on 2013-01-31 12:37 (UTC)

9.0.3 is out Diff of PKGBUILD:

lahwaacz commented on 2012-12-15 08:19 (UTC)

The mcc binary conflicts with similarily named tool of matlab:

Zap commented on 2012-12-01 13:43 (UTC)

Tested right now and it works, thanks university for the key. Kjslag it's right, please add the old install file.

kjslag commented on 2012-12-01 03:58 (UTC)

i'd imagine that the old install file would work: pkgname=mathematica post_install() { update-desktop-database -q gtk-update-icon-cache -f -q -t /usr/share/icons/hicolor update-mime-database usr/share/mime &>/dev/null } post_upgrade() { post_install $1 } post_remove() { gtk-update-icon-cache -f -q -t /usr/share/icons/hicolor }

commented on 2012-12-01 01:38 (UTC)

It appears there is no mathematica.install file?

Feanor12 commented on 2012-11-30 22:03 (UTC)

Done. Please test it. I can't :)

atondwal commented on 2012-11-30 21:47 (UTC)

Here's the PKGBUILD for mathematica 9. Please update?

Feanor12 commented on 2012-11-30 19:18 (UTC)

I can't update to Mathematica 9, because I don't own a licence. Please feel free to update it yourself.

Feanor12 commented on 2012-11-08 17:00 (UTC)

maybe you ran out of space. I'm not sure but isn't tmp located in the RAM. Try building it with 10GB of free space. Use "df -h" to determine a place with enough space. Go to this place via 'cd path-to-place' and build it like in my last post. If you sym-link the .sh file you don't need to copy it (save some space)

Johnny_Net commented on 2012-11-06 15:00 (UTC)

Thank you for looking into this. No, I did not touch the PKGBUILD. I run yaourt -S mathematica Before I proceed with the installation, I copy the .sh file into tmp/yaourt-tmp-user/aur-mathematica/ That's it. After that I hit install and I am presented with that error message.

Feanor12 commented on 2012-11-06 14:31 (UTC)

It seems to work on my end: #yaourt -G mathematica #cd mathematica #ln -s ../ #makepkg #pacman -U mathematica-8.0.4-2-x86_64.pkg.tar There are some lines in the installation Output to indicate the directory creation. Type the directory path in which the Wolfram Mathematica script(s) will be created, or press ENTER to select /usr/local/bin: > /tmp/mathematica/pkg/usr/bin Did you change the PKGBUILD? Your error means that there is no /usr/bin directory in your pkg directory. It is thrown by the cd command on line 33.

Feanor12 commented on 2012-11-06 14:08 (UTC)

Thanks for your report. I'm looking into it.

Johnny_Net commented on 2012-11-06 11:32 (UTC)

No one? :( I am stuck.

Johnny_Net commented on 2012-10-30 13:21 (UTC)

It does not work for me. ==> Starting package()... Fixing symbolic symlinks /tmp/yaourt-tmp-user/aur-mathematica/./PKGBUILD: line 33: cd: tmp/yaourt-tmp-user/aur-mathematica/pkg/usr/bin: No such file or directory. Any ideas please?

kjslag commented on 2012-08-30 22:04 (UTC)

Oops, I didn't notice the font-mathematica package. Nevermind.

rscholer commented on 2012-08-01 03:43 (UTC)

Ok. It seems we have to add "mathematica-fonts", "xorg-fonts-alias" and "xorg-fonts-type1" to dependencies.

rscholer commented on 2012-08-01 03:22 (UTC)

kjslag: Hmm... first we have to determine which fonts are available through packages and which are Mathematica-only. Then we can copy the Mathematica-only fonts to /usr/share/fonts. This is to avoid a "overwrite" of the packaged fonts.

kjslag commented on 2012-07-31 22:16 (UTC)

Could you add this line to the PKGBUILD? The line adds the mathematica fonts to the rest of the system fonts so that your text editor will see them. sudo ln -s /opt/Mathematica/SystemFiles/Fonts/ ${pkgdir}/usr/share/fonts/mathematica

Fallback commented on 2012-03-06 00:50 (UTC)

Feanor12 commented on 2011-12-23 18:17 (UTC)


rscholer commented on 2011-12-23 08:29 (UTC)

I was able to create, after comparing the content of /opt/Mathematica and /usr/share, a PKGBUILD which should install all necessary files. You can find the PKGBUILD here: and the install file here:

Feanor12 commented on 2011-12-22 13:54 (UTC)

There are desktop files in /opt/Mathematica/SystemFiles/Installation/ , but I'm not sure how to install those.

rscholer commented on 2011-12-22 12:25 (UTC)

Is it just me or does the package not contain icons, mime information, and *.desktop files?

Feanor12 commented on 2011-12-08 17:56 (UTC)

@Aegidius You need to download the Mathematica installer( from I could not find a newer version

EgidioCaprino commented on 2011-12-07 07:49 (UTC)

==> ERRORE: impossibile trovare nella directory e non è un URL.

commented on 2011-09-08 08:10 (UTC)

The installer that's on my DVD is called MathInstaller. I downloaded the trial version from wolfram, and that installer is indeed named as you said. I got the following error Unix/Installer/MathInstaller: line 1718: [: 0-ARCH: integer expression expected However, I was able launch mathematica, and it seemed to work just fine. Many thanks for the help.

Feanor12 commented on 2011-09-04 12:13 (UTC)

@doubleslash: Is your installer CD meant for linux? And it should be a DVD! 1,2G 9067e87cd5049eb0fb42bb15bd280f9c

Feanor12 commented on 2011-09-04 12:01 (UTC)

#create a temporary build directory mkdir build #change directory cd build #download the build-script wget #extract the build script bsdtar -xf mathematica.tar.gz #change directory cd mathematica #link to the proprietary installer(you have to download it from ln -s ~/Downloads/ . #build the package makepkg #install the package sudo pacman -U mathematica-8.0.1-2-any.pkg.tar

commented on 2011-09-03 15:36 (UTC)

could you please post step-by-step instructions on how to use this package to help install mathematica? My experience is that the installer script from Wolfram does not work with Arch, and when I open this package I don't know what to do with it. I'm new. Thanks.

tbhartman commented on 2011-08-26 16:30 (UTC)

Works like a charm, thanks!

Feanor12 commented on 2011-08-22 20:02 (UTC) is not included in the package because mathematica isn't free - but there are some infos in the PKGBUILD

commented on 2011-08-16 19:27 (UTC)

I have the mathematica installer cd but cannot find the file I got null results for the following commands [code]find . -type f -iname "*.sh"[\code[ and [code]find . -type f -print0 | xargs -0 md5sum | grep 9067e87cd5049eb0fb42bb15bd280f9c[\code]

Feanor12 commented on 2011-08-02 21:56 (UTC)

Nice - I didn't know that was possible - thx

chenxiaolong commented on 2011-08-02 21:35 (UTC)

Could you add: PKGEXT=".tar" to the PKGBUILD? That prevents makepkg from compressing the package (which takes a LONG time :( )

commented on 2011-05-06 14:13 (UTC)

This failed while trying to strip the symbols. -> Stripping unneeded symbols from binaries and libraries... /usr/bin/strip:./opt/Mathematica/SystemFiles/Links/LibraryLink/LibraryResources/Linux-x86-64/ File format not recognized You can add "options=('!strip')" to the PKGBUILD.

Sara commented on 2011-03-13 20:45 (UTC)

Mathematica has been updated to 8.0.1.

Feanor12 commented on 2011-03-05 20:07 (UTC)

I found a trial version of mathematica8 at

foggybrain commented on 2011-03-04 20:00 (UTC)

Well in that case this build is useless. At least build scripts for other non-free software at least install a trial or demo version until a full key is purchased, such as nero burner. Why don't you build a pkgbuild around one of the mathematica warez torrents ? ;o) Or maybe you could add an "echo" line to the build to explain that the software needs to be purchased before hand.

Feanor12 commented on 2011-03-04 11:42 (UTC)

btw i can't find a newer version

Feanor12 commented on 2011-03-04 11:32 (UTC)

this software isn't free i can just add a link to the shop of wolfram. like: or:

foggybrain commented on 2011-03-04 02:29 (UTC)

PKGBUILD does not have a download location for _source="Mathematica_"$pkgver""

Feanor12 commented on 2011-03-03 21:46 (UTC)

Working on update for version 8