Project

General

Profile

Actions

Bug #13643

closed

Cannot compile ruby 2.2.5, 2.3.3, 2.3.4 on debian stretch

Bug #13643: Cannot compile ruby 2.2.5, 2.3.3, 2.3.4 on debian stretch

Added by andrevidic (Andre Vidic) over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
2.2.5, 2.3.3, 2.3.4
[ruby-core:81624]

Description

Linux debian 4.9.0-3-amd64 #1 SMP Debian 4.9.25-1 (2017-05-02) x86_64 GNU/Linux

Summary:

  1. v2.2.5, v2.3.3 fail to compile using ruby build via rbenv. They do compile manually however but without openssl. See 1) for more details
  2. v2.3.4 fails to compile (git cloned from https://github.com/ruby/ruby)
  3. v2.4.1 works on stretch! Successfully installed using ruby-build via rbenv

Details:

1)

v2.2.5,ruby-build install failed. Then successfully compiled manually but with the following issues:

Failed to configure -test-/win32/console. It will not be installed.
Failed to configure -test-/win32/dln. It will not be installed.
Failed to configure -test-/win32/fd_setsize. It will not be installed.
Failed to configure openssl. It will not be installed.
Failed to configure tk. It will not be installed.
Failed to configure tk/tkutil. It will not be installed.
Failed to configure win32. It will not be installed.
Failed to configure win32ole. It will not be installed.

Full make log here: https://gist.github.com/drej2k/989b3475a538f658348da9e09c186fe3

v2.3.3,ruby-build install failed. Then successfully compiled manually but with the following issues:

Failed to configure openssl. It will not be installed.

Full make log here: https://gist.github.com/drej2k/30da45e342e60c72f19805b3535e0734

2)

v2.3.4, failed to compile (git cloned from https://github.com/ruby/ruby)

exts.mk:118: recipe for target 'ext/openssl/all' failed
make[1]: Leaving directory '/home/deploy/ruby'
uncommon.mk:240: recipe for target 'build-ext' failed

Full make log here: https://gist.github.com/drej2k/dee78dbb0a095296d70da48fa65fbee5

Updated by Hanmac (Hans Mackowiak) over 8 years ago Actions #2 [ruby-core:81628]

@andrevidic: i think there are some dependecies missing on your system to build ruby.
you can try apt-get build-dep ruby that should install the packages your system would need to build your ruby packages.
(might be older versions, but thats the first quess)

also if "Failed to configure" happens, than the make log is not that helpful.
there should be a config.log or something that says why it can't configure something.

Updated by rhenium (Kazuki Yamaguchi) over 8 years ago Actions #3 [ruby-core:81635]

  • Status changed from Open to Rejected

The openssl extension of Ruby < 2.4 is not compatible with OpenSSL 1.1.

You can, however, install the 'libssl1.0-dev' package so that OpenSSL 1.0.2 is used instead.

Actions

Also available in: PDF Atom