移植环境(
红色粗字体字为修改后内容,
蓝色粗体字为特别注意内容)
1,开发板:韦东山JZ2440。
2,linux 版本:linux-3.4.2
1,开发板:韦东山JZ2440。
2,linux 版本:linux-3.4.2
3,参考文献:http://blog.chinaunix.net/uid-20680966-id-3221138.html
在开发板上总是ping不通localhost
[root@UnixHost lib]# ping localhost ping: bad address 'localhost'
按照参考文献的方法,so库也没少,/etc/hosts文件如下
[root@UnixHost lib]# cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 book-desktop # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback
最后,猜想是不是如参考文献所说的,少了/etc/nsswitch.conf文件?于是,从主机上拷贝该文件到开发板,再次尝试,成功ping通。