MPICH2 gethostbyname failed

后端 未结 5 699
余生分开走
余生分开走 2021-01-31 09:57

I don\'t understand the error message. I am trying to do is to run a MPICH2 application after I installed mpich2 version 1.4 or 1.5 to /opt/mpich2 (both version fai

5条回答
  •  失恋的感觉
    2021-01-31 10:22

    Solution for macOS

    I stumbled upon this issue on macOS 10.12.1.

    The solution is to add 127.0.0.1 computername.local to /etc/hosts. Your file will look more or less like this:

    ##
    # Host Database
    #
    # localhost is used to configure the loopback interface
    # when the system is booting.  Do not change this entry.
    ##
    127.0.0.1   localhost
    127.0.0.1   computername.local
    255.255.255.255 broadcasthost
    ::1             localhost 
    

    You can change/check your computer's name if you go to System Preferences > Sharing > Computer Name.

提交回复
热议问题