# WolframScript on Manjaro Linux

I have been trying to install Mathematica with Wolfram script on Manjaro Linux for the past 2 days with little success. I can install Mathematica itself using the .sh file but when the setup asks me if I want to install WolframScript and I say yes, I get the following error:

NOTE: Unable to determine the package manager used by the system--skipping the optional install of WolframScript system integration. Installer packages in the RPM and DEB formats have been left in "/usr/local/Wolfram/Mathematica/12.0/SystemFiles/Installation". Consult your system documentation on how such packages might be installed.

This error is due to the fact that Manjaro uses pacman as package manager but the WolframScript package is only available in .deb or .rpm format.

I tried installing Mathematica from the AUR but then I got this error:

I have no idea how to proceed from here. Can someone explain to me how to install Mathematica on a distro that uses the pacman package manager?

The mathematica PKGBUILD in the AUR requires the installer to be placed in the same directory as the PKGBUILD:

## 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
## http://www.wolfram.com/mathematica/trial


Alternatively, you can extract the data archive from the .deb file and then extract the WolframScript files from that (this is what the PKGBUILD does):

bsdtar -xf wolframscript_1.2.0+2019040701_amd64.deb data.tar.xz
tar -xf data.tar.xz


Then copy the files to the appropriate place on your filesystem.