setting path?

I’m a little confused on how to add a directory to the path statement in openSuSE11.0. I installed openMPI, and it created all the executables in its own subdirectory, but I don’t want to make symbolic links to them, so I thought I’d just add its bin directory to my path. Is this syntax right?

PATH=$PATH:/my/path/openmpi/bin

I guess I need to put this in my bashrc and cshrc files in order to have openMPI available…

Thanks,
Patti

Hope this helps.:slight_smile:

MPI Tutorial

Thanks - the MPI’s are all different it seems. Do you know the syntax of the path setting statement in .bashrc and .tcshrc

Patti:O

You have the correct syntax for bash. I think (someone correct me if I’m wrong here) that you want:

setenv PATH=$PATH:/usr/local/ompi/bin

(as an example, obviously use the actual path) for shells based on the C shell.