【问题标题】:How to set openmpi to the right path?如何将openmpi设置为正确的路径?
【发布时间】:2021-08-11 07:53:32
【问题描述】:

我已经在 Ubuntu 上安装并编译了 openmpi,然后我添加了 .bashrc 的路径,但从终端获取的路径不正确:

toufik@toufik-PORTEGE-R30-A:~$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:'opt/openmpi/lib'
toufik@toufik-PORTEGE-R30-A:~$ export PATH=$PATH:'/opt/openmpi/bin' 
toufik@toufik-PORTEGE-R30-A:~$ which mpirun
/usr/bin/mpirun

【问题讨论】:

    标签: python mpi openmpi


    【解决方案1】:

    尝试将您的目录添加到路径的开头:

    export LD_LIBRARY_PATH='opt/openmpi/lib':$LD_LIBRARY_PATH
    export PATH='/opt/openmpi/bin':$PATH
    

    查看此处了解更多信息: https://unix.stackexchange.com/questions/26047/how-to-correctly-add-a-path-to-path

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多