Package Details: matlab 9.3.0.713579-2

Git Clone URL: https://aur.archlinux.org/matlab.git (read-only)
Package Base: matlab
Description: A high-level language for numerical computation and visualization
Upstream URL: http://www.mathworks.com
Licenses: custom
Submitter: ido
Maintainer: greyltc (daniel_shub, ido)
Last Packager: greyltc
Votes: 12
Popularity: 0.700002
First Submitted: 2015-08-15 09:33
Last Updated: 2017-11-26 23:53

Latest Comments

hottea commented on 2017-12-20 12:02

Hello, I write a PKGBUILD based on this one.

Changes:

  • default installation folder: /opt/matlab
  • license.dat is installed in /opt/matlab/licenses. I'm sure how matlab activing, but just copying license.dat to /etc/matlab/licenses/, and create a soft link from /opt/matlab/licenses to /etc/matlab/licenses/ not work for me.
  • matlab.tar is created by just copying all file in matlab iso file to folder matlab, and tar cvf matlab.tar matlab

However, I just test with _networkinstall=true, and everything works fine. I'm not sure if other activating method would work.

hottea commented on 2017-12-20 02:10

@daniel_shub Hi, it seems that the package don't install the license.dat when _networkinstall=true. It just create a soft link to /etc/matlab/licenses/, but /etc/matlab/licenses/ is not created, license.dat is not installed either. So after installation, one still need to activate matlab.

As for the ISO file, only license Administrator could download the ISO file. I just download it from school website (our school buy licenses). Or one could always down the ISO in some other way. As long as one has the proper license, I think it's OK to do that.

daniel_shub commented on 2017-12-19 19:17

@hottea the tarball is a pain. When I first packaged things, TMW was making getting the ISO file difficult, but you could download zip files of everything you needed from your TMW account. Then they changed the installer so that you could only download the files from the installer. Getting the files into a place that makepkg can find them is a moving target. I no longer have access to new versions of MATLAB and am no longer sure what the easiest or best thing to do it. If I had access to ISO files I would probably just use the ISO and add a checksum.

I used /opt/tmw/matlab based on Adobe Reader (https://aur.archlinux.org/packages/acroread/) which puts the package in /opt/Adobe/Reader9 and Google Earth (https://aur.archlinux.org/packages/google-earth/) which puts the package in /opt/google/earth/free/. I think the FHS requirement for subdirectories to be the LANANA names only came about recently, maybe it is time to just use /opt/matlab.

hottea commented on 2017-12-19 15:07

It seems that the matlab.tar contains all file in the matlab iso, I think it would be better if it one could create a matlab folder, and copy files in matlab iso to the matlab folder, and then create a tarball by tar cvf matlab.tar matlab/. Also why the installation dir is /opt/tmw/matlab? It's a little weird.

@t4mmi In package function, the MATLAB installer output is redirected to /dev/null, you might wanna change it and see the log. In fact, I think it MathWorks's mistake that matlab installer and some other scripts are without x permission. Just chmod +x -R matlab before create matlab.tar might fix it.

jkhsjdhjs commented on 2017-12-04 17:22

@t4mmi You need to place matlab.tar and matlab.fik (a file with your installation key inside) in the directory where you cloned this package. If you used pacaur it is ~/.cache/pacaur/matlab. Further instructions are in the head of the PKGBUILD.

t4mmi commented on 2017-12-04 16:35

was unable to build ...

[user@workstation matlab]$ makepkg -si

==> Making package: matlab 9.3.0.713579-2 (Mon Dec 4 17:31:29 CET 2017)

==> Checking runtime dependencies...

==> Checking buildtime dependencies...

==> Retrieving sources...

==> ERROR: Unknown download protocol: file Aborting...

jkhsjdhjs commented on 2017-12-04 16:32

@streckus: very nice, thank you! It would also be nice if the PKGBUILD would check the exit code of the matlab installer for failure because if the matlab installer fails you won't know, it will only show:

install: cannot stat '/home/MyName/.cache/pacaur/matlab/pkg/matlab/opt/tmw/matlab/license_agreement.txt': No such file or directory

The error, that @yiping_huang, @xcabal and I experienced. For me it failed because I entered a wrong installation key.

alleut commented on 2017-11-28 15:06

What are the steps to install Matlab using this PKGBUILD? Wiki tells about an ISO, but MathWorks lets download a ZIP, and the PKGBUILD uses a TAR.
Any example how to proeed?

otaj commented on 2017-11-27 17:04

Why is there added the weird number after version 9.3 (aka current version 9.3.0.713579)? As far as I know, it's not MathWorks' numbering (they use just 9.3) and when I tweaked the PKGBUILD manually from previous release before you bumped the version up to comply with our school's installation of MATLAB, I just put there 9.3 and now pacaur (pacman helper) wants me to update it every time, since 9.3.0.713579 is newer version than 9.3. I know, I can add it to IgnorePkg (and that's the current status), but it's sort of annoying.

Anyway, not to sound so negative, thanks for the PKGBUILD, it's awesome to have something to build it upon ;)

streckus commented on 2017-11-19 18:03

I modified the PKGBUILD to correctly link to gcc49 (for mex), link mex as /usr/bin/matlab-mex for avoiding conflicts with texlive etc. and include the fixes for Addon Manager and Help Browser from the Wiki mentioned in Turtizzles comment below. You can find my version here: https://pastebin.com/wyKwL728
(Also, I dropped the ncurses5-compat-libs dependency since its not needed anymore, see https://wiki.archlinux.org/index.php/matlab#Installing_from_the_MATLAB_installation_software )

All comments