简体   繁体   English

在Mac Mountain Lion上安装Gems的问题

[英]Issue with installing Gems on Mac Mountain Lion

I am new to mac environment and having a tough time installing an existing application locally. 我是Mac环境的新手,在本地安装现有应用程序时遇到困难。

I have setup rvm and we need to use ree-1.8.7 我已经安装了rvm,我们需要使用ree-1.8.7

I have tried both bundle install and gem install as well. 我也尝试了捆绑安装和gem安装。

I am getting following errors: 我收到以下错误:

Resolving dependencies...........
There was a Gem::Requirement::BadRequirementError while loading factory_girl_rails-1.7.0.gemspec: 
Illformed requirement ["#<YAML::Syck::DefaultKey:0x10896c1a8> 3.0.7"] from
  /Users/aditya/.rvm/gems/ree-1.8.7-2012.02/specifications/factory_girl_rails-1.7.0.gemspec:32

I have already gone through several suggestions on SO and other websites. 我已经在SO和其他网站上提出了一些建议。 Please help. 请帮忙。

I hate to be "that guy" but I would strongly recommend not beginning development of a new project with REE as it is EOL: 我不想成为“那个家伙”,但是我强烈建议不要开始使用REE来开发新项目,因为它是EOL:

http://blog.phusion.nl/2012/02/21/ruby-enterprise-edition-1-8-7-2012-02-released-end-of-life-imminent/ http://blog.phusion.nl/2012/02/21/ruby-enterprise-edition-1-8-7-2012-02-released-end-of-life-imminent/

How I fixed this issue was, I just moved all the files creating these errors into a new sub directory. 我解决此问题的方法是,将所有导致这些错误的文件移到了新的子目录中。 Then running bundle install went smoothly. 然后运行捆绑安装顺利进行。

In my case the file was: 在我的情况下,文件为:

/Users/aditya/.rvm/gems/ree-1.8.7-2012.02/specifications/factory_girl_rails-1.7.0.gemspec

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

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