Tuesday, 10 September 2013

How to set environment variable in Ubuntu

How to set environment variable in Ubuntu

I am new to ubuntu. I am using matlab in ubuntu. I used 'mcc' command in
matlab(ubuntu) to create executable files.
Now to run those executables I need to set the 'MCR' directory path to the
environment variable. I used 'setenv' but, it says 'setenv is not found.
the following is what I did-
setenv PATH/<mcr root path>/v7.17: "$PATH"
And I get the following output-
No command 'setenv' found, did you mean command 'neten'
from package 'netenv'
setenv: commmand not found
Can you please help me telling how do I set the environment variable in
ubuntu to run my executable files.
Regards,

No comments:

Post a Comment