Reputation: 11
I'm new to Ruby and currently using Windows 10. I'm facing difficulty installing RVM. Since I work on different projects with varying Ruby versions, I want to use RVM to manage them easily. Currently, I find myself frequently changing the system variable path whenever I switch between projects. Could you please help me with this? Thanks in advance!
Im have installed the RVM but it shows something like this 'rvm' is not recognized as an internal or external command, operable program or batch file.
Upvotes: 1
Views: 959
Reputation: 238
I had the same issue, as i was get used to RVM on Linux for years, but need to work on Windows with several Ruby versions as well.
But RVM originally didn't exist for native Windows, so it won't work on Windows, as it is a Shell application.
Frustrated by this, I created a clone of RVM for Windows, called rvm-windows
providing most of the common features with the same command line API.
Follow the instructions on the repository and you will never have to change the PATH environment variable anymore: https://github.com/magynhard/rvm-windows
Upvotes: 0
Reputation: 61
RVM supports most UNIX like systems and Windows. The basic requirements are bash, curl, gpg2 and overall GNU version of tools - but RVM tries to autodetect it and install anything that is needed.
Use WSL(Windows Subsystem For Linux) - https://learn.microsoft.com/pt-br/windows/wsl/install
from: https://rvm.io/rvm/install
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
sudo apt-get update && sudo apt-get install -y gnupg2
gpg --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable --ruby
rvm install <ruby version>
rvm list
rvm use <ruby version>
Upvotes: 0