Skip to content

Instantly share code, notes, and snippets.

@sumeetjain
Created May 10, 2011 21:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sumeetjain/965395 to your computer and use it in GitHub Desktop.
Save sumeetjain/965395 to your computer and use it in GitHub Desktop.
RVM Woes
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
Cloning into rvm...
remote: Counting objects: 4675, done.
remote: Compressing objects: 100% (2353/2353), done.
remote: Total 4675 (delta 3023), reused 3187 (delta 1672)
Receiving objects: 100% (4675/4675), 1.56 MiB | 659 KiB/s, done.
Resolving deltas: 100% (3023/3023), done.
WARNING: Could not source script '/Users/sumeetjain/.rvm/scripts/base', file does not exist. RVM will likely not work as expected.
WARNING: Could not source script '/Users/sumeetjain/.rvm/scripts/version', file does not exist. RVM will likely not work as expected.
WARNING: Could not source script '/Users/sumeetjain/.rvm/scripts/selector', file does not exist. RVM will likely not work as expected.
WARNING: Could not source script '/Users/sumeetjain/.rvm/scripts/cd', file does not exist. RVM will likely not work as expected.
WARNING: Could not source script '/Users/sumeetjain/.rvm/scripts/cli', file does not exist. RVM will likely not work as expected.
WARNING: Could not source script '/Users/sumeetjain/.rvm/scripts/override_gem', file does not exist. RVM will likely not work as expected.
cat: /Users/sumeetjain/.rvm/VERSION: No such file or directory
scripts/rvm: line 128: __rvm_conditionally_add_bin_path: command not found
RVM: Shell scripts enabling management of multiple ruby environments.
RTFM: https://rvm.beginrescueend.com/
HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
Installing RVM to /Users/sumeetjain/.rvm/cp: /Users/sumeetjain/bin/rvm-prompt: No such file or directory
cp: /Users/sumeetjain/bin/rvm: No such file or directory
cp: /Users/sumeetjain/bin/rvmsudo: No such file or directory
cp: /Users/sumeetjain/bin/rvm-shell: No such file or directory
cp: /Users/sumeetjain/bin/rvm-exec: No such file or directory
cp: /Users/sumeetjain/bin/rvm-auto-ruby: No such file or directory
Correct permissions for base binaries in /Users/sumeetjain/bin...
Copying manpages into place.
Notes for Darwin ( Mac OS X )
For Snow Leopard be sure to have Xcode Tools Version 3.2.1 (1613) or later
You should download the latest Xcode tools from developer.apple.com.
(This is since the dvd install for Snow Leopard contained bugs).
If you intend on installing MacRuby you must install LLVM first.
If you intend on installing JRuby you must install the JDK.
If you intend on installing IronRuby you must install Mono (version 2.6 or greater is recommended).
To seamlessly abandon the Apple-installed system ruby (ruby 1.8.7 patchlevel 174 for Snow Leopard):
rvm install 1.8.7 # installs patch 302: closest supported version
rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system # migrate your gems
rvm --default 1.8.7
NOTE:
If you have installed RVM as root you need to add current user to rvm group.
Run the following commands to make this happen
user$ username=sumeetjain
user$ sudo dscl localhost -append /Local/Default/Groups/rvm GroupMemip
You must now complete the install by loading RVM in new shells.
1) Place the folowing line at the end of your shell's loading files
(.bashrc or .bash_profile for bash and .zshrc for zsh),
after all PATH/variable settings:
[[ -s "/Users/sumeetjain/.rvm/scripts/rvm" ]] && source "/Users/sumeetjain/.rvm/scripts/rvm" # This loads RVM into a shell session.
You only need to add this line the first time you install rvm.
2) Ensure that there is no 'return' from inside the ~/.bashrc file,
otherwise rvm may be prevented from working properly.
This means that if you see something like:
'[ -z "$PS1" ] && return'
then you change this line to:
if [[ -n "$PS1" ]] ; then
# ... original content that was below the '&& return' line ...
fi # <= be sure to close the if at the end of the .bashrc.
# This is a good place to source rvm v v v
[[ -s "/Users/sumeetjain/.rvm/scripts/rvm" ]] && source "/Users/sumeetjain/.rvm/scripts/rvm" # This loads RVM into a shell session.
EOF - This marks the end of the .bashrc file
Be absolutely *sure* to REMOVE the '&& return'.
If you wish to DRY up your config you can 'source ~/.bashrc' at the bottom of your .bash_profile.
Placing all non-interactive (non login) items in the .bashrc,
including the 'source' line above and any environment settings.
3) CLOSE THIS SHELL and open a new one in order to use rvm.
Installation of RVM to /Users/sumeetjain/.rvm/ is complete.
Sumeet Jain,
Thank you very much for using RVM! I sincerely hope that RVM helps to
make your work both easier and more enjoyable.
If you have any questions, issues and/or ideas for improvement please
join#rvm on irc.freenode.net and let me know, note you must register
(http://bit.ly/5mGjlm) and identify (/msg nickserv <nick> <pass>) to
talk, this prevents spambots from ruining our day.
My irc nickname is 'wayneeseguin' and I hang out in #rvm typically
~09:00-17:00EDT and again from ~21:00EDT-~23:00EDT
If I do not respond right away, please hang around after asking your
question, I will respond as soon as I am back. It is best to talk in
#rvm itself as then other users can help out should I be offline.
Be sure to get head often as rvm development happens fast,
you can do this by running 'rvm get head' followed by 'rvm reload'
or opening a new shell
w⦿‿⦿t
~ Wayne
@jamesbebbington
Copy link

Hey sumeetjain, did you solve this? I just got the same on a fresh OS X 10.6 install.

@Mori
Copy link

Mori commented May 12, 2011

Same here, on Ubuntu 10.04.2 LTS. Anything?

@sumeetjain
Copy link
Author

Removing it and re-installing worked for me:

rm -rf /Users/sumeetjain/.rvm/

Someone suggested that in IRC. If your issues persist, I'd recommend asking for help there.

@douglasjarquin
Copy link

Removing and reinstalling didn't do it for me. Still digging for a solution.

Update: Removing it and re-installing did work, but only after about 4 tries. Not sure what gives. Also, for ZSH users, add the following to the bottom of your .zshrc file:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment