Difference between revisions of "Matlab"

From Cncz
Jump to: navigation, search
(ubuntu 11.04 installatie note)
Line 34: Line 34:
 
** <tt>mkdir /usr/local/matlab</tt>
 
** <tt>mkdir /usr/local/matlab</tt>
 
** <tt>mkdir /usr/local/matlab/etc</tt>
 
** <tt>mkdir /usr/local/matlab/etc</tt>
** <tt>cp -p license.dat /usr/local/matlab/etc/license.dat</tt><br /> [nl]De (korte) <tt>license.dat</tt> ziet er ongeveer zo uit:[/nl] [en]The (short) <tt>license.dat</tt> looks like:[/en]
+
** <tt>cp -p license.dat /usr/local/matlab/etc/license.dat</tt><br /> [nl]De (korte) <tt>license.dat</tt> ziet er ongeveer zo uit:[/nl] [en]The <tt>license.dat</tt> looks like:[/en]
  
 
           SERVER matlab.science.ru.nl ...
 
           SERVER matlab.science.ru.nl ...
 
           USE_SERVER
 
           USE_SERVER
 
** <tt>[nl]Zet de lange vorm van de license.dat ook ergens neer. Die lange vorm ziet er ongeveer zo uit:[/nl][en]Put the long form of the license file somewhere else. The long form looks like:[/en]
 
 
          SERVER matlab.science.ru.nl ...
 
          INCREMENT MATLAB MLM .....  \
 
                VENDOR_STRING=... HOSTID=ID=... DUP_GROUP=UH \
 
                asset_info=... SN=....
 
          INCREMENT SIMULINK MLM ..... \
 
                VENDOR_STRING=... HOSTID=ID=... DUP_GROUP=UH \
 
                asset_info=... SN=....
 
          INCREMENT ... MLM .....
 
                VENDOR_STRING=... HOSTID=ID=... DUP_GROUP=UH \
 
                asset_info=... SN=....
 
          INCREMENT ... MLM .....
 
                .....
 
  
 
** <tt>cd /usr/local/matlab</tt>
 
** <tt>cd /usr/local/matlab</tt>
 
** [nl]Voer the DVD in en[/nl][en]Insert the DVD and [/en]<br /><tt>mount /mnt/cdrom</tt> [nl]als dat niet automatisch gebeurt[/nl][en]if that doesn't happen automatically{/en].
 
** [nl]Voer the DVD in en[/nl][en]Insert the DVD and [/en]<br /><tt>mount /mnt/cdrom</tt> [nl]als dat niet automatisch gebeurt[/nl][en]if that doesn't happen automatically{/en].
 
** <tt>/mnt/cdrom/install -t</tt><br/> [nl]Accepteer de licentie, geef de "File Installation Key" en beantwoord alle vragen, bij alles kun je de standaard keuze maken. Na de installatie, bij het eerste keer opstarten van Matlab, wordt gevraagd om de software te activeren. Kies dan "*without* using the internet" en wijs de *lange* license.dat aan die je van C&CZ ontvangen hebt.[/nl][en]Accept the license agreement, enter the "File Installation Key" and answer all questions, choose the default options. After the installation, when starting Matlab for the first time, you are asked to activate the software. Choose "*without* using the internet" and point to the *long* license.dat that you received from C&amp;CZ.[/en]
 
** <tt>/mnt/cdrom/install -t</tt><br/> [nl]Accepteer de licentie, geef de "File Installation Key" en beantwoord alle vragen, bij alles kun je de standaard keuze maken. Na de installatie, bij het eerste keer opstarten van Matlab, wordt gevraagd om de software te activeren. Kies dan "*without* using the internet" en wijs de *lange* license.dat aan die je van C&CZ ontvangen hebt.[/nl][en]Accept the license agreement, enter the "File Installation Key" and answer all questions, choose the default options. After the installation, when starting Matlab for the first time, you are asked to activate the software. Choose "*without* using the internet" and point to the *long* license.dat that you received from C&amp;CZ.[/en]
** <tt>umount /mnt/cdrom</tt>
+
** <tt>umount /mnt/cdrom</tt>
** <tt>eject</tt>
+
** <tt>eject</tt>
  
 
----
 
----
  
[nl]Bekende problemen:[/nl][en]Known problems:[/en]
+
==[nl]Bekende problemen:[/nl][en]Known problems[/en]==
 +
