Results 1 to 4 of 4

Thread: setting path?

  1. #1
    Join Date
    Jun 2008
    Location
    Prescott, AZ
    Posts
    1,175

    Question 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

  2. #2
    runrickus NNTP User

    Default Re: setting path?

    Hope this helps.


    MPI Tutorial

  3. #3
    Join Date
    Jun 2008
    Location
    Prescott, AZ
    Posts
    1,175

    Default Re: setting path?

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

    Patti

  4. #4

    Default Re: setting path?

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •