ERROR: While executing gem ... (SocketError)getaddrinfo: no address associated with hostname.

问题描述:
ERROR:  While executing gem ... (SocketError)getaddrinfo: no address associated with hostname.

问题出在我这边的网络慢,并且是使用得代理上网

解决办法:
set http_proxy=http://192.168.0.1:80

gem install rails --include-dependencies

你可能感兴趣的:(hostname)