wayneeseguin/rvm — Issue #731: ruby: aliased to bundled_ruby....all ruby versions have stopped working
Author: danengle
Created: 2012-01-29 20:34:36+00:00
State: open

After the latest update, all ruby installs have broken. I'm not sure happened though. I closed my macbook pro's lid on Wednesday after work and when I returned Thursday, all this started happening. Unfortunately, I need this laptop working on Monday for work, so I'm in the process of doing a fresh OS X Lion install (the actual reinstall won't happen for a few hours at this point). I had been wanting to do a fresh install for awhile, this issue just made the decision easier to make now. Hopefully someone is around who can ask more specific questions to help narrow down what's happening.

I've already done an 'rvm implode' and reinstalled rvm and several different ruby versions. Below is all the output I can think to generate to help demonstrate what's going on. Let me know if there is any other useful info I can provide. I really hope this doesn't cause me to faceplam, but I'm not sure how or why this started nor have I ever had to do anything with any of the bundled_* commands. Manually fixing symlinks/aliases doesn't sound like something rvm would require or want users to have to deal which is why I decided to open this ticket.

Thanks,
Dan Engle

@Dan- ➜ ~ rvm:(system) rvm --version

rvm 1.10.2 by Wayne E. Seguin , Michal Papis [https://rvm.beginrescueend.com/]

@Dan- ➜ ~ rvm:(system) rvm system
@Dan- ➜ ~ rvm:(system) which ruby
ruby: aliased to bundled_ruby
@Dan- ➜ ~ rvm:(system) rvm 1.9.2
ruby ruby-1.9.2-p290 is not installed.
To install do: 'rvm install ruby-1.9.2-p290'
@Dan- ➜ ~ rvm:(system) rvm install ruby-1.9.2-p290
Fetching yaml-0.1.4.tar.gz to /Users/danengle/.rvm/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 460k 100 460k 0 0 258k 0 0:00:01 0:00:01 --:--:-- 288k
Extracting yaml-0.1.4.tar.gz to /Users/danengle/.rvm/src
Configuring yaml in /Users/danengle/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/danengle/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/danengle/.rvm/usr
Installing Ruby from source to: /Users/danengle/.rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)...

ruby-1.9.2-p290 - #fetching
ruby-1.9.2-p290 - #downloading ruby-1.9.2-p290, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8604k 100 8604k 0 0 44055 0 0:03:20 0:03:20 --:--:-- 46771
ruby-1.9.2-p290 - #extracting ruby-1.9.2-p290 to /Users/danengle/.rvm/src/ruby-1.9.2-p290
ruby-1.9.2-p290 - #extracted to /Users/danengle/.rvm/src/ruby-1.9.2-p290
ruby-1.9.2-p290 - #configuring
ruby-1.9.2-p290 - #compiling
ruby-1.9.2-p290 - #installing
Retrieving rubygems-1.8.15
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 245k 100 245k 0 0 252k 0 --:--:-- --:--:-- --:--:-- 307k
Extracting rubygems-1.8.15 ...
Removing old Rubygems files...
Installing rubygems-1.8.15 for ruby-1.9.2-p290 ...
Installation of rubygems completed successfully.
ruby-1.9.2-p290 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.2-p290 - #importing default gemsets (/Users/danengle/.rvm/gemsets/)
Install of ruby-1.9.2-p290 - #complete
@Dan- ➜ ~ rvm:(system) rvm 1.9.2
@Dan- ➜ ~ rvm:(-ruby-1.9.2) which ruby
ruby: aliased to bundled_ruby
@Dan- ➜ ~ rvm:(-ruby-1.9.2) ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]
@Dan- ➜ ~ rvm:(-ruby-1.9.2) cd workspace/car_tracker
@Dan- ➜ car_tracker rvm:(-ruby-1.9.2) git:(master) ✗ rvm 1.9.2
@Dan- ➜ car_tracker rvm:(-ruby-1.9.2) git:(master) ✗ which ruby
ruby: aliased to bundled_ruby
@Dan- ➜ car_tracker rvm:(-ruby-1.9.2) git:(master) ✗ which bundled_ruby
bundled_ruby () {
_run-with-bundler ruby $@
}
@Dan- ➜ car_tracker rvm:(-ruby-1.9.2) git:(master) ✗ rails c
Rails is not currently installed on this system. To get the latest version, simply type:

$ sudo gem install rails

You can then rerun your "rails" command.
@Dan- ➜ car_tracker rvm:(-ruby-1.9.2) git:(master) ✗ ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]

@Dan- ➜ car_tracker rvm:(-ruby-1.9.2) git:(master) ✗ gem list

*** LOCAL GEMS ***

bundler (1.0.21 ruby)
rake (0.9.2)
@Dan- ➜ car_tracker rvm:(-ruby-1.9.2) git:(master) ✗ bundle install

…output removed for clarity...

