简体   繁体   English

Gem 安装导轨无法完成

[英]Gem install rails can't finish

Had a really rough day with Ruby so far...到目前为止,Ruby 度过了非常艰难的一天......

Using RVM I'm trying to just install rails into a new gemset but running gem install rails hangs toward the end and never returns control back to the user.使用 RVM 我试图只是将 rails 安装到一个新的 gemset 中,但是运行 gem install rails 会一直挂在最后,并且永远不会将控制权交还给用户。

It gets to this point and dies:它到达这一点并死亡:

Installing RDoc documentation for activesupport-3.1.0...
Installing RDoc documentation for builder-3.0.0...
unable to convert "\xF1" from ASCII-8BIT to UTF-8 for README, skipping
unable to convert "\xF1" from ASCII-8BIT to UTF-8 for README.rdoc, skipping

After that it just hangs forever and the only way to get out is to ctrl-C and interrupt the process.之后它就会永远挂起,退出的唯一方法是 ctrl-C 并中断该过程。 I've tried gem install rails and gem install rails -v 3.1.0.我试过 gem install rails 和 gem install rails -v 3.1.0。 Both do the same thing.两者都做同样的事情。

i had the same problem some minutes ago, the install stuck at the same point, then got killed but it seemed to be installed (doing a gem search rails it found the installed gem).几分钟前我遇到了同样的问题,安装卡在同一点,然后被杀死但它似乎已安装(执行 gem search rails 找到已安装的 gem)。 So i tried with a所以我试着用

gem update
gem uninstall rails
gem install rails

and it worked (at least it finished without errors.. it's my first test with RoR)它起作用了(至少它没有错误地完成了......这是我对 RoR 的第一次测试)

With "gem update" I found some errors in "make "DESTDIR=" clean (not found)" and I did not figure out the reason for that.通过“gem update”,我在“make "DESTDIR=" clean (not found)”中发现了一些错误,我没有弄清楚原因。 Using "gem uninstall rails", it gives me that rails is not alreadty installed.使用“gem uninstall rails”,它告诉我 rails 尚未安装。 And I can't install rails typing "gem install rails".而且我无法安装导轨,键入“gem install rails”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM