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
Tag: ruby
how do I kill a port in use — eventmachine
I get the following error: I’m not sure what the process or port is and want to kill it so I can run my script again. How do I do that? Answer Example:
Phusion Passenger – ActiveRecord::PendingMigrationError
I am trying to run simple RoR application with Phusion Passenger. At the moment when go to localhost I see the error from subject. In fact I don’t have any pending migration: My platform is Linux (Debian 8 Jessie 64x). My database is MySQL (gem ‘mysql2’, ‘~> 0.3.18’). I am using Ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] and Rails 4.1.8.
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
gsub encoding error when running on Linux Docker Container Invalid byte sequence in US-ASCII
I have a string I’m converting from “rn” to “n” line ends using: When I run it on my Windows host, it works fine. When I run on my Linux host, in a docker container, I get this error: I am running Ruby 2.2. Answer I fixed it by doing this Invalid byte sequence in UTF-8 (ArgumentError)
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
installing rails with gem , error loading command : install undefined method ‘invoke_with_build_args`
I’m try to install rails on Debian. when run this command gem install rails I gave this error: even when I try this command: gem install I gave this error: I used this link to build ruby from sources ruby 2.1.2 build instruction what can I do to overcome this error? Answer For who compile from source, they must checked
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