Can't launch it in Gnome Wayland. But just add 'QT_QPA_PLATFORM=xcb', then solve it.
Search Criteria
Package Details: mathematica 13.0.11
Package Actions
Git Clone URL:  https://aur.archlinux.org/mathematica.git (readonly, 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:  http://www.wolfram.com/mathematica/ 
Licenses:  proprietary 
Submitter:  Feanor12 
Maintainer:  JPEllis 
Last Packager:  JPEllis 
Votes:  74 
Popularity:  0.052274 
First Submitted:  20110303 21:27 (UTC) 
Last Updated:  20220315 22:38 (UTC) 
Dependencies (50)
 openmp (openmpsvn, openmpnvptx)
 alsalib (alsalibgit, alsalibminimalgit, alsalibx205ta) (optional)
 atk (atkgit) (optional)
 cairo (cairogit, cairominimal, cairoglesv2bin, cairoglesv3bin, cairoubuntu) (optional)
 ffmpeg (ffmpegv4l2requestgit, ffmpegnoxgit, ffmpegsvtvp9git, ffmpegvp9timestamp, ffmpegcuda, ffmpegndi, ffmpegintelfullgit, ffmpegvulkan, ffmpegytdlpbin, ffmpegheadless, ffmpegamdfullgit, ffmpegamdfull, ffmpegfull, ffmpegdecklink, ffmpeglibfdk_aac, ffmpegmmal, ffmpegnocuda, ffmpegshinobi, ffmpegobs, ffmpegfullgit, ffmpeggit) (optional)
 fontconfig (fontconfigsrb, fontconfigminimalgit, fontconfigubuntu, fontconfiggit) (optional)
 gdkpixbuf2 (gdkpixbuf2git) (optional)
 glib2 (glib2clear, glib2quiet, glib2selinux, glib2nodocsgit, glib2git, glib2patchedthumbnailer) (optional)
 glu (glugit) (optional)
 gmime (optional)
 gmp (gmphg) (optional)
 gtk2 (gtk2ubuntu, gtk2git, gtk2minimalgit, gtk2patchedfilechoosericonview, gtk2maemo) (optional)
 harfbuzz (harfbuzzgit, harfbuzzminimalgit) (optional)
 inteltbb (inteloneapitbb, tbb) (optional)
 javaenvironment (javagcjcompat, jdk9, zulu10bin, jdkdevel, jdk6, jdk12openj9bin, zulu12bin, jdk12, jdk13openj9bin, jdk9openj9bin, jdk10, jdk11openjdkdcevm, jdk8openjdkjetbrains, jdk10openj9bin, jdk14openj9bin, jdk7, jdk8jetbrains, zulu14bin, jdkbcl, amazoncorretto15, jdk11openjdkdcevmconflictsfixed, zuluembeddedjdk8, sapmachinejdkbin, jdk15adoptopenjdk, libericajre8fullbin, amazoncorretto16, jdk8graalvmbin, jdk16graalvmbin, jdk8openjdkshenandoah, zulu16bin, jdk7j9bin, jdk11graalvmeebin, jdk11j9bin, jdk16adoptopenjdk, jdk11openj9bin, jdk11microsoftopenjdk, jdk16microsoftopenjdk, jdk12openjdk, jdk13openjdk, jdk14openjdk, jdk15openjdk, jdk16openjdk, jdkjetbrains, zuluembeddedjdk, jdkopenj9, jdk11msopenjdkbin, jdk18betatemurin, zulu13bin, jdk8arm, jdk11, jdk17jetbrains, jdkjetbrainsopenjdkxdg, jrejetbrains, zuluembeddedjdk11, amazoncorretto17, amazoncorretto18, jdk, jdklts, amazoncorretto8, amazoncorretto11, jdkopenjdkxdg, zulu8bin, zulu11bin, zulu17bin, zulu18bin, zulu15bin, jdk8j9bin, jdk7r1j9bin, libericajdk11bin, libericajdk11fullbin, libericajdk11litebin, libericajre11bin, libericajre11fullbin, libericajdk17fullbin, libericajdkfullbin, libericajdk8fullbin, jdk11graalvmbin, jdk17graalvmbin, jdk11jetbrainsimfix, jdkarm, jdktemurin, jdk11temurin, jdk17temurin, jdk8adoptopenjdk, javaopenjdkbin, jdkmicrosoftopenjdk, jdk8, jdk18openj9bin, javaopenjdkloomeabin, jdk17jetbrainsimfix, jdk8dragonwellbin, jdk11dragonwellbin, jdk17dragonwellbin, jdk8openj9bin, jdkopenj9bin, javaopenjdkeabin, jdkopenjdk, jdk11openjdk, jdk17openjdk, jdk8openjdk) (optional)
 javaruntime (javagcjcompat, jdk9, jre9, jdkdevel, jre10, jdk6, jdk12openj9bin, zulu12bin, jre6, jre12, serverjre, jdk13openj9bin, jdk9openj9bin, jdk10, jdk11openjdkdcevm, jre8openjdkjetbrains, jdk10openj9bin, jdk14openj9bin, jdk7, jre7, jre14, jdk8jetbrains, zulu14bin, jdkbcl, jrebcl, amazoncorretto15, jdk11openjdkdcevmconflictsfixed, zuluembeddedjdk8, sapmachinejdkbin, jdk15adoptopenjdk, libericajre8fullbin, amazoncorretto16, jdk8graalvmbin, jdk16graalvmbin, jre8openjdkshenandoah, zulu16bin, jdk7j9bin, jdk11graalvmeebin, jdk11j9bin, jdk16adoptopenjdk, jdk11openj9bin, zulujdkfxbin, jdk11microsoftopenjdk, jdk16microsoftopenjdk, jre12openjdk, jre13openjdk, jre14openjdk, jre15openjdk, jre16openjdk, jdkjetbrains, zuluembeddedjdk, jreopenj9, jdk11msopenjdkbin, jdk18betatemurin, zulujrefxbin, zulu13bin, jdk8arm, jre11, jre17jetbrains, jrejetbrainsopenjdkxdg, jrejetbrains, zuluembeddedjdk11, amazoncorretto17, amazoncorretto18, jre, jrelts, amazoncorretto8, amazoncorretto11, jreopenjdkxdg, zulu8bin, zulu11bin, zulu17bin, zulu18bin, zulu15bin, jdk8j9bin, jdk7r1j9bin, libericajdk11bin, libericajdk11fullbin, libericajdk11litebin, libericajre11bin, libericajre11fullbin, libericajdk17fullbin, libericajdkfullbin, libericajdk8fullbin, jdk11graalvmbin, jdk17graalvmbin, jre11jetbrainsimfix, jdkarm, jdktemurin, jdk11temurin, jdk17temurin, jre8adoptopenjdk, javaopenjdkbin, jdkmicrosoftopenjdk, jre8, jdk8, jdk18openj9bin, javaopenjdkloomeabin, jre17jetbrainsimfix, jdk8dragonwellbin, jdk11dragonwellbin, jdk17dragonwellbin, jdk8openj9bin, jdkopenj9bin, javaopenjdkeabin, hmclzulubin, jreopenjdk, jre11openjdk, jre17openjdk, jre8openjdk) (optional)
 leptonica (optional)
 libbson (mongocdriver) (optional)
 libffi (libffiminimalgit, libffigit) (optional)
 libmongoc (mongocdriver) (optional)
 Show 30 more dependencies...
