# TOMLAB  
# REGISTER (TOMLAB)
# LOGIN  
# myTOMLAB
TOMLAB LOGO

« Previous « Start » Next »

5  Setting up environment variables

TOMLAB requires the directory tomlab/shared to be included in the environment variable PATH (for Windows) or in the library search path (all other operating systems).

5.1  Shared libraries path

The library search path environment variable name differs between different systems. On Linux and Sun Solaris it is called LD_LIBRARY_PATH, while on Mac OS X it is DYLD_LIBRARY_PATH. On Windows, it is the PATH variable.

The way environment variables are set varies depending on operating systems and shells.

5.1.1  Windows

To set the PATH environment variable permanently on Windows, do: Control Panel → System → Advanced → Environment Variables. Assuming TOMLAB was installed in C:\tomlab, append (or prepend) C:\tomlab\shared separated to the other entries with a semi-colon (;) to the PATH environment variable.

One can also set the PATH environment variable temporarily in a running command shell. This is done by doing
  C:\> set PATH=%PATH%;C:\tomlab\shared
This change will only be applied in that command shell, and will therefore be discarded when the command shell is terminated.

5.1.2  Unix-like systems

Assuming TOMLAB was extracted to /usr/local, then the tomlab/shared directory is /usr/local/tomlab/shared.

For CSH-like shells do:
   $ setenv LD_LIBRARY_PATH /usr/local/tomlab/shared:$LD_LIBRARY_PATH
For Bourne-like shells do:
   $ export LD_LIBRARY_PATH=/usr/local/tomlab/shared:$LD_LIBRARY_PATH
MATLAB must be started from a shell where these variable changes were made. Otherwise one will get error messages about missing libraries when using some solvers. It could be a good idea to put the command in a logon-script, such as /etc/profile or ~/.profile for Bourne-like shells. .bashrc might also be an option.

« Previous « Start » Next »