[英]Installing gem error (EADDRNOTAVAIL)
I am trying to install Redmine to a Windows Server 2012, following " How to MANUALLY install Redmine 3.x on Windows Server 2008 R2 ". 我正在尝试“ 如何在Windows Server 2008 R2上手动安装Redmine 3.x ”之后,将Redmine安装到Windows Server 2012。
After installing http://rubyinstaller.org/downloads/ the next step is to install Bundler but I got the following error: 安装http://rubyinstaller.org/downloads/之后 ,下一步是安装Bundler,但出现以下错误:
C:\inetpub\wwwroot\redmine>ruby -v
ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32]
C:\inetpub\wwwroot\redmine>gem list
*** LOCAL GEMS ***
bigdecimal (1.2.6)
io-console (0.4.3)
json (1.8.1)
minitest (5.4.3)
power_assert (0.2.2)
psych (2.0.8)
rake (10.4.2)
rdoc (4.2.0)
test-unit (3.0.8)
C:\inetpub\wwwroot\redmine>gem install bundler
ERROR: While executing gem ... (Errno::EADDRNOTAVAIL)
The requested address is not valid in its context. - connect(2) for "0.0.0.0
" port 53
C:\inetpub\wwwroot\redmine>
Any help would be appreciated. 任何帮助,将不胜感激。
Check your DNS is right. 检查您的DNS是否正确。 If your DNS not set, gem will display below error:
如果未设置DNS,gem将显示以下错误:
ERROR: While executing gem … (Errno::EADDRNOTAVAIL) The requested address is not valid in its context. 错误:执行gem…(Errno :: EADDRNOTAVAIL)时,所请求的地址在其上下文中无效。 – connect(2) for “0.0.0.0″ port 53
– connect(2)用于“ 0.0.0.0”端口53
After poking around with ruby I noticed that uninstalling and reinstalling ruby does not remove some configs. 在浏览ruby之后,我注意到卸载并重新安装ruby并不会删除某些配置。 I found a command:
我找到一个命令:
gem env
This gave me the location of the configuration files. 这给了我配置文件的位置。 After completely deleting the directory .gem it started to work!
完全删除目录.gem后,它开始工作! Looks like something messed up my gem config and the defaults are right.
看起来有些东西弄乱了我的gem配置,默认设置是正确的。
Good luck! 祝好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.