osx - how to set up the environment variables on mac os x -
i trying download myrna tool on mac os x. 1 of procedures on installation, "set myrna_home environment variable point extracted directory (containing myrna_emr)"
so tried way
echo "export myrna_home=/.../....directory/.." >> ~/.bashrc
but seems not work.(when type echo myrna_home in command line, there nothing or when type printenv myrna_home not come out.)
anyone knows how set env vars??
thank you,
there several ways that. 1 adding variable ~/.bash_profile
file.
example:
myrna_home=/whatever/you/want/ export myrna_home
then can try if works logging in again , trying on terminal:
$ echo $myrna_home
it should print whatever set mryna_home
on ~/.bash_profile
.
if want environment variable available users, can change /etc/bashrc
file. prefer changing 1 users' environment.
Comments
Post a Comment