Ruby on Windows7 - could not find gem

前端 未结 3 987
情书的邮戳
情书的邮戳 2021-01-21 09:44

I\'m setting up a ruby Apache Buildr on a fresh Windows 7 machine. I\'ve installed Ruby, the DevKit and installed buildr via

    gem install buildr
相关标签:
3条回答
  • 2021-01-21 10:37

    Had the same problem. I have Windows 7 x64 so installed again with gem install buildr --platform mswin64 and it worked.

    0 讨论(0)
  • 2021-01-21 10:39

    Installed Ruby 1.8.7 instead and it works now.

    0 讨论(0)
  • 2021-01-21 10:47

    I had a similar problem in the past.

    My problem was the kind of installation. I installed ruby as admin (target was c:\program files). Everything worked fine - until I installed a gem as normal user (not admin).

    What happened on windows side? I have no authorization for c:\program files, the gem was installed in another directory (No, there was no error, Windows just decided to use another directory. This bug/feature is called 'Virtual Store').

    In the end Ruby had problems to find the files.

    My solution: Install ruby as normal user outside c:\program files.

    Maybe it is enough, when you install your gems as admin (but attention: if you have once files in your Virtual store, they are read always first.).

    0 讨论(0)
提交回复
热议问题