Contents

Building Engine Applications on Mac and Linux Systems

Requirements

To create an engine application:

  • Install a MATLAB®-supported compiler.

  • Set the run-time library Path environment variable.

Setting Run-Time Library Path

If you have multiple versions of MATLAB installed on your system, the version you use to build your engine applications must be the first listed in your system Path environment variable. Otherwise, MATLAB displays Can't start MATLAB engine.

The shell command you use and the value you provide to set the run-time library path depend on your shell and system architecture. The following table lists the name of the environment variable, envvar, and the values, pathspec, to assign to it.

Operating Systemenvvarpathspec

64-bit Apple Mac

DYLD_LIBRARY_PATH

matlabroot/bin/maci64: matlabroot/sys/os/maci64

64-bit Linux®

LD_LIBRARY_PATH

matlabroot/bin/glnxa64: matlabroot/sys/os/glnxa64

C Shell

Set the library path using the command:

setenv envvar pathspec

Bourne Shell

Set the library path using the command:

envvar = pathspec:envvar export envvar

Related Examples

External Web Sites

Was this topic helpful?