![]() |
VOOZH | about |
To report bugs against RVM, please go to https://github.com/rvm/rvm/issues/ and open an Issue there. READ ALL EXISTING REPORTS! Sometimes the problem is already under investigation or has already been solved. Opening a new one for the same issue is a waste of time and resources and may cause your report to be summarily closed. Please use https://gist.github.com to store and file supplementary evidence related to the bug report. Include the returned https (not git) URL in your report. Please provide
rvm infogem list -dlset -x ; rvm --trace your_commands_here ; set +x to give us maximum information to work with. These must accompany your Issue / Bug report in order for us to be able to assist you.There are sites that describe this how it was 10 years ago like here or here so read to see how it works in current world:
~/.profile so you put there settings like LANG which are important for graphical applications.login shell which sources ~/.bash_profileWhen you execute commands in non login shell like ssh server command or scp file server:~ or sudo(without -i) or su (without -l) it will execute ~/.bashrc
~/.bashrc is meant for non login invocations, you should not print there any output - it makes tools like scp fail.
/bin/sh, you will need to edit /etc/passwd and set it to /bin/bashIt is good idea to put environment variables in ~/.bashrc, things that you depend upon in your scripts (for ssh server script)
then if your system does not source ~/.bashrc by default via /etc/profile you should source it in ~/.bash_profile file so any login shell will have access also to the same environment like non login sessions.
RVM by default adds itself currently to ~/.bash_profile file, and the recommended way is to enable login shell in gnome-terminal (and screen).
To fix the configuration files automatically run:
rvm get [head|stable] --auto-dotfiles
Please feel free to fork rvm-site and to fix anything you find amiss. Then submit a Pull Request. Regardless, whether you feel comfortable doing the above or not, please file an Issue at Issue Tracker complete with the current error and the change as you see it. If you created a pull request, please reference the URL in your Issue.
NO. DO NOT USE sudo for RVM managed rubygems. If you require more explanation see the rubygems page.
NO. If you require more explanation see the rubygems page.
RVM must be included at the bottom of the profile files. Otherwise your settings will clobber it's (example: PATH). Refer to the install directions to include this in your PATH.
NO. If you would like to manage multiple versions of ruby on windows please use pik which is an excellent tool by Gordon Thiesfeld. You can find it on GitHub. There are plans to include windows support in RVM 2.0 => https://www.bountysource.com/fundraisers/489-rvm-2-0.
Currently spaces in paths are not supported. Patches welcome :)
Setting the default ruby is explained here.
The default interpreter is 'ruby'. The default versions for each ruby interpreter are set in ~/.rvm/config/db and can be overridden by the user in ~/.rvm/config/user.
RVM installs everything into ~/.rvm. To remove RVM from your system run rm -rf ~/.rvm. You may have one additional config file in ~/.rvmrc and of course the RVM hook in your bash/zsh startup files.
No, the gem is only used for distribution, you can just as easily clone the github repo and run ./install. After installation the Gem is no longer necessary and can be safely removed. Unless, that is, you are using the RVM Ruby API. Then using the gem can be helpful but not necessary, as it can also be loaded from ~/.rvm/lib/.
RVM compiles to your current running kernel's architecture. This means that if your kernel is running as a 32 bit kernel (uname -m) it will compile 32 bit. You can override this behavior by placing the following in your ~/.rvmrc before installing the ruby interpreter:
rvm_archflags="-arch x86_64"
ruby method in my Gemfile to select the ruby version in production - how do I use another ruby version for development?Place a .ruby-version (or .rvmrc if you need scripting) file in the project directory with the version of Ruby to use for development.
The .ruby-version file has a higher precedence then the Gemfile but not the .rvmrc file and if you are on Heroku it will be ignored.
The .ruby-version file can contain a specific ruby version, or be left empty in order to just use the currently selected ruby version.
Please note that if you want to install for root only, using a per-user install, then you must prepopulate root's $HOME/.rvmrc with the following BEFORE you attempt to install:
echo 'export rvm_prefix="$HOME"' > /root/.rvmrc echo 'export rvm_path="$HOME/.rvm"' >> /root/.rvmrc
to override the checking done that assumes that if root is executing the install it must be a Multi-User installation type, and that RVM must go into /usr/local/rvm. This also negates the need to use sudo, as the combination of all these factors effectively turns it into a Per-User installation type specifically for the root user only.
Please note that this is not a typical, or generally supported installation type.