Rvm: Fail to install ruby 2.3.1 on Windows 10 with Cygwin

Created on 24 Jun 2016  Â·  3Comments  Â·  Source: rvm/rvm

I've installed rvm v1.27.0 (master) on Windows 10 64bit with Cygwin.
When I try to install ruby 2.3.1 I get the following error:

$ rvm install ruby-2.3
Searching for binary rubies, this might take some time.
No binary rubies available for: cygwin/unknown/x86_64/ruby-2.3.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for cygwin.
Installing requirements for cygwin.
Updating system.
Installing required packages: cygwin32-readline.
Requirements installation successful.
Installing Ruby from source to: /home/Enrico/.rvm/rubies/ruby-2.3.1, this may take a while depending on your cpu(s)...
ruby-2.3.1 - #downloading ruby-2.3.1, this may take a while depending on your connection...
ruby-2.3.1 - #extracting ruby-2.3.1 to /home/Enrico/.rvm/src/ruby-2.3.1....
ruby-2.3.1 - #configuring..........................................................
ruby-2.3.1 - #post-configuration..
ruby-2.3.1 - #compiling...........
Error running '__rvm_make -j8',
showing last 15 lines of /home/Enrico/.rvm/log/1466719356_ruby-2.3.1/make.log
compiling ./missing/langinfo.c
compiling ./missing/crypt.c
./missing/crypt.c:948:1: error: conflicting types for ‘encrypt’
 encrypt(block, flag)
 ^
In file included from /usr/include/sys/reent.h:13:0,
                 from /usr/include/math.h:5,
                 from ./include/ruby/missing.h:23,
                 from ./missing/crypt.c:37:
/usr/include/sys/unistd.h:53:6: note: previous declaration of ‘encrypt’ was here
 void _EXFUN(encrypt, (char *__block, int __edflag));
      ^
make: *** [Makefile:376: crypt.o] Error 1
make: *** Waiting for unfinished jobs....
++ return 2
There has been an error while running make. Halting the installation.

Any idea to solve this?

fixed windows

All 3 comments

Try installing libcrypt-devel and libcrypt0 via the cygwin setup tool
This worked for me.

@dubek Thanks, that worked for me as well.

I just listed libcrypt-devel and libcrypt0 as requirements for ruby on Windows. Could you please check latest master and reopen in case it does not work?

rvm get master
rvm install 2.3.1
Was this page helpful?
0 / 5 - 0 ratings