You are not logged in.

#1 2014-10-17 12:24:45

eastpiger
Member
Registered: 2014-09-09
Posts: 6

Tring to install matlab & mathematica FAILD

I'm a new university students and I'm going to use matlab and mathematica because of the requirement from professor .

I can find this two parkages in AUR but I con't install it.

Here is what output when I install matlab.

==> Downloading matlab PKGBUILD from AUR...
x .AURINFO
x PKGBUILD
Comment by daniel_shub  (2014-07-19 18:27)
@And1G My understanding of the FSH is /usr/local is for files not managed by a package manager so it is a reasonable default installation location, but wrong for a packaged install. I am also pretty sure /usr/matlab is not consistent with the FSH and you should instead install the files to standard directories like /usr/bin, /usr/lib, /usr/share, etc. but doing this with MATLAB would be a nightmare. Using /opt/matlab, or probably better /opt/tmw/matlab, is consistent with the FSH.

I create a link from the standard license location to /usr/local/matlab since the license file is not managed by the package manager. Some license type expire and reinstalling an 4+ GB package because your license expired seems insane. Further, it is fairly typical to share /opt/matlab, via nfs or some other network share, to multiple machines that each require a different license files. This probably violates good packaging standards and probably should be in /etc/matlab. At some point I should probably move all the system configuration files like startup.m and matlabrc.m into /etc /matlab.

Comment by And1G  (2014-07-20 08:17)
Thanks, your argumentation about the folders with FHS makes perfektly sense. I did not know about the intention of /opt/ and thought it was something like /usr/local/...
About sharing /opt/matlab, doesn't each license have it's own file installation key? I am not very familiar with Mathworks licensing scheme since I only use a student version.

Comment by daniel_shub  (2014-10-08 09:06)
I have just uploaded MATLAB r2014b.

Comment by Kritias  (2014-10-11 09:16)
I'm trying to install r2014b but I'm getting this error:

== Starting prepare()...
[matlab]                          Generating desktop file... ok
sed: -e expression #1, char 91: unterminated `s' command
== ERROR: A failure occurred in prepare().

I have the .tar version so I untar-ed it and generated and iso.
Any ideas?

Comment by daniel_shub  (2014-10-12 15:39)
@Kritias I don't get that error, but the sed statements may not be particularly robust. I think the sed statement may break if the pkgdir or srcdir path has a comma in it of it there is a comma in the file installation key (fik) file. Some of the sed statements are long and maybe your editor inserted an automatic line break. If you look at the installer_input.txt file in the src directory and figure out which sed statement is failing that might help to figure out what is going wrong. I could (and should) of course make the PKGBUILD more verbose and tell you what is happening.

matlab 08.04.00-1  (Thu May 29 22:55:37 CST 2014)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> matlab dependencies:
 - libxt (already installed)
 - libxpm (already installed)
 - libxmu (already installed)
 - libxp (already installed)
 - libxtst (already installed)
 - libxrender (already installed)
 - libxxf86vm (already installed)
 - libxrandr (already installed)
 - gendesk (already installed)


==> Continue building matlab ? [Y/n]
==> --------------------------------
==> 
==> Building and installing package
Building a single release package (matlab).
==> Making package: matlab 08.04.00-1 (Fri Oct 17 20:19:12 CST 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> ERROR: Unknown download protocol: file
    Aborting...
==> ERROR: Makepkg was unable to build matlab.
==> Restart building matlab ? [y/N]
==> -------------------------------
==> 

And it is for mathematica

==> Downloading mathematica PKGBUILD from AUR...
x .AURINFO
x PKGBUILD
x mathematica.install
Comment by kjslag  (2014-07-11 18:40)
@JKAbrams
I don't have ttf-ms-win8.

Comment by frederik  (2014-09-18 22:50)
There are some files in this package that are world writeable (xx7). This is a security risk since anybody on this computer may execute commands as another user. You should add  

chmod o-w -R ${pkgdir}/*

at the end before "Done" to avoid this.

Thanks

Comment by kjslag  (2014-09-18 23:49)
Oops, sorry about that. I added frederik's suggestion.

Comment by Land_oR  (2014-10-05 18:39)
I get following error:
/tmp/pacaurtmp-roland/mathematica/src/Mathematica_10.0.1_LINUX.sh: line 265: exec: -t: invalid option

any suggestions?

Comment by kjslag  (2014-10-05 19:44)
Does /bin/sh point to bash for you?

From looking at the script, it looks like the script checks to see if you're using a terminal by running 'tty -s' and checking for an exit success. In your case, 'tty -s' seems to fail, which seems odd. What do you get when you run 'tty || echo fail'? I get /dev/pts/4.

mathematica 10.0.1-2  (Fri Mar  4 05:27:47 CST 2011)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> mathematica dependencies:
 - ttf-bitstream-vera (package found)


==> Edit mathematica.install ? [Y/n] ("A" to abort)
==> -----------------------------------------------
==> n

==> Continue building mathematica ? [Y/n]
==> -------------------------------------
==> 
==> Building and installing package
==> Install or build missing dependencies for mathematica:
resolving dependencies...
looking for inter-conflicts...

Packages (1): ttf-bitstream-vera-1.10-10

Total Download Size:    0.21 MiB
Total Installed Size:   0.58 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages ...
 ttf-bitstream-vera-1.10-10-any                                                                        211.8 KiB   198K/s 00:01 [##############################################################################] 100%
(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%
(1/1) checking available disk space                                                                                             [##############################################################################] 100%
(1/1) installing ttf-bitstream-vera                                                                                             [##############################################################################] 100%
Updating font cache... done.
==> Making package: mathematica 10.0.1-2 (Fri Oct 17 20:22:43 CST 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> ERROR: Unknown download protocol: file
    Aborting...
==> ERROR: Makepkg was unable to build mathematica.
==> Restart building mathematica ? [y/N]
==> ------------------------------------
==> 

Could someone help me?

Thank you very mach and I feel sorry for my poor English

Offline

#2 2014-10-17 14:23:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Tring to install matlab & mathematica FAILD

Did you read the PKGBUILDs?

Offline

#3 2014-10-30 13:38:39

daniel_shub
Member
Registered: 2012-06-21
Posts: 100

Re: Tring to install matlab & mathematica FAILD

It looks like you are getting the same errors in both packages. The error is that they cannot find the software to install. Neither Mathematica nor Matlab are free and you need to provide the software so that you can create a package and then install the package.

Offline

Board footer

Powered by FluxBB