Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot install RVM . Permission denied in /usr/local/rvm
    primarykey
    data
    text
    <p>Based on my previous thread : <a href="https://stackoverflow.com/questions/4911504/rvm-installed-by-ruby-not-working">RVM installed by Ruby not working?</a> where i had installed RVM using the root user, I then had to entirely remove the RVM install and now i am installing as a user.</p> <p>So i did :</p> <ol> <li>Create a new user by doing : useradd newuser</li> <li>Follow the instructions on the RVM website and execute the command : bash &lt; &lt;( curl <a href="http://rvm.beginrescueend.com/releases/rvm-install-head" rel="nofollow noreferrer">http://rvm.beginrescueend.com/releases/rvm-install-head</a> )</li> </ol> <p>Now, i get the error : <strong>mkdir: cannot create directory `/usr/local/rvm': Permission denied</strong></p> <p>The new user i created does not have access to this directory. I manually tried creating the folder but the same error. Please help.</p> <p>EDIT : The original problem occured because i did not restart the terminal and it was still using the old settings.</p> <p>Now, I got a new problem : After installing RVM, i cannot run it and it gives me an error : rvm command not found.</p> <p>Here is the output of my ~/.bash_profile</p> <pre><code># .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. </code></pre> <p>And here is output from ~/.bashrc file</p> <pre><code># .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload