I had the same problem once. It turned out the rvm-script got loaded twice, which broke things a bit.
Check all the files that load when you open a shell:
/etc/profile ~/.bashrc ~/.bash_profile
and so on, and make sure they don’t load RVM twice.
echo "Going to load RVM"
[[ -s "/Users/user/.rvm/scripts/rvm" ]] && source "/Users/user/.rvm/scripts/rvm"
~/.bash_profile to see if it happens or not.
- How to remove RVM (Ruby Version Manager) from my system
- Installed Ruby 1.9.3 with RVM but command line doesn’t show ruby -v
- Can’t install Ruby under Lion with RVM – GCC issues
- Ruby Gem install Json fails on Mavericks and Xcode 5.1 – unknown argument: ‘-multiply_definedsuppress’
- How to install a gem or update RubyGems if it fails with a permissions error
- rvm installation not working: “RVM is not a function”
- Can’t install gems on OS X “El Capitan”
- Error to install Nokogiri on OSX 10.9 Maverick?
- Avoiding AppleScript through Ruby: rb-appscript or rubyosa?
- Why does installing Nokogiri on Mac OS fail with libiconv is missing?
- How to Uninstall RVM? [duplicate]
- Mac user and getting WARNING: Nokogiri was built against LibXML version 2.7.8, but has dynamically loaded 2.7.3
- How can I switch to ruby 1.9.3 installed using Homebrew?
- Failed to build gem native extension (installing Compass)
- how to solve “ruby installation is missing psych” error?
- cannot load such file — zlib even after using rvm pkg install zlib
- Why do I get a “permission denied” error while installing a gem?
- How to avoid “cannot load such file — utils/popen” from homebrew on OSX
- Invalid active developer path on MAC OS X after installing Ruby
- Why can’t I install Rails on Lion using RVM?
- How do you uninstall rbenv on macOS?
- How to install RVM on Windows 7
- ERROR: While executing gem … (Errno::EPERM) Operation not permitted [duplicate]
- ERROR: While executing gem … (Gem::FilePermissionError)
- Cannot use RVM-installed Ruby with sudo
- When monkey patching an instance method, can you call the overridden method from the new implementation?
- How to write a switch statement in Ruby
- Ruby: How to post a file via HTTP as multipart/form-data?
- What is the difference or value of these block coding styles in Ruby?
- How do I convert a String object into a Hash object?
- How to get the name of the calling method?
- Best practices with STDIN in Ruby? [closed]
- Best way to require all files from a directory in ruby?
- Ruby: What does ‘require: false’ in Gemfile mean?
- What are all the common ways to read a file in Ruby?
- What does &. (ampersand dot) mean in Ruby?
- What are the Ruby Gotchas a newbie should be warned about? [closed]
- What are the Ruby File.open modes and options?
- What are :+ and &:+ in Ruby?
- Ruby Array Initialization [duplicate]
- Difference between various variables scopes in ruby
- Using Net::HTTP.get for an https url
- How do I remove emoji from string
- How do I run a rake task from Capistrano?
- When should I use Struct vs. OpenStruct?
- Is the ruby operator ||= intelligent?
- list of ruby operators that can be overridden/implemented
- How to convert JSON to a Ruby hash
- Passing a method as a parameter in Ruby
- How can I generate zip file without saving to the disk with Ruby?