===Ubuntu 11.04 [nl]installatie op een 32 bits pc[/nl][en]installation on a 32 bits pc[/en]===
 +
[en]When running the install script, you'll probably get an error like:[/en]
 +
[nl]Bij het draaien van het install script, stopt mogelijk de installatie meteen met een dergelijke melding:[/nl]
 +
/lib/libc.so.6 missing
  
* [Toolkit problemen na upgrade naar nieuwe versie][Toolkit problems after upgrading to new version]:
+
[nl]Dit kan worden opgelost door het maken van een symbolic link:[/nl]
 +
[en]This can be fixed by creating a symbolic link:[/en]
 +
$ sudo ln -s /lib/386-linux-gnu/libc.so.6 /lib
  
<nl>
+
===[Toolkit problemen na upgrade naar nieuwe versie][Toolkit problems after upgrading to new version]===
Een toolkit lijkt te ontbreken, maar de oorzaak is een Matlab zoekpad dat niet bijgewerkt is voor de nieuwe versie.
+
<nl>Een toolkit lijkt te ontbreken, maar de oorzaak is een Matlab zoekpad dat niet bijgewerkt is voor de nieuwe versie.
 
Zie [http://www.mathworks.com/help/techdoc/matlab_env/br7ppws-1.html#br7poxu-10 Mathworks help1] en
 
Zie [http://www.mathworks.com/help/techdoc/matlab_env/br7ppws-1.html#br7poxu-10 Mathworks help1] en
[http://www.mathworks.com/help/techdoc/matlab_env/br7ppws-1.html#br8p4gj-1 Mathworks help2]. Een snelle fix, in Matlab is:
+
[http://www.mathworks.com/help/techdoc/matlab_env/br7ppws-1.html#br8p4gj-1 Mathworks help2]. Een snelle fix, in Matlab is:</nl>
</nl>
+
[en]A toolkit seems to be missing, the reason might be a Matlab searchpath that has not been adjusted for the new version. See [http://www.mathworks.com/help/techdoc/matlab_env/br7ppws-1.html#br7poxu-10 Mathworks help1] and [http://www.mathworks.com/help/techdoc/matlab_env/br7ppws-1.html#br8p4gj-1 Mathworks help2]. A fast fix, in Matlab is:[/en]
<en>
+
restoredefaultpath; matlabrc
A toolkit seems tyo be missing, the reason might be a Matlab searchpath that has not been adjusted for the new version.
 
See [http://www.mathworks.com/help/techdoc/matlab_env/br7ppws-1.html#br7poxu-10 Mathworks help1] and
 
[http://www.mathworks.com/help/techdoc/matlab_env/br7ppws-1.html#br8p4gj-1 Mathworks help2]. A fast fix, in Matlab is:
 
</en>
 
** <tt>restoredefaultpath; matlabrc</tt>
 
  
* Linux [installatie][installation]:
+
===Redhat / Fedora Linux [installatie][installation]===
**  [Als je de foutmelding krijgt:][If you get the error message:]
+
[Als je de foutmelding krijgt:][If you get the error message:]
 
   
 
   
        /media/MATHWORKS_R2008A/update/bin/glnx86/xsetup: error while loading shared libraries: libXp.so.6: cannot open shared object file: No such file or directory
+
/media/MATHWORKS_R2008A/update/bin/glnx86/xsetup:
 +
error while loading shared libraries:
 +
libXp.so.6: cannot open shared object file: No such file or directory
  
 
[installeer dan de ontbrekende software via iets als:][install the missing software through something like:]
 
[installeer dan de ontbrekende software via iets als:][install the missing software through something like:]
  
        root# yum install libXp.so.6
+
root# yum install libXp.so.6
  
* Firewalls:
+
** [nl]Als men achter een firewall zit, moeten 2 poorten naar de server opengezet worden: 1 waar de server op luistert en 1 return portnumber. C&amp;CZ kan die portnumbers vertellen, ze kunnen wijzigen bij upgrades.[/nl] [en]When one is separated from the license server by a firewall, one needs to open 2 ports: one on which the license server is listening and 1 return portnumber. Contact C&amp;CZ for details, the portnumbers might change due to an upgrade of Matlab.[/en]
+
===Firewalls===
 +
* [nl]Als men achter een firewall zit, moeten 2 poorten naar de server opengezet worden: 1 waar de server op luistert en 1 return portnumber. C&amp;CZ kan die portnumbers vertellen, ze kunnen wijzigen bij upgrades.[/nl] [en]When one is separated from the license server by a firewall, one needs to open 2 ports: one on which the license server is listening and 1 return portnumber. Contact C&amp;CZ for details, the portnumbers might change due to an upgrade of Matlab.[/en]
  
 
[[Category:Software]]
 
[[Category:Software]]

Revision as of 13:14, 1 July 2011

Matlab, a `matrix laboratory' for interactive scientific calculations of The Mathworks Inc. is an integrated software package, it combines numeric calculations, data visualization and a programming language.

A number of departments in the university have bought shares in the network license that C&CZ has arranged for the use of Matlab. When one has bought a share, one can get the software and installation/licensing keys of Matlab for either Linux, Mac or for MS-Windows (XP, Vista, 7), but also older versions, from C&CZ system administration.

This network license with a lot of toolboxes can only be used by computers on the Internet. For standalone use, one can try to use a free alternative like Scilab or Octave. The license purchase costs for on average 1 concurrent Matlab-user are EUR 241,- excl. VAT. Maintenance costs depend on the number of users, but are roughly EUR 50,- per year.

When a department regularly uses Matlab without yet having bought a share in the network license, one should contact Astrid Linssen. The use of Matlab is logged on the license server. At the end of each year C&CZ calculates the average peak-use per week of each department, this should correspond to the number of Matlab-licenses bought. During the highest peak-use a department thus uses more licenses than bought, but this is no problem due to the shared network license: not all departments peak at the same time.

Matlab is available on the MS-Windows and Linux machines managed by C&CZ.


  • Windows: installing Matlab roughly means:
    • Put the license.dat, that C&CZ sent by mail, somewhere on your hard disk. That license.dat contains 2 lines that look like:
        SERVER matlab.science.ru.nl .... .....
        USE_SERVER

On a Windows pc, make sure you save this file as a txt file not as rtf or word !

    • Insert the software DVD
    • Choose "Install manually without using the Internet".
    • Check "I have the File Installation Key"
    • For MS-Windows: Enter the File Installation Key' that C&CZ sent by mail. It looks like:
        ?????-?????-?????-?????-?????-?????-?????-?????-?????-?????
    • Choose "Typical Installation"
    • Point to the directory where you stored the license.dat.
  • Linux installation
    • Contact C&CZ for the current license files (short and long) and File Installation Key.
    • Become (if you want) root
    • mkdir /usr/local/matlab
    • mkdir /usr/local/matlab/etc
    • cp -p license.dat /usr/local/matlab/etc/license.dat
      The license.dat looks like:
          SERVER matlab.science.ru.nl ...
          USE_SERVER
    • cd /usr/local/matlab
    • Insert the DVD and
      mount /mnt/cdrom [en]if that doesn't happen automatically{/en].
    • /mnt/cdrom/install -t
      Accept the license agreement, enter the "File Installation Key" and answer all questions, choose the default options. After the installation, when starting Matlab for the first time, you are asked to activate the software. Choose "*without* using the internet" and point to the *long* license.dat that you received from C&CZ.
** umount /mnt/cdrom
** eject

Known problems

Ubuntu 11.04 installation on a 32 bits pc

When running the install script, you'll probably get an error like:

/lib/libc.so.6 missing

This can be fixed by creating a symbolic link:

$ sudo ln -s /lib/386-linux-gnu/libc.so.6 /lib

Toolkit problems after upgrading to new version

A toolkit seems to be missing, the reason might be a Matlab searchpath that has not been adjusted for the new version. See Mathworks help1 and Mathworks help2. A fast fix, in Matlab is:

restoredefaultpath; matlabrc

Redhat / Fedora Linux installation

If you get the error message:

/media/MATHWORKS_R2008A/update/bin/glnx86/xsetup:
error while loading shared libraries:
libXp.so.6: cannot open shared object file: No such file or directory

install the missing software through something like:

root# yum install libXp.so.6


Firewalls

  • When one is separated from the license server by a firewall, one needs to open 2 ports: one on which the license server is listening and 1 return portnumber. Contact C&CZ for details, the portnumbers might change due to an upgrade of Matlab.