请教关于并行环境安装问题!

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
zhangxw
帖子: 19
注册时间: 2008-01-08 19:03

请教关于并行环境安装问题!

#1

帖子 zhangxw » 2008-01-12 10:44

最近编译一个学习软件,源代码的编译需要并行环境,所以我只想安装单机的并行环境,利用新立得软件包安装了lam4-dev及其相关的库函数,但是在执行fdmpi之前需要lamboot,我运行lamboot后出现如下错误:
hangxw@(none):~$ lamboot

LAM 7.1.2/MPI 2 C++/ROMIO - Indiana University

-----------------------------------------------------------------------------
Could not resolve the hostname "localhost" that was in the host file.

Things to check:

- is "localhost" in /etc/hosts?
try "grep localhost /etc/hosts"
- is "localhost" resolvable by DNS (or some other naming service)?
try "ping localhost" or "dig localhost" or "nslookup localhost"

我该如何解决这个问题阿! 谢谢
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

#2

帖子 yaoms » 2008-01-12 11:05

贴出的你/etc/hosts和/etc/resolv.conf内容,看看
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
zhangxw
帖子: 19
注册时间: 2008-01-08 19:03

#3

帖子 zhangxw » 2008-01-12 12:12

我的/etc/hosts里面的内容只有:
# The following lines are desirable for IPv6 capable hosts
/etc/resolv.conf里面内容有:
search kingnet
nameserver 202.198.16.3

我利用新立得安装lam4-dev之后就没有该这些文件,我刚接触linux,有些还不明白,谢谢你了
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#4

帖子 BigSnake.NET » 2008-01-12 12:23

echo "127.0.0.1 localhost" | sudo tee -a /etc/hosts
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
zhangxw
帖子: 19
注册时间: 2008-01-08 19:03

#5

帖子 zhangxw » 2008-01-12 13:07

问题已经解决,非常开心,谢谢拉
回复