Aravin Aravin 5, 3 3 gold badges 36 36 silver badges 54 54 bronze badges. RuntimeError gem update --system is disabled on Debian, because it will overwrite the content of the rubygems Debian package, and might break your Debian system in subtle ways. The Debian-supported way to update rubygems is through apt-get, using Debian official repositories.
Debian package exist for Rbenv — antono. For me it sufficed to simply run gem update. Klas Mellbourn Klas Mellbourn This is for updating your gems, not the rubygems software itself. True, but this is the first Google result for searches like "update gem version", so I'm glad this answer was here. To update just one gem and it's dependencies , do: bundle update gem-name But to update just the gem alone without updating it's dependencies , do bundle update --source gem-name.
Kaka Ruto Kaka Ruto 3, 1 1 gold badge 24 24 silver badges 29 29 bronze badges. This is for updating specific gems, not the rubygems software itself.
Yes but that's not what the question is about. I see. But I know this will help someone like me who landed here first : — Kaka Ruto.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. As a temporary workaround, you can manually run the section of run. Yeah, if rubygems is installed from source there shouldn't be a problem. Oh, I get it, teleport is used to no ruby or gem at all The vagrant box I've been testing it on had the apt version pre-installed. That might be something to check for, or uninstall the apt versions A warning to uninstall apt versions of ruby might be good.
Skip to content. Star Learn more. What's the deal with rubygems on Debian? It's different and strange Ask Question. Asked 11 years, 8 months ago. Active 10 years, 6 months ago. Viewed 7k times. I've noticed at least the following oddities around rubygems on Debian 5.
RuntimeError gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get. Not all gems appear to work like they do on other systems.
For instance, when installing Phusion Passenger, it did not detect the "rack" gem even though it was definitely installed. What's the deal? Why is debian's package different? Improve this question.
Yetanotherjosh Yetanotherjosh 1, 22 22 silver badges 34 34 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Run below command on terminal. Get a list of available versions of Ruby language. You can install any version of your choice or requirements showing on the list. RVM is useful for installation of multiple Ruby versions on the single system.
Use the following command to install required Ruby on your system. As shown below example will install Ruby 2. Use rvm command to set up default ruby version to be used by applications.
You can install multiple versions as defined in the above step.
0コメント