Skip to content
Advertisement

Tag: ruby

Error: mime-types-data requires Ruby version >= 2.0

I recently install clean ubuntu14.04 virtual machine in vware fusion and updated it. I am trying to install the mime-tyes-data by sudo gem install mime-types-data -v 3.2015.1120 The error shows ERROR: Error installing mime-types-data: mime-types-data requires Ruby version >= 2.0. Before that I already update ruby version by sudo apt-get install ruby2.0 sudo ln -sf /usr/bin/ruby2.0 /usr/bin/ruby It seems my

Ruby: How to REQUIRE an installed GEM programmatically?

First off, I am REALLY new at coding, only CMD 10 years ago and ruby for 5 days now. So I am making my very first script and the only goal for it is for me to test and learn DEF and TRUE/FALSE choices Like like this: or My question: I want my script to check if a particular GEM

Chef – using a for loop with SQLEOH

I have a bash resource which is failing when attempting to loop through some ddl scripts. The same syntax without a for loop (and literal script name) works fine in Chef, and it all works including with the for loop in a terminal: The errors I am getting indicate a problem with the SQLEOH delimiter and unexpected end-of-file. What is

error installing ruby 1.9.3 on linux server

Hey I’m just to update ruby on a linux server I ssh into. I know there a lot of threads on this but most are for installing on mac osx (which i dont have an issue with). This is the error log thats outputted: this is the content of the make.log per a commenter’s request: Answer I think your issue

Rails: Uninstall specific version of a library using gem

For example I have the following four versions installed: capybara (2.2.1, 2.2.0.rc1, 2.1.0, 1.1.4) Please suggest how to uninstall the capybara version 1.1.4 Answer When you do gem uninstall capybara it should give you a menu asking which one you want to uninstall. Alternatively use the -v option. Note you may need to sudo these commands if you’re not using

Can’t resolve rubygems.org (too many redirects)

For some reason my vagrant VM cannot resolve rubygems.org. It was working fine yesterday, today I made no changes and now it no longer works: Fresh Ubuntu install Installing ruby gems (fails) Can’t resolve rubygems.org Other websites seem fine I can resolve by IP address More Info It was working This was working fine yesterday night! The VM /etc/hosts seems

Advertisement