Package Details: mathematica 14.0.0-1

Git Clone URL: https://aur.archlinux.org/mathematica.git (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 with offline documentation.
Upstream URL: http://www.wolfram.com/mathematica/
Licenses: proprietary
Submitter: Feanor12
Maintainer: JP-Ellis
Last Packager: JP-Ellis
Votes: 79
Popularity: 0.38
First Submitted: 2011-03-03 21:27 (UTC)
Last Updated: 2024-01-15 22:25 (UTC)

Dependencies (51)

Required by (1)

Sources (2)

Pinned Comments

JP-Ellis commented on 2024-01-15 22:27 (UTC)

The update to v14.0.0 has been uploaded. A list of new features can be found in Wolfram's blog.

If there are any issues with this PKGBUILD, please let me know in a commment below.

JP-Ellis commented on 2022-10-08 00:22 (UTC) (edited on 2023-08-19 12:56 (UTC) by JP-Ellis)

Wolfram offers two bundles for Mathematica: one with offline docs included, and one which relies on online docs. I have created corresponding version of the Mathematica package in the AUR:

  • mathematica: As this package has historically always included offline docs, it will continue to do so now. As of 13.1.0, the package takes up around 14.1GiB with all documentation.
  • mathematica-light: For those people who want a small package and/or want to use online docs, I have created this package which uses Wolfram's online-docs bundling of Mathematica. As of 13.3, the light version takes up around 7.2GiB.

Latest Comments

1 2 3 4 5 6 .. 35 Next › Last »

algar commented on 2024-01-17 09:02 (UTC)

The situation with wolframengine is that its kernel version is usually behind the kernel version shipped with mathematica. Check https://www.wolfram.com/engine/ versus https://www.wolfram.com/mathematica/.

JP-Ellis commented on 2024-01-17 05:23 (UTC)

Thanks for checking @loqy! I'll update the PKGBUILDs to make use of bash correctly.

I'll make sure to mark the difference with wolframengine more explicitly. I guess there's two ways I can do this: provides=('wolframengine') and conflicts=('wolframengine'). I'm thinking it should be the former (provides), as I think that all of the functionality of wolframengine is provided by the main mathematica package. Can someone confirm whether this is true (or if not, why)?

loqy commented on 2024-01-17 05:17 (UTC)

I can confirm that switching the sh calls in PKGBUILD to bash resulted in a successful installation, though I do not have wolframengine installed as algar does.

algar commented on 2024-01-16 11:55 (UTC)

