Running standalone applications on Linux
Important:
If you have more than one version of Maya installed, only set these variables in the terminal window where you will be running your application. Setting them in your shell confuguration file can result in a conflict with other versions of Maya that are installed on your system.
To run a standalone application on Linux from a terminal, set the following environment variables:
export MAYA_LOCATION=/usr/autodesk/<maya_version>/
export LD_LIBRARY_PATH=$MAYA_LOCATION/lib:$LD_LIBRARY_PATH