Package Details: mathematica 11.1.1-1

Git Clone URL: https://aur.archlinux.org/mathematica.git (read-only)
Package Base: mathematica
Description: A computational software program used in scientific, engineering, and mathematical fields and other areas of technical computing.
Upstream URL: http://www.wolfram.com/mathematica/
Licenses: proprietary
Submitter: Feanor12
Maintainer: JP-Ellis
Last Packager: JP-Ellis
Votes: 47
Popularity: 0.834926
First Submitted: 2011-03-03 21:27
Last Updated: 2017-04-28 01:37

Dependencies (54)

Required by (1)

Sources (1)

Pinned Comments

JP-Ellis commented on 2017-03-18 03:12

Update to Mathematica 11.1.0.

Summary of new features: http://reference.wolfram.com/language/guide/SummaryOfNewFeaturesIn111.html

Blog post: http://blog.wolfram.com/2017/03/16/the-rd-pipeline-continues-launching-version-11-1/

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.

Latest Comments

JP-Ellis commented on 2017-05-17 00:38

@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

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

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

@JP-Ellis The last commit added "exit 1" after running the Mathematica installer: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=mathematica#n116

wkunkel commented on 2017-04-27 19:15

@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

@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?

wkunkel commented on 2017-04-27 14:33

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 Mathematica_11.1.1_LINUX.sh
==> Validating source files with sha256sums...
Mathematica_11.1.1_LINUX.sh ... 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

@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

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 X.org+TWM), so you may want to consider adding those to the dependencies on a future release.

wangjiezhe commented on 2017-03-31 15:35

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

All comments