Your bundle is complete! It was installed into ./bundle
@Dan- ➜ car_tracker rvm:(-ruby-1.9.2) git:(master) ✗ rails c
Rails is not currently installed on this system. To get the latest version, simply type:

$ sudo gem install rails

You can then rerun your "rails" command.
@Dan- ➜ car_tracker rvm:(-ruby-1.9.2) git:(master) ✗ cd
@Dan- ➜ ~ rvm:(-ruby-1.9.2) cat .zshrc
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh

# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
export ZSH_THEME="nebirhos"

# Set to this to use case-sensitive completion
# export CASE_SENSITIVE="true"

# Comment this out to disable weekly auto-update checks
# export DISABLE_AUTO_UPDATE="true"

# Uncomment following line if you want to disable colors in ls
# export DISABLE_LS_COLORS="true"

# Uncomment following line if you want to disable autosetting terminal title.
# export DISABLE_AUTO_TITLE="true"

# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git rails textmate ruby bundler cap gem git github node rails3 redis-cli rvm)

source $ZSH/oh-my-zsh.sh

# Customize to your needs...
export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
[[ -s "/Users/danengle/.rvm/scripts/rvm" ]] && . "/Users/danengle/.rvm/scripts/rvm"

@Dan- ➜ car_tracker rvm:(-ruby-1.9.2) git:(master) ✗ env
PATH=/Users/danengle/.rvm/gems/ruby-1.9.2-p290/bin:/Users/danengle/.rvm/gems/ruby-1.9.2-p290@global/bin:/Users/danengle/.rvm/rubies/ruby-1.9.2-p290/bin:/Users/danengle/.rvm/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
TMPDIR=/var/folders/yc/y16c9yn921177cgckjx3rc5r0000gn/T/
SHELL=/bin/zsh
HOME=/Users/danengle
USER=danengle
LOGNAME=danengle
DISPLAY=/tmp/launch-iyOZgS/org.x:0
SSH_AUTH_SOCK=/tmp/launch-5tKT2C/Listeners
Apple_PubSub_Socket_Render=/tmp/launch-zKZWXw/Render
COMMAND_MODE=unix2003
__CF_USER_TEXT_ENCODING=0x1F5:0:0
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=299
TERM_SESSION_ID=902B6E60-BCFD-414A-B2EE-7C00AEF42827
LANG=en_US.UTF-8
TERM=xterm-256color
SHLVL=1
PWD=/Users/danengle/workspace/car_tracker
OLDPWD=/Users/danengle
ZSH=/Users/danengle/.oh-my-zsh
ZSH_THEME=nebirhos
GREP_OPTIONS=--color=auto
GREP_COLOR=1;32
PAGER=less
LC_CTYPE=en_US.UTF-8
LSCOLORS=Gxfxcxdxbxegedabagacad
rvm_path=/Users/danengle/.rvm
rvm_prefix=/Users/danengle
__array_start=1
rvm_bin_path=/Users/danengle/.rvm/bin
_first=1
_second=2
rvm_reload_flag=0
rvm_version=1.10.2
rvm_alias_expanded=
rvm_docs_type=
rvm_gemdir_flag=
rvm_gemstone_package_file=
rvm_gemstone_url=
rvm_install_on_use_flag=
rvm_niceness=
rvm_nightly_flag=
rvm_patch_original_pwd=
rvm_proxy=
rvm_quiet_flag=
rvm_ree_options=
rvm_remove_flag=
rvm_ruby_file=
rvm_ruby_make=
rvm_ruby_make_install=
rvm_ruby_mode=
rvm_ruby_patch=
rvm_ruby_sha=
rvm_ruby_user_tag=
rvm_script_name=
rvm_sdk=
rvm_silent_flag=
rvm_wrapper_name=
escape_flag=1
GEM_HOME=/Users/danengle/.rvm/gems/ruby-1.9.2-p290
GEM_PATH=/Users/danengle/.rvm/gems/ruby-1.9.2-p290:/Users/danengle/.rvm/gems/ruby-1.9.2-p290@global
MY_RUBY_HOME=/Users/danengle/.rvm/rubies/ruby-1.9.2-p290
RUBY_VERSION=ruby-1.9.2-p290
IRBRC=/Users/danengle/.rvm/rubies/ruby-1.9.2-p290/.irbrc
install_flag=1
rvm_archive_extension=tar.bz2
rvm_bin_flag=
rvm_configure_flags=
rvm_delete_flag=0
rvm_file_name=
rvm_install_args=
rvm_make_flags=
rvm_only_path_flag=
rvm_ruby_alias=
rvm_ruby_aliases=
rvm_ruby_bits=
rvm_sticky_flag=
rvm_system_flag=
rvm_use_flag=
rvm_user_flag=
rvm_ruby_string=ruby-1.9.2-p290
_=/usr/bin/env
@Dan- ➜ car_tracker rvm:(-ruby-1.9.2) git:(master) ✗