问题描述:
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
本文介绍了一个关于使用代理网络环境下安装Rails时遇到的SocketError问题及其解决方案。问题表现为执行gem命令时出现getaddrinfo:noaddressassociatedwithhostname错误。解决办法是设置http_proxy环境变量并重新执行gem install命令。
问题描述:
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
转载于:https://www.cnblogs.com/omygod/archive/2006/12/23/601294.html
4534
3万+

被折叠的 条评论
为什么被折叠?