title: Install RVM into the current user HOME directory
body: <p>Quote from <a href="https://rvm.io/rvm/install/" rel="nofollow">site</a>:</p>
  
  <blockquote>
    <p>If the install script is run as a standard, non-root user, RVM will
    install into the current users's home directory.</p>
  </blockquote>
  
  <p>Well:</p>
  
  <pre><code>demas@demas:/www/sites/in_use/dev/public_html$ su demas
  Password: 
  demas@demas:/www/sites/in_use/dev/public_html$ \curl -L https://get.rvm.io | bash -s
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
  100   184  100   184    0     0    174      0  0:00:01  0:00:01 --:--:--   229
  100 13641  100 13641    0     0   8774      0  0:00:01  0:00:01 --:--:-- 13.0M
  mkdir: cannot create directory вЂ/usr/local/rvmвЂ™: Permission denied
  </code></pre>
  
  <p>I have tryed to install RVM as a standard user.  Why it didn't install into home directory ?</p>
  
  <p>I use Ubuntu.</p>
  
  <p><strong>Updated:</strong></p>
  
  <pre><code>demas@demas:/www/sites/in_use/dev/public_html$ whoami
  demas
  demas@demas:/www/sites/in_use/dev/public_html$ echo $HOME
  /home/demas
  </code></pre>
  
  <p><strong>Updated 2:</strong></p>
  
  <pre><code>demas@demas:/www/sites/in_use/dev/public_html$ \curl -L https://get.rvm.io | bash -s -- --trace
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
  100   184  100   184    0     0    165      0  0:00:01  0:00:01 --:--:--   225
  100 13641  100 13641    0     0  11922      0  0:00:01  0:00:01 --:--:-- 11922
  +  :   270 &gt; rvm_trace_flag=1
  +  :   275 &gt; true 1 0 0 HOME=/home/demas
  +  :   279 &gt; ((  rvm_ignore_rvmrc == 0  ))
  +  :   281 &gt; for rvmrc in /etc/rvmrc '"$HOME/.rvmrc"'
  +  :   283 &gt; [[ -s /etc/rvmrc ]]
  +  :   281 &gt; for rvmrc in /etc/rvmrc '"$HOME/.rvmrc"'
  +  :   283 &gt; [[ -s /home/demas/.rvmrc ]]
  +  :   300 &gt; [[ -z /usr/local/rvm ]]
  +  :   313 &gt; [[ -z /usr/local ]]
  +  :   321 &gt; [[ -z '' ]]
  +  :   324 &gt; [[ /usr/local == \/\h\o\m\e\/\d\e\m\a\s ]]
  +  :   328 &gt; rvm_user_install_flag=0
  +  :   332 &gt; install_rubies=()
  +  :   333 &gt; install_gems=()
  +  :   334 &gt; flags=()
  +  :   336 &gt; ((  1 &gt; 0  ))
  +  :   338 &gt; token=--trace
  +  :   339 &gt; shift
  +  :   340 &gt; case "$token" in
  +  :   343 &gt; set -o xtrace
  +  :   344 &gt; rvm_trace_flag=1
  +  :   345 &gt; flags+=("$token")
  +  :   336 &gt; ((  0 &gt; 0  ))
  +  :   473 &gt; case "$rvm_path" in
  +  :   500 &gt; ((  0 &gt; 0 &amp;&amp; 0 == 0  ))
  +  :   505 &gt; ((  0 &gt; 0  ))
  +  :   512 &gt; true head
  +  :   514 &gt; [[ /usr/local/rvm != /* ]]
  +  :   519 &gt; rvm_src_path=/usr/local/rvm/src
  +  :   520 &gt; rvm_archives_path=/usr/local/rvm/archives
  +  :   521 &gt; rvm_releases_url=https://rvm.io/releases
  +  :   523 &gt; for dir in '"$rvm_src_path"' '"$rvm_archives_path"'
  +  :   525 &gt; [[ ! -d /usr/local/rvm/src ]]
  +  :   527 &gt; mkdir -p /usr/local/rvm/src
  mkdir: cannot create directory вЂ/usr/local/rvmвЂ™: Permission denied
  </code></pre>