简体   繁体   English

我尝试安装RubyGems,现在出现一些错误

[英]I tried installing RubyGems, and now I get some errors

First time asking a question, and i'm also a novice at ruby, so please be gentle. 第一次问一个问题,我也是ruby的新手,所以请保持温柔。 I'm running Lubuntu 18.04 LTS, and I recently tried to install RubyGems, as to aid my development in Ruby. 我正在运行Lubuntu 18.04 LTS,最近我尝试安装RubyGems,以帮助我在Ruby中进行开发。 Problem is, I get some strange errors when I installed it, and the same error when I try to run any script in my terminal. 问题是,安装时出现一些奇怪的错误,而尝试在终端中运行任何脚本时也出现相同的错误。 I am pretty stuck on what to do, so... 我非常执着于做事,所以...

Traceback (most recent call last):
    4: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
    3: from <internal:gem_prelude>:2:in `require'
    2: from /usr/local/lib/site_ruby/2.5.0/rubygems.rb:1231:in `<top (required)>'
    1: from /usr/local/lib/site_ruby/2.5.0/rubygems.rb:1231:in `require'
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:43:in `<top (required)>': uninitialized constant Gem::BasicSpecification (NameError)

As per the description mentioned in the post it seems like there is a problem with the current version of bundler. 根据帖子中提到的描述,当前的捆绑器版本似乎有问题。

Try running the below mentioned command: 尝试运行以下提到的命令:

gem update bundler

If the problem still does not resolves then you might need to run the below mentioned command: 如果问题仍然无法解决,那么您可能需要运行以下提到的命令:

gem update --system

Above command will be updating all the gems in the system based on the ruby version. 上面的命令将基于ruby版本更新系统中的所有宝石。

暂无
暂无

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

相关问题 新的Macbook-尝试运行Rails,现在我得到“在&#39;require&#39;中的internal:gem_prelude&gt;:1 ::无法加载这样的文件— ruby​​gems.rb(LoadError)” - new macbook - trying to run Rails, now I get “internal:gem_prelude>:1:in `require': cannot load such file — rubygems.rb (LoadError)” 在heroku上安装i18n_routing(i18n需要RubyGems版本&gt; = 1.3.6) - installing i18n_routing on heroku (i18n requires RubyGems version >= 1.3.6) 为什么安装Rails会出现“写权限”错误? - Why do I get “write permission” errors installing Rails? 为什么在安装RVM时出现权限错误? - Why do I get permissions errors installing RVM? 我更新了ruby gems,现在我到处都得到解析树错误和弃用警告! - I updated ruby gems, and now i get parse tree errors and deprecation warnings everywhere! Rails,如何处理验证响应。 现在我收到 406 错误 - Rails, how to handle validation responses. Right now I get 406 errors Rails需要RubyGems&gt; = 1.3.2。 请安装RubyGems,然后重试(我有rubygems 1.3.6!) - Rails requires RubyGems >= 1.3.2. Please install RubyGems and try again (I have rubygems 1.3.6!) RoR - RubyGems 未安装? - RoR - RubyGems not installing? RubyGems安装错误的代码 - RubyGems installing wrong code RubyOnRails授权:我已经更改了我的授权方法,并且对route.rb进行了一些更改之后,我现在没有出现ROUTE错误 - RubyOnRails Authorization : I have changed my authorization method and after making some changes to routes.rb I am now getting NO ROUTE errors
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM