ruby - Error message: -bash: /etc/profile.d/rvm.sh: No such file or directory -


after installing ruby on mac, every time start terminal, message:

last login: sun may 19 00:47:06 on ttys000 -bash: /etc/profile.d/rvm.sh: no such file or directory 

what mean? need fix this? if how?

every time start terminal or new tab in terminal, begin bash shell session. can set commands run every time start bash session. typical use cases include setting aliases (e.g. gst git status), environment variables, , running other bash scripts. place put these initial bash commands in ~/.bashrc or ~/.bash_profile. start checking files see if have reference file /etc/profile.d/rvm.sh. also, check whether said file exists on machine. if doesn't, can safely delete corresponding line bashrc or bash_profile. if exist, there's else funny going on you'll have debug.

also note, way rvm works, requires run script every time. if have rvm , plan on using it, work? if not, might need find appropriate rvm script lives on machine , add bashrc or bash_profile runs script. when install rvm tells command add , where. example ~/.bashrc file includes following command:

[[ -s "/users/amitgupta/.rvm/scripts/rvm" ]] && source "/users/amitgupta/.rvm/scripts/rvm" 

which checks rvm script exists, non-empty file, , runs it.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -