wayneeseguin/rvm — Issue #501: rvm errors when installing into a path with spaces
Author: ryangreenberg
Created: 2011-10-13 05:00:31+00:00
State: open

My home directory is on an external volume which has a space in its name. When I install rvm and later try to install Rubies, I get the errors below. It seems like the errors are the result of an unescaped space/unquoted path:

```
~ $ rvm install 1.8.7
ruby-1.8.7-p352 - #extracting ruby-1.8.7-p352 to /Volumes/Macintosh HD/Users/ryan/.rvm/src/ruby-1.8.7-p352
ERROR: Error running 'tar xjf /Volumes/Macintosh HD/Users/ryan/.rvm/archives/ruby-1.8.7-p352.tar.bz2 -C /Volumes/Macintosh HD/Users/ryan/.rvm/tmp/rvm_src_7870', please read /Volumes/Macintosh HD/Users/ryan/.rvm/log/ruby-1.8.7-p352/extract.log
ERROR: There has been an error while trying to extract the source.
Halting the installation.
ERROR: There has been an error fetching the ruby interpreter. Halting the installation.

~ $ cat ~/.rvm/log/ruby-1.8.7-p352/extract.log
[2011-10-12 21:52:41] tar xjf /Volumes/Macintosh HD/Users/ryan/.rvm/archives/ruby-1.8.7-p352.tar.bz2 -C /Volumes/Macintosh HD/Users/ryan/.rvm/tmp/rvm_src_7870
tar: Unrecognized archive format
tar: HD/Users/ryan/.rvm/tmp/rvm_src_7870: Not found in archive
tar: /Volumes/Macintosh: Not found in archive
tar: -C: Not found in archive
tar: HD/Users/ryan/.rvm/archives/ruby-1.8.7-p352.tar.bz2: Not found in archive
tar: Error exit delayed from previous errors.
```

When installing rvm I get similar errors:

```
$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

Cloning into rvm...
remote: Counting objects: 5696, done.
remote: Compressing objects: 100% (2718/2718), done.
remote: Total 5696 (delta 3738), reused 4039 (delta 2241)
Receiving objects: 100% (5696/5696), 1.90 MiB | 628 KiB/s, done.
Resolving deltas: 100% (3738/3738), done.

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 /Volumes/Macintosh HD/Users/ryan/.rvm/cp: /Volumes/Macintosh: No such file or directory
cp: HD/Users/ryan/.rvm/src/rvm/gemsets/default.gems: No such file or directory
cp: /Volumes/Macintosh: No such file or directory
cp: HD/Users/ryan/.rvm/src/rvm/gemsets/global.gems: No such file or directory
cp: /Volumes/Macintosh: No such file or directory
cp: HD/Users/ryan/.rvm/src/rvm/gemsets/jruby/global.gems: No such file or directory
cp: /Volumes/Macintosh: No such file or directory
cp: HD/Users/ryan/.rvm/src/rvm/gemsets/rbx/global.gems: No such file or directory
cp: /Volumes/Macintosh: No such file or directory
cp: HD/Users/ryan/.rvm/src/rvm/gemsets/ree/1.8.7/global.gems: No such file or directory
cp: /Volumes/Macintosh: No such file or directory
cp: HD/Users/ryan/.rvm/src/rvm/gemsets/ruby/1.8.7/global.gems: No such file or directory
cp: /Volumes/Macintosh: No such file or directory
cp: HD/Users/ryan/.rvm/src/rvm/gemsets/ruby/1.9.1/global.gems: No such file or directory
cp: /Volumes/Macintosh: No such file or directory
cp: HD/Users/ryan/.rvm/src/rvm/gemsets/ruby/1.9.2/global.gems: No such file or directory

Correct permissions for base binaries in /Volumes/Macintosh HD/Users/ryan/.rvm/bin...
Copying manpages into place.
cp: /Volumes/Macintosh HD/Users/ryan/.rvm/man/man1/rvm.1: No such file or directory
cp: /Volumes/Macintosh HD/Users/ryan/.rvm/man/man1/rvm.1.gz: No such file or directory
Recording config files for rubies.
```