Required by (2)
Sources (1)
Latest Comments
RabbitLime commented on 20220324 10:07 (UTC)
JPEllis commented on 20220315 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 20220314 18:49 (UTC)
Download link for 13.0.1 (I got this from wolfram support):
https://amoeba.wolfram.com/index.php/s/3aqYPLZeotSM4bi
JPEllis commented on 20220308 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 20220304 15:49 (UTC)
@prs, can you elaborate on the required changes for 13.0.1?!
prs commented on 20220223 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.
Thanks!
kjslag commented on 20211214 00:23 (UTC)
Version 13 fixes the text rendering issue for 3D plots for me. Here's a PKGBUILD: https://www.toptal.com/developers/hastebin/raw/ajiqexijog
JPEllis commented on 20211213 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 20211016 00:26 (UTC) (edited on 20211016 00:27 (UTC) by Kandscode)
I think the categories should be
Categories=Math;Science;Education;
Instead of
Categories=Science;Math;NumericalAnalysis;DataVisualization;
JPEllis commented on 20210830 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 20210830 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 20210826 16:18 (UTC) (edited on 20210826 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/
JPEllis commented on 20210715 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 20210715 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 20210715 19:01 (UTC)
The md5sum from wolfram.com is 7a192570cdcac6b40fed09cc7015b6bd which doesn't match what is in the PKGBUILD.
kjslag commented on 20210520 21:08 (UTC)
Here's a PKGBUILD for 12.3 https://pastebin.com/raw/WmgrVvGj
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 20210517 13:08 (UTC) (edited on 20210517 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/pamacbuild[USER]/mathematica/src/Mathematica_12.2.0_LINUX.sh: line 265: exec: t: invalid option
exec: usage: exec [cl] [a name] [command [argument ...]] [redirection ...]
==> ERROR: A failure occurred in package().
Aborting...
tonowak commented on 20210407 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 20210407 17:53 (UTC)
You need to download the sources yourself, since they require an account and valid license to download.
tonowak commented on 20210407 14:25 (UTC)
==> Retrieving sources...
==> ERROR: Mathematica_12.2.0_LINUX.sh was not found in the build directory and is not a URL.
error downloading sources: mathematica
BachoSeven commented on 20210212 21:48 (UTC)
No problem, and thank you for the quick update.
JPEllis commented on 20210212 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 20210212 11:38 (UTC)
i.e. this is how the last line of the .desktop file looks like:
Categories=Science;Math;NumericalAnalysis;DataVisualization;StartupWMClass=Mathematica;
BachoSeven commented on 20210211 18:48 (UTC)
@JPEllis 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).
JPEllis commented on 20210201 03:45 (UTC)
@MagHSK and @defty Mathematica has really poor support of nonASCII characters. I suspect it is something to do with that? Unfortunately I really don't know how this can be fixed.
defty commented on 20210201 02:43 (UTC)
@MagHSK I'm getting the same issue, not sure why.
maghsk commented on 20210114 04:53 (UTC)
Why all the buttons showing $Failed
in my install?
<img alt="picture" src="https://i.loli.net/2021/01/14/6N7bYvepcGFqlai.png" />
ver 12.2.0, tried LC_ALL=en_US.UTF8
kjslag commented on 20201221 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: https://mathematica.stackexchange.com/a/236975/36317
kjslag commented on 20201218 22:45 (UTC) (edited on 20201219 00:22 (UTC) by kjslag)
Here's a PKGBUILD for 12.2.0 https://pastebin.com/raw/Fy1t961P 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 20201006 15:32 (UTC) (edited on 20201006 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: https://www.csslayer.info/wordpress/fcitxdev/acasestudyhowtocompileafcitxplatforminputcontextpluginforaproprietarysoftwarethatusesqt5/ Disclaimer: I haven't tried this myself.
JPEllis commented on 20200928 12:27 (UTC)
@tuxzz I've never used Fcitx or fcitx5. From what I could find, they are meant to add support for inputting nonASCII 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 nonASCII characters without using the special syntax they use.
JPEllis commented on 20200928 12:24 (UTC)
@defty
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 20200928 12:19 (UTC)
fcitx5 doesn't work in this Mathematica. Did anyone fix it?
defty commented on 20200819 22:18 (UTC)
2 questions:
 Do I need to install all the optional dependencies? From reading the PKGBUILD, my guess would be no.
 I'm getting this error: https://0x0.st/igHu.png. Does anyone know how to fix
BachoSeven commented on 20200817 10:47 (UTC)
@JPEllis do the 21 GB need to be free storage in the / partition or in /home?
JPEllis commented on 20200817 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).
JPEllis commented on 20200817 10:24 (UTC)
@RunAndTumble I did that for a short while (as @kjslag mentioned) due to a fontrelated 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 20200817 09:00 (UTC)
I currently get the error
Installation failed. See
/home/will/.cache/yay/mathematica/pkg/mathematica/opt/Mathematica/InstallErrors.
> Errors related to 'xdgiconresource' and 'xdgdesktopmenu' 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().
Aborting...
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 20200816 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 20200816 00:19 (UTC)
@JPEllis
What are the chances to get rid of the bundled components by simply linking to the system ones?
wbthomason commented on 20200706 16:29 (UTC)
Has anyone run into the following error while installing 12.0.0?
mkdir: cannot create directory '/applicationsmerged': 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 20200624 04:55 (UTC)
12.1.1 was released earlier this month: https://www.wolfram.com/mathematica/quickrevisionhistory.html
physkets commented on 20200622 06:03 (UTC)
Why is this flagged outofdate? I don't see any new releases.
kjslag commented on 20200526 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 20200526 04:11 (UTC) (edited on 20200526 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 nonWindows systems
kjslag commented on 20200525 19:13 (UTC)
@bryango iyanmv's idea of starting Mathematica with mesa fixes your issues for me. See also: https://mathematica.stackexchange.com/a/222365/36317
iyanmv commented on 20200525 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 20200520 04:29 (UTC)
@JPEllis 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.
JPEllis commented on 20200520 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 20200520 04:10 (UTC) (edited on 20200520 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.
JPEllis, where did this list of optional dependencies come from? For example, why is intelmkl, 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/Linuxx8664/
Below is my list of optional dependencies:
alsalib [installed]
atk [installed]
cairo [installed]
clucene [installed]
cuda
curl [installed]
espeak [installed]
ffmpeg [installed]
fluidsynth [installed]
fontconfig [installed]
freetype2 [installed]
gdkpixbuf2 [installed]
glib2 [installed]
glu [installed]
gmime
gmp [installed]
gtk2 [installed]
harfbuzz [installed]
icu [installed]
intelmkl [installed]
inteltbb [installed]
javaenvironment [installed]
javaruntime [installed]
lame [installed]
lcms2 [installed]
leptonica
libbson
libffi [installed]
libjpegturbo [installed]
libmad [installed]
libmongoc
libnet [installed]
libogg [installed]
libpng12 [installed]
libselinux
libsm [installed]
libssh2 [installed]
libutillinux [installed]
libwebp [installed]
libx11 [installed]
libxml2 [installed]
libxslt [installed]
libxtst [installed]
libxxf86vm [installed]
mesademos: for improved graphics output [installed]
ncurses [installed]
nvidiautils [installed]
opencv
openssl1.0 [installed]
pango [installed]
pixman [installed]
portaudio [installed]
postgresqllibs [installed]
qt5multimedia [installed]
qt5svg [installed]
qt5webengine [installed]
qt5xmlpatterns [installed]
r [installed]
tesseract
zlib [installed]
JPEllis commented on 20200520 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 20200520 04:07 (UTC) (edited on 20200520 04:42 (UTC) by bryango)
@JPEllis 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: https://pastebin.com/k8hUQNzL. 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!
JPEllis commented on 20200520 03:29 (UTC) (edited on 20200520 03:30 (UTC) by JPEllis)
@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:

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?

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.
alsalib [installed]
atk [installed]
cairo [installed]
clucene
cuda
curl [installed]
espeak
ffmpeg [installed]
fluidsynth [installed]
fontconfig [installed]
freetype2 [installed]
gdkpixbuf2 [installed]
glib2 [installed]
glu [installed]
gmime
gmp [installed]
gtk2 [installed]
harfbuzz [installed]
icu [installed]
intelmkl
inteltbb [installed]
javaenvironment
javaruntime [installed]
lame [installed]
lcms2 [installed]
leptonica [installed]
libarchive [installed]
libbson
libffi [installed]
libjpegturbo [installed]
libmad [installed]
libmongoc
libnet [installed]
libogg [installed]
libpng12
libraw [installed]
libselinux
libsm [installed]
libssh2 [installed]
libutillinux [installed]
libwebp [installed]
libx11 [installed]
libxcomposite [installed]
libxml2 [installed]
libxrandr [installed]
libxslt [installed]
libxss [installed]
libxtst [installed]
libxxf86vm [installed]
mesademos: for improved graphics output
ncurses [installed]
nss [installed]
nvidiautils
opencv [installed]
openssl1.0
pango [installed]
pixman [installed]
portaudio [installed]
postgresqllibs [installed]
python [installed]
qt5declarative [installed]
qt5multimedia [installed]
qt5svg [installed]
qt5svg [installed]
qt5webengine [installed]
qt5xmlpatterns [installed]
r
tesseract
zlib [installed]
bryango commented on 20200520 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 https://mathematica.stackexchange.com/q/221600; 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 20200420 15:31 (UTC) (edited on 20200420 15:32 (UTC) by Pippip19)
After upgrading libffi (3.2.14 > 3.33) Mathematica 11.3 broke due to missing libffi.so.6.
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/Linuxx8664/libffi.so.6 /opt/Mathematica/SystemFiles/FrontEnd/Binaries/Linuxx8664/Mathematica/libffi.so.6
sfncmp1729 commented on 20200405 14:49 (UTC)
Any news on a PKGBUILD for the wolfram engine?
JPEllis commented on 20200402 23:34 (UTC) (edited on 20200402 23:36 (UTC) by JPEllis)
Update to Mathematica 12.1.0
Summary of new features: https://wolfr.am/NewIn12.1
Please let me know if you encounter any issues.
ivanmlerner commented on 20200402 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 20200306 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.11 > 9.0.12, so downgrading to 9.0.11 is also an option if that isn't required by another package on your system.
hmenke commented on 20200225 04:25 (UTC)
The recent openmp update removed the aliases and now libiomp5.so is no longer provided. Older version of the PKGBUILD did deduplicate system libraries an removed libiomp5.so, so these older version will break now. I chose to just link libomp.so into the package:
ln sf /usr/lib/libomp.so ./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libiomp5.so
This in only an issue with the PKGBUILD for Mathematica 11.3 (an older I guess).
JPEllis commented on 20191216 00:51 (UTC)
I have fixed the backticks in the PKGBUILD.
jfernandz commented on 20191214 00:49 (UTC) (edited on 20191214 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 20191018 01:44 (UTC) (edited on 20191018 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 20191018 01:24 (UTC) (edited on 20191018 01:29 (UTC) by ruy16109)
In the newest update (Mathematica 12.0.0, AUR update time 20190911 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 20190920 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 20190919 19:11 (UTC) (edited on 20190919 19:15 (UTC) by Firnen)
A file appears to be missing for the build.
Building mathematica...
==> Making package: mathematica 12.0.01 (Thu 19 Sep 2019 03:04:40 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> ERROR: Mathematica_12.0.0_LINUX.sh was not found in the build directory and is not a URL.
JPEllis commented on 20190912 03:48 (UTC)
@JPUndercover 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 repack everything).
oUndercover commented on 20190911 15:41 (UTC) (edited on 20190911 15:54 (UTC) by oUndercover)
@JPEllis 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!
JPEllis commented on 20190911 11:22 (UTC) (edited on 20190911 11:24 (UTC) by JPEllis)
@JPUndercover 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 20190911 11:20 (UTC) (edited on 20190911 11:39 (UTC) by oUndercover)
Installing this package on Manjaro ended up with this:
Installation failed. See
/home/undercover/.cache/yay/mathematica/pkg/mathematica/opt/Mathematica/InstallErrors.
> Errors related to 'xdgiconresource' and 'xdgdesktopmenu' 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().
Aborting...
Error making: mathematica
The file InstallErrors
is empty.
sfncmp1729 commented on 20190624 15:09 (UTC)
Any news about the Wolfram Engine AUR package?
JPEllis commented on 20190609 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 20190608 13:45 (UTC)
@JPEllis 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!
JPEllis commented on 20190603 00:36 (UTC)
@dareme7 All the AUR packages always assume that the base
and basedevel
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 20190601 14:47 (UTC)
This package is missing sed as a dependancy, it won't start otherwise.
sfncmp1729 commented on 20190523 13:29 (UTC)
@JPEllis Thanks for your work!
JPEllis commented on 20190523 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!
sfncmp1729 commented on 20190522 13:19 (UTC)
Hi! A free version of the Wolfram Engine for developers has been released (https://www.wolfram.com/engine/). Just wondering, would it be possible to adapt this PKGBUILD for it?
RunAndTumble commented on 20190430 14:18 (UTC)
@JPEllis
Yes, I didn't notice that I was out of space, thank you.
JPEllis commented on 20190429 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 20190429 14:46 (UTC)
This is odd, now, with the latest script I get this:
> Errors related to 'xdgiconresource' and 'xdgdesktopmenu' 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 20190429 09:56 (UTC)
@JPEllis thanks for the quick answer. If someone is wondering where to find the script, I found mine on my Wolfram User Portal.
JPEllis commented on 20190429 08:54 (UTC)
@Icemole Unfortunately, there are (afaik) no publicly available download links for Mathematica. As a result, you must download Mathematica_12.0.0_LINUX.sh
manually and place it in the same directory as the PKGBUILD.
Icemole commented on 20190429 08:52 (UTC)
Hey, when executing makepkg I'm getting "ERROR: Mathematica_12.0.0_LINUX.sh 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?
JPEllis commented on 20190429 01:00 (UTC)
@rvlobato In my experience, Mathematica doesn't support HiDPI screens all that well, especially in popup windows. I have not found any workaround myself other than manually resizing the window.
rvlobato commented on 20190425 00:45 (UTC) (edited on 20190425 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?
JPEllis commented on 20190424 05:41 (UTC)
Update to Mathematica 12.0.0
Summary of new features: https://wolfr.am/newfeatures12
Please let me know if you encounter any issues.
pants commented on 20190417 19:27 (UTC) (edited on 20190418 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`](https://aur.archlinux.org/cgit/aur.git/commit/?h=mathematica&id=8a45ff6)..0f134fc 100644
 a/PKGBUILD
+++ b/PKGBUILD
@@ 7,8 +7,8 @@
# Contributor: teratomata <teratomat@gmail.com>
pkgname=mathematica
pkgver=11.3.0
pkgrel=3
+pkgver=12.0.0
+pkgrel=1
pkgdesc="A computational software program used in scientific, engineering, and mathematical fields and other areas of technical computing."
arch=('i686' 'x86_64')
url="<http://www.wolfram.com/mathematica/>"
@@ 75,8 +75,8 @@ optdepends=(
'zlib'
)
source=("local://Mathematica_${pkgver}_LINUX.sh" "duplicatelibs.txt")
md5sums=('623f9fa3d34ded6997c7b9f1505097c0'
 'e442aa2286a9d93e932076c974517dd7')
+md5sums=('f3ca61be780242cd16d3e313a800a287'
+ 'f01cd280d4e13014f6253df657d1e572')
options=("!strip")
## To build this package you need to place the mathematicainstaller 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.036_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/desktopdirectories \
${pkgdir}/usr/share/mime/packages
cd ${pkgdir}/opt/Mathematica/SystemFiles/Installation
 desktopFile='wolframmathematica11.desktop'
+ desktopFile='wolframmathematica12.desktop'
sed Ei 's^(\s*TryExec=).*\1/usr/bin/Mathematicag' $desktopFile
sed Ei 's^(\s*Exec=).*\1/usr/bin/Mathematica %Fg' $desktopFile
printf 'Categories=Science;Math;NumericalAnalysis;DataVisualization;' >> $desktopFile
diff git a/duplicatelibs.txt b/duplicatelibs.txt
index [`66f4cca`](https://aur.archlinux.org/cgit/aur.git/commit/?h=mathematica&id=66f4cca)..93d5486 100644
 a/duplicatelibs.txt
+++ b/duplicatelibs.txt
@@ 1,38 +1,11 @@
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libGLU.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libGLU.so.1
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libcairo.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libcairo.so.2
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libcrypto.so.1.0.0
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libespeak.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libffi.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libffi.so.6
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libfreetype.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libfreetype.so.6
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libgio2.0.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libgio2.0.so.0
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libglib2.0.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libglib2.0.so.0
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libgmodule2.0.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libgmodule2.0.so.0
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libgmp.so.10
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libgobject2.0.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libgobject2.0.so.0
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libgthread2.0.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libgthread2.0.so.0
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libharfbuzz.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libharfbuzz.so.0
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libiomp5.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libpango1.0.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libpango1.0.so.0
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libpangocairo1.0.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libpangocairo1.0.so.0
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libpangoft21.0.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libpangoft21.0.so.0
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libpangoxft1.0.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libpangoxft1.0.so.0
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libpixman1.so
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libpixman1.so.0
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libpng12.so.0
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libportaudio.so.2
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libssh2.so.1
./opt/Mathematica/SystemFiles/Libraries/Linuxx8664/libssl.so.1.0.0
RunAndTumble commented on 20190417 18:15 (UTC) (edited on 20190429 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.036_amd64.deb'
PlaidPenguin commented on 20190317 15:17 (UTC)
@JPEllis @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 20190312 14:48 (UTC)
@JPEllis @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/Linuxx8664/libespeak.so' that ships with Mathematica is wrongly removed via the duplicatelibs.txt file. If you modify duplicatelibs.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.
JPEllis commented on 20190311 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 20190307 21:23 (UTC)
@JPEllis I also get the same error as miro86 and mpr. Has someone found a solution to this problem?
hzhangxyz commented on 20190307 04:44 (UTC)
I didn't install espeak so mathematica report error since the library has already been removed via duplicatelibs.txt
run
pacman Foq awk F / '{print "/usr/lib/"$7}' duplicatelibs.txt
 sort  uniq
and get:
community/espeak community/libpng12 community/portaudio core/glib2 core/gmp core/libffi core/libssh2 core/openssl1.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 20190302 16:30 (UTC) (edited on 20190302 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?
JPEllis commented on 20190122 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 20190119 22:07 (UTC)
@JPEllis: the installer seems to work, it loads then asks for the installation directory. Is there a solution with regards to xterm?
JPEllis commented on 20190118 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 20190108 19:09 (UTC) (edited on 20190108 19:25 (UTC) by Virtualmorpher)
I'm getting the following error:
...
==> Starting package()...
> Running Mathematica installer
xterm: cannot load font "MiscFixedmediumR**131207575C120ISO106461"
xterm: cannot load font "miscfixedmediumrsemicondensed131207575c60iso106461"
> Errors related to 'xdgiconresource' and 'xdgdesktopmenu' are to be expected during Mathematica's installation.
> Fixing symbolic links
/home/miro/AUR/pamacbuild/mathematica/PKGBUILD: line 120: cd: /home/miro/AUR/pamacbuild/mathematica/pkg/mathematica/opt/Mathematica/Executables: No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
I've got around 27GB free space in my home directory, so the problem seems to be somewhere else.
fenho commented on 20181231 05:32 (UTC)
new around here, just wanna say thank you.
Brikowski commented on 20181203 12:58 (UTC) (edited on 20181203 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 'xdgiconresource' and 'xdgdesktopmenu' 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 20181121 20:40 (UTC)
Removing libcrypto.so.1.0.0 breaks Encrypt and Decrypt. The examples in the documentation don't work when libcrypto.so.1.0.0 is removed. Please remove the libcrypto line from duplicatelibs.txt. Maybe removing so many libraries is dangerous? What's the motivation for removing so many?
JPEllis commented on 20181023 23:17 (UTC)
@lolmd5 portaudio is already an optional dependency.
lolmd5 commented on 20181023 22:34 (UTC)
@JPEllis, would you mind adding portaudio to the optional deps?
lolmd5 commented on 20181023 22:04 (UTC)
@JPEllis, yep, disk space was the issue. Man, this is such bloated software.
JPEllis commented on 20181022 23:36 (UTC)
@lolmd5 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
?
lolmd5 commented on 20181022 23:16 (UTC)
I'm having trouble installing this.
Installation failed. See
~/.cache/aurman/mathematica/pkg/mathematica/opt/Mathematica/InstallErrors.
> Errors related to 'xdgiconresource' and 'xdgdesktopmenu' 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().
Aborting...
20181022 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.
JPEllis commented on 20181008 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 20181008 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!
JPEllis commented on 20181008 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 20181005 13:34 (UTC)
Hey Folks
What do you think about further compression of the package? Now it's about 10GB, however, people here ( https://mathematica.stackexchange.com/questions/6193/whichmathematicafilesmaybedeletedtosavespace ) suggest additional ways to save some space.
yechs commented on 20181002 21:37 (UTC) (edited on 20181002 21:37 (UTC) by yechs)
/opt/Mathematica/SystemFiles/FrontEnd/Binaries/Linuxx8664/Mathematica: error while loading shared libraries: libportaudio.so.2: 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 20180927 22:11 (UTC)
@JPEllis 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.
JPEllis commented on 20180927 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 20180927 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 20180618 21:12 (UTC) (edited on 20180618 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:
!/bin/bash
STRING="Wolfram"
INPATH="/"
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.
JPEllis commented on 20180606 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 commandline version of Mathematica).
vsilv commented on 20180605 17:07 (UTC)
Dear JPEllis, 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 20180530 09:24 (UTC)
@JPEllis 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).
JPEllis commented on 20180530 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 20180529 06:25 (UTC)
@JPEllis
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?
JPEllis commented on 20180529 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 20180528 11:42 (UTC)
Hey,
Running "pacaur S mathematica" in the directory with the files:
(output of ls l)" total 4845616 rwrr 1 weetc users 2695 Apr 11 07:06 duplicatelibs.txt drwxrxrx 7 root root 4096 May 18 16:14 Install rwrr 1 weetc users 4961862431 May 12 14:27 Mathematica_11.3.0_LINUX.sh rwrr 1 weetc users 22314 Apr 11 07:06 PKGBUILD drwxrxrx 2 weetc users 4096 May 12 14:50 src " produces " ==> ERROR: Mathematica_11.3.0_LINUX.sh was not found in the build directory and is not a URL. :: failed to verify mathematica integrity ".
Have I made a simple mistake here?
Thanks,
TC
Lchu613 commented on 20180411 18:33 (UTC)
As jumper149 pointed out, having portaudio installed is now necessary for 11.3.02 to run; otherwise everything runs fine.
jumper149 commented on 20180411 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 20180411 06:25 (UTC)
I do not use texttospeech 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.
JPEllis commented on 20180411 06:17 (UTC)
@qft At this stage, I would recommend you install espeak
as an optional dependency since you use the texttospeech 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 20180411 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 libespeak.so
. Before you removed this file, my installation of Mathematica could do text2speech perfectly. Now it cannot because libespeak.so
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?
JPEllis commented on 20180411 05:46 (UTC) (edited on 20180411 05:51 (UTC) by JPEllis)
@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 20180411 05:39 (UTC) (edited on 20180411 05:40 (UTC) by qft)
Also, removing the libraries in duplicatelibs.txt implies the following packages become required:
cairo
, espeak
, freetype2
, glib2
, glu
, gmp
, harfbuzz
, libffi
, libpng12
, libssh2
, openssl1.0
, pango
, pixman
, portaudio
, zlib
Since espeak
, libpng12
and portaudio
are not commonly installed, the files libpng12.so.0
, libespeak.so
, and libportaudio.so.2
should not be removed. In my opinion the original library files should kept as is unless absolutely necessary.
qft commented on 20180411 05:24 (UTC)
Actually I think instead of making openmp
as a required dependency, a better strategy is to not include libiomp5.so
in the duplicatelibs.txt
file. The libiomp5.so
file that ships with mathematica was from gcc, and the libiomp5.so
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 libpng12.so.0
and libespeak.so
should not be removed. Otherwise two more dependencies are needed and it's always not a good idea to add unnecessary extra dependencies.
JPEllis commented on 20180411 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 20180411 04:50 (UTC)
openmp should be a dependency of the latest version, otherwise mathematica complains about missing libiomp5.so and cannot start.
JPEllis commented on 20180410 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/Linuxx8664/
)
jumper149 commented on 20180410 13:23 (UTC)
I uninstalled Mathematica 11.2 with instructions from http://support.wolfram.com/kb/12473. Before it was installed without pacman. I lately got the error: /opt/Mathematica/SystemFiles/FrontEnd/Binaries/Linuxx8664/Mathematica: symbol lookup error: /usr/lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
Then i installed Mathematica 11.3 with this aur package. The fix @JPEllis is not possible because the following files are NOT in /opt/Mathematica/SystemFiles/FrontEnd/Binaries/Linuxx8664/:
freetype.so.6, freetype.so and libz.so
so i cant remove them.
The installation seems fine I think.
/lib/libfontconfig.so.1 exists.
what can i do now i still get the fontconfig error.
JPEllis commented on 20180326 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 freetype.so.6
, freetype.so
and libz.so
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 20180325 16:23 (UTC)
If you get an error like:
/opt/Mathematica/SystemFiles/FrontEnd/Binaries/Linuxx8664/Mathematica: symbol lookup error: /lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
then just remove or rename the mathematica freetype.so.6 and libz.so libraries in the directory ${TopDirectory}/SystemFiles/Libraries/Linuxx8664
(source https://bugs.archlinux.org/task/57948 )
JPEllis commented on 20180315 04:26 (UTC) (edited on 20180530 04:37 (UTC) by JPEllis)
Update to Mathematica 11.3.0
Summary of new features: https://wolfr.am/newfeatures113
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 20180314 08:53 (UTC) (edited on 20180314 08:54 (UTC) by eisterman)
I've fixed the PKGBUILD for the 11.3
Changelog:

Update pkgver

Updated hardcoded name wolframscript_1.2.022_amd64.deb to wolframscript_1.2.036_amd64.deb

Updated data.tar.xz to data.tar.gz (file inside wolframscript_1.2.036_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.
JPEllis commented on 20180314 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.
Pinned Comments