I did not experience any problems to build the package with the PKGBUILD as given. However I did experience a problem installing:

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                                                                                                                          [#############################################################################################] 100%
(1/1) checking package integrity                                                                                                                        [#############################################################################################] 100%
(1/1) loading package files                                                                                                                             [#############################################################################################] 100%
(1/1) checking for file conflicts                                                                                                                       [#############################################################################################] 100%
error: failed to commit transaction (conflicting files)
mathematica: /usr/bin/ELProver exists in filesystem (owned by wolframengine)
mathematica: /usr/bin/MathKernel exists in filesystem (owned by wolframengine)
mathematica: /usr/bin/WolframKernel exists in filesystem (owned by wolframengine)
mathematica: /usr/bin/math exists in filesystem (owned by wolframengine)
mathematica: /usr/bin/mcc exists in filesystem (owned by wolframengine)
mathematica: /usr/bin/wolfram exists in filesystem (owned by wolframengine)
mathematica: /usr/bin/wolframscript exists in filesystem (owned by wolframengine)
mathematica: /usr/share/desktop-directories/wolfram-all.directory exists in filesystem (owned by wolframengine)
mathematica: /usr/share/doc/wolframscript/copyright exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/128x128/apps/wolfram-mathematica.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/128x128/mimetypes/application-vnd.wolfram.cdf.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/128x128/mimetypes/application-vnd.wolfram.mathematica.package.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/128x128/mimetypes/application-vnd.wolfram.nb.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/128x128/mimetypes/application-vnd.wolfram.player.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/128x128/mimetypes/application-vnd.wolfram.wl.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/128x128/mimetypes/application-vnd.wolfram.wls.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/32x32/apps/wolfram-mathematica.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/32x32/mimetypes/application-vnd.wolfram.cdf.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/32x32/mimetypes/application-vnd.wolfram.mathematica.package.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/32x32/mimetypes/application-vnd.wolfram.nb.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/32x32/mimetypes/application-vnd.wolfram.player.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/32x32/mimetypes/application-vnd.wolfram.wl.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/32x32/mimetypes/application-vnd.wolfram.wls.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/64x64/apps/wolfram-mathematica.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/64x64/mimetypes/application-vnd.wolfram.cdf.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/64x64/mimetypes/application-vnd.wolfram.mathematica.package.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/64x64/mimetypes/application-vnd.wolfram.nb.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/64x64/mimetypes/application-vnd.wolfram.player.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/64x64/mimetypes/application-vnd.wolfram.wl.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/icons/hicolor/64x64/mimetypes/application-vnd.wolfram.wls.png exists in filesystem (owned by wolframengine)
mathematica: /usr/share/man/man1/math.1.gz exists in filesystem (owned by wolframengine)
mathematica: /usr/share/man/man1/mathematica.1.gz exists in filesystem (owned by wolframengine)
mathematica: /usr/share/man/man1/mathlm.1.gz exists in filesystem (owned by wolframengine)
mathematica: /usr/share/man/man1/mcc.1.gz exists in filesystem (owned by wolframengine)
mathematica: /usr/share/man/man1/monitorlm.1.gz exists in filesystem (owned by wolframengine)
mathematica: /usr/share/man/man1/wolframscript.1.gz exists in filesystem (owned by wolframengine)
mathematica: /usr/share/mime/packages/application-vnd.wolfram.cdf.xml exists in filesystem (owned by wolframengine)
mathematica: /usr/share/mime/packages/application-vnd.wolfram.mathematica.package.xml exists in filesystem (owned by wolframengine)
mathematica: /usr/share/mime/packages/application-vnd.wolfram.nb.xml exists in filesystem (owned by wolframengine)
mathematica: /usr/share/mime/packages/application-vnd.wolfram.nbp.xml exists in filesystem (owned by wolframengine)
mathematica: /usr/share/mime/packages/application-vnd.wolfram.wl.xml exists in filesystem (owned by wolframengine)
mathematica: /usr/share/mime/packages/application-vnd.wolfram.wls.xml exists in filesystem (owned by wolframengine)
Errors occurred, no packages were upgraded.
==> WARNING: Failed to install built package(s).

A possibility is to make mathematica and wolfram engine packages incompatible.

loqy commented on 2024-01-16 11:15 (UTC)

If we run MathInstaller with bash, let's also add bash as a makedepends. Lots of people forget to do this

jdujava commented on 2024-01-16 11:12 (UTC) (edited on 2024-01-16 11:13 (UTC) by jdujava)

MathInstaller is a bash script, so it is better to run it directly with bash (my sh was not symlinked to bash, which resulted in 3634 Syntax error: Bad for loop variable). Also, I think there are now some outdated comments before prepare().

Additionally, I include a patch which makes it easier to change the "installation directory" (as of now, it is hardcoded at many places to be /opt/Mathematica).

Patches can be found in this gist.

(I posted this previously also to mathematica-light)

JP-Ellis commented on 2024-01-16 10:14 (UTC)

@loqy Thanks for the bug report. It is strange that the error is coming from MathInstaller, as that comes from Mathematica's installer. Can anyone else check whether they get this issue? @loqy, can you check whether the same error happens with mathematica-light?

loqy commented on 2024-01-16 10:08 (UTC)

the new pkgbuild fails for me.

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 72000    0 72000    0     0   210k      0 --:--:-- --:--:-- --:--:--  209k
==> Making package: mathematica 14.0.0-1 (Tue 16 Jan 2024 04:04:24 AM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found Mathematica_14.0.0_BNDL_LINUX.sh
  -> Found remove-xdg-scripts.patch
==> Validating source files with md5sums...
    Mathematica_14.0.0_BNDL_LINUX.sh ... Passed
    remove-xdg-scripts.patch ... Passed
==> Extracting sources...
==> Starting prepare()...
==> WARNING: Building Mathematica takes more than 24GiB of space for 'makepkg'.
==> WARNING: Building in a tmpfs (e.g. /tmp when mounted into RAM) may not work.
  -> Extracting Mathematica installer...
patching file Unix/Installer/MathInstaller
Hunk #1 succeeded at 1825 (offset -160 lines).
==> Entering fakeroot environment...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 72000    0 72000    0     0   237k      0 --:--:-- --:--:-- --:--:--  238k
==> Starting package()...
  -> Running Mathematica installer
/home/admin/Downloads/mathematica/src/bundle/Unix/Installer/MathInstaller: 3634: Syntax error: Bad for loop variable
==> ERROR: A failure occurred in package().
    Aborting...

JP-Ellis commented on 2024-01-15 22:27 (UTC)

The update to v14.0.0 has been uploaded. A list of new features can be found in Wolfram's blog.

If there are any issues with this PKGBUILD, please let me know in a commment below.

algar commented on 2024-01-13 20:50 (UTC)

There are two installers in the bundle with the offline docs included: one for the base system and another for the documentation. The current code in PKGBUILD only calls the installer for the base system. A possible way of fixing the failure with the docs installation is by adding the following in PKGBUILD

msg2 "Running Mathematica documentation installer"
    sh "${srcdir}/bundle/Unix/.bundle/Unix/Installer/MathInstaller" \
             -targetdir="${pkgdir}/usr/share/Wolfram" \
             -auto

Note that the documentation must be installed under /usr/share/Wolfram, otherwise it won't be found by the running Mathematica and it will then default to the on-line docs.