简体   繁体   English

无法安装will_paginate gem

[英]Unable to install will_paginate gem

I tried installing will_paginate gem in rails but it somehow not working in mine. 我尝试在rails中安装will_paginate gem,但是它在我的系统中不起作用。 I am unable to start my rails server. 我无法启动Rails服务器。

Bundler::GemNotFound: Your bundle is locked to will_paginate (3.1.5), but that version could not be found in any of the sources listed in your Gemfile. Bundler :: GemNotFound:您的捆绑包已锁定到will_paginate(3.1.5),但是在Gemfile中列出的任何源文件中都找不到该版本。 If you haven't changed sources, that means the author of will_paginate (3.1.5) has removed it. 如果您尚未更改来源,则意味着will_paginate(3.1.5)的作者已将其删除。 You'll need to update your bundle to a different version of will_paginate (3.1.5) that hasn't been removed in order to install. 您需要将软件包更新为尚未删除的will_paginate(3.1.5)的其他版本才能进行安装。

update your gem will_paginate with bundle update 使用bundle update更新您的gem will_paginate

bundle update will_paginate

This replaces the version locked in your Gemfile.lock with the latest version Gemfile.lock锁定的版本替换为最新版本

more detail on bundle_update_documentation 有关bundle_update_documentation的更多详细信息

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

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