Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to install ruby 2.3.1 on Windows 10 with Cygwin #3706

Closed
pioz opened this issue Jun 23, 2016 · 3 comments
Closed

Fail to install ruby 2.3.1 on Windows 10 with Cygwin #3706

pioz opened this issue Jun 23, 2016 · 3 comments

Comments

@pioz
Copy link

pioz commented Jun 23, 2016

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?

@DubKF
Copy link

DubKF commented Jul 8, 2016

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

@Ajedi32
Copy link

Ajedi32 commented Jul 13, 2016

@dubek Thanks, that worked for me as well.

@pkuczynski
Copy link
Member

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

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

No branches or pull requests

4 participants