Skip to content

Instantly share code, notes, and snippets.

@kirkelifson
Last active April 15, 2024 18:01
Show Gist options
  • Save kirkelifson/2611affe02ce56ae6b04 to your computer and use it in GitHub Desktop.
Save kirkelifson/2611affe02ce56ae6b04 to your computer and use it in GitHub Desktop.
RVM Install on Windows

Do you have spaces in your Windows username?

  1. Create a new account on Windows without a space.

#Installation

  1. Download cygwin from http://cygwin.com
  2. Run setup-(x86|x86_64).exe
  3. Click next until selecting repo to download packages
  4. Choose http://cs.vt.edu (gotta go fast), click next
  5. Select the following packages (search for each):
* unzip
* openssl
* curl
* gcc-core
* git
* libtool
* make
* readline
* zlib
* zlib-devel
* libyaml
* libyaml-dev
* ncurses
* patch
* gnupg
  1. Keep 'Add shortcut to desktop' checked, then click Finish
  2. Start cygwin from desktop terminal shortcut
  3. Go to https://rvm.io
  4. Follow instructions to install (gpg & curl)

#Post-installation

  1. Make a 'bin' directory in your home dir $ mkdir ~/bin
  2. Copy setup-(x86|x86_64).exe to the new bin dir (e.g., C:/cygwin/home/user/bin)
  3. Add bin to your PATH $ export PATH=/home/user/bin:$PATH
  4. Test to verify rvm is working:
$ rvm --version
$ rvm install 2.1.7

#Cygwin problems

"It look like you're one of those happy space users..."

You didn't make a new Windows user without a space. Step #0

"gpg iconv.dll not found"

Ignore this.

@miguelrincon
Copy link

miguelrincon commented May 9, 2019

I got the following error:

++ /scripts/functions/requirements/cygwin : requirements_cygwin_libs_install()  25 > __packages_list='autoconf automake bison m4 mingw64-i686-gcc-core libssl-devel libcrypt-devel libffi-devel libreadline-devel sqlite3'
++ /scripts/functions/requirements/cygwin : requirements_cygwin_libs_install()  26 > setup-x86_64.exe --no-admin -q -P autoconf,automake,bison,m4,mingw64-i686-gcc-core,libssl-devel,libcrypt-devel,libffi-devel,libreadline-devel,sqlite3
/home/mr155795/.rvm/scripts/functions/requirements/cygwin: line 26: setup-x86_64.exe: command not found
++ /scripts/functions/requirements/cygwin : requirements_cygwin_libs_install()  26 > return 127

So I ran setup-x86_64.exe,again to install those other libraries: autoconf automake bison m4 mingw64-i686-gcc-core libssl-devel libcrypt-devel libffi-devel libreadline-devel sqlite3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment