简体   繁体   English

Ruby on Rails 是 mongodb - mongoid

[英]Ruby on Rails is mongodb - mongoid

I am not able to install the 'mongoid' gem in my project.我无法在我的项目中安装“mongoid”gem。 I'm using rails 6.0.0 and it's always giving me this error我正在使用 rails 6.0.0,它总是给我这个错误

Installing mongo 2.14.0 (was 2.14.0.rc1) Errno:: EACCES: Permission denied @ rb_file_s_symlink - (spec / support /../../. mod / drivers-evergreen-tools /.evergreen / ocsp, C: /Ruby27-x64/lib/ruby/gems/2.7.0/gems/mongo-2.14.0/spec/support/ocsp) An error occurred while installing mongo (2.14.0), and Bundler cannot continue.安装 mongo 2.14.0 (was 2.14.0.rc1) Errno::EACCES: Permission denied @ rb_file_s_symlink - (spec / support /../../. mod / drivers-evergreen-tools /.evergreen / ocsp, C: /Ruby27-x64/lib/ruby/gems/2.7.0/gems/mongo-2.14.0/spec/support/ocsp) 安装 mongo (2.14.0) 时出错,Bundler 无法继续。 Make sure that `gem install mongo -v '2.14.0' --source 'https: // rubygems.org /' ' succeeds before bundling.确保 `gem install mongo -v '2.14.0' --source 'https://rubygems.org /' ' 在捆绑之前成功。

In Gemfile: mongoid was resolved to 7.0.11, which depends on Mongo在 Gemfile 中:mongoid 被解析为 7.0.11,它依赖于 Mongo

I have already changed versions of the mongoid gem but there is always a need我已经更改了 mongoid gem 的版本,但总是需要

Run

 gem install mongo -v '2.14.0' --source 'https://rubygems.org/'

with ADMIN permissions具有管理员权限

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

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