Issue #16475 has been updated by duerst (Martin D=FCrst).

Subject changed from [Installation process - compiling ruby 2.7.0 from sour=
ce} "make install" step oddity for ruby 2.7.0 on linux minut (debian base) =
to [Installation process - compiling ruby 2.7.0 from source} "make install"=
 step oddity for ruby 2.7.0 on linux mint (debian base)

@shevegen: Can this be closed? Looks like nobody else has the same problem.

----------------------------------------
Bug #16475: [Installation process - compiling ruby 2.7.0 from source} "make=
 install" step oddity for ruby 2.7.0 on linux mint (debian base)
https://bugs.ruby-lang.org/issues/16475#change-92012

* Author: shevegen (Robert A. Heiler)
* Status: Open
* Priority: Normal
* ruby -v: ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
Hello ruby core team (and everyone else),

I have a slight oddity; it seems to be not hugely important, as it seems mi=
nor, but
I will report it anyway just in case. Please disregard/close if this has al=
ready been
reported before.

Situation:

I am trying to compile/install ruby-2.7.0 on the most recent linux mint (fr=
esh
installation).

The "make" step works fine. No error I could see there.

The "make install" step, however had, has one slight problem/warning:

    Traceback (most recent call last):
    	11: from ./tool/rbinstall.rb:942:in `<main>'
    	10: from ./tool/rbinstall.rb:942:in `each'
    	 9: from ./tool/rbinstall.rb:945:in `block in <main>'
    	 8: from ./tool/rbinstall.rb:794:in `block in <main>'
    	 7: from ./tool/rbinstall.rb:830:in `install_default_gem'
    	 6: from ./tool/rbinstall.rb:830:in `each'
    	 5: from ./tool/rbinstall.rb:840:in `block in install_default_gem'
    	 4: from ./tool/rbinstall.rb:278:in `open_for_install'
    	 3: from ./tool/rbinstall.rb:841:in `block (2 levels) in install_defau=
lt_gem'
    	 2: from /Depot/j/ruby-2.7.0/lib/rubygems/specification.rb:2426:in `to=
_ruby'
    	 1: from /Depot/j/ruby-2.7.0/lib/rubygems/core_ext/kernel_require.rb:9=
2:in `require'

    /Depot/j/ruby-2.7.0/lib/rubygems/core_ext/kernel_require.rb:92:in `requ=
ire': cannot load such file -- openssl (LoadError)
    uncommon.mk:373: recipe for target 'do-install-all' failed

I believe this is due to linux mint not having openssl installed by default=
 (probably not
the dev-package either).

Ruby seems to work just fine otherwise, so this may just be a simple inconv=
enient =

warning - but if possible, I believe it would be better to, IF there is a s=
tep during the
do-install-all action, to rescue this (and continue if something else has t=
o be done).

Right now it seems to stop right at this point, with the "cannot load such =
file -- openssl"
message, and I am not sure if there is anything else that has to be install=
ed.

Note that I know how to work around this; I will just install/compile the o=
ther packages
that are missing, then I can recompile ruby or just do so in the ext/ direc=
tory. But
this is just an initial setup right now - I have to install the rest at a l=
ater time
today. So I just report this here - not sure if it is known yet, but either=
 way it
may not be very elegant to fail or report that warning.

If it is of help, I will copy/paste the whole "make install" step next:

/Depot/j/ruby-2.7.0/make install

# ^^^ make install step issued here ^^^


	BASERUBY =3D echo executable host ruby is required.  use --with-baseruby o=
ption.; false
	CC =3D gcc
	LD =3D ld
	LDSHARED =3D gcc -shared
	CFLAGS =3D -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated=
-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentati=
on -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=3D0 -Wmissing-nor=
eturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long =
-Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfiel=
d-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compa=
re -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=3Dformat -Ws=
uggest-attribute=3Dnoreturn -Wunused-variable -std=3Dgnu99 =

	XCFLAGS =3D -D_FORTIFY_SOURCE=3D2 -fstack-protector-strong -fno-strict-ove=
rflow -fvisibility=3Dhidden -fexcess-precision=3Dstandard -DRUBY_EXPORT -fP=
IE -DCANONICALIZATION_FOR_MATHN -I. -I.ext/include/x86_64-linux -I./include=
 -I. -I./enc/unicode/12.1.0
	CPPFLAGS =3D   =

	DLDFLAGS =3D -Wl,--compress-debug-sections=3Dzlib -fstack-protector-strong=
 -pie  =

	SOLIBS =3D -lpthread -lrt -lrt -ldl -lcrypt -lm =

	LANG =3D en_US.UTF-8
	LC_ALL =3D =

	LC_CTYPE =3D =

	MFLAGS =3D =


gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


./revision.h unchanged
generating enc.mk
making srcs under enc
make[1]: Entering directory '/Depot/j/ruby-2.7.0'
make[1]: Nothing to be done for 'srcs'.
make[1]: Leaving directory '/Depot/j/ruby-2.7.0'
generating transdb.h
transdb.h unchanged
generating makefiles ext/configure-ext.mk
ext/configure-ext.mk unchanged
make[1]: Entering directory '/Depot/j/ruby-2.7.0'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/pathname'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/pathname'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/ripper'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/ripper'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/json'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/json'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/io/console'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/io/console'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/nkf'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/nkf'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/psych'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/psych'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/pty'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/pty'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/date'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/date'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/socket'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/socket'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/bigdecimal'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/bigdecimal'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/coverage'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/coverage'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/fiddle'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/fiddle'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/rubyvm'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/rubyvm'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/syslog'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/syslog'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/monitor'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/monitor'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/digest'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/digest'
make[2]: Entering directory '/Depot/j/ruby-2.7.0/ext/digest/sha2'
make[2]: Leaving directory '/Depot/j/ruby-2.7.0/ext/digest/sha2'
make[2]: Entering directory '/Depot/j/ruby-2.7.0'
./revision.h unchanged
make[2]: Leaving directory '/Depot/j/ruby-2.7.0'
make[1]: Leaving directory '/Depot/j/ruby-2.7.0'
make[1]: Entering directory '/Depot/j/ruby-2.7.0'
*** Following extensions are not compiled:
zlib:
	Could not be configured. It will not be installed.
	Check ext/zlib/mkmf.log for more details.
readline:
	Could not be configured. It will not be installed.
	/Depot/j/ruby-2.7.0/ext/readline/extconf.rb:62: Neither readline nor libed=
it was found
	Check ext/readline/mkmf.log for more details.
dbm:
	Could not be configured. It will not be installed.
	Check ext/dbm/mkmf.log for more details.
openssl:
	Could not be configured. It will not be installed.
	/Depot/j/ruby-2.7.0/ext/openssl/extconf.rb:97: OpenSSL library could not b=
e found. You might want to use --with-openssl-dir=3D<dir> option to specify=
 the prefix where OpenSSL is installed.
	Check ext/openssl/mkmf.log for more details.
gdbm:
	Could not be configured. It will not be installed.
	Check ext/gdbm/mkmf.log for more details.
-test-/cxxanyargs:
	Could not be configured. It will not be installed.
	/Depot/j/ruby-2.7.0/lib/mkmf.rb:471: The compiler failed to generate an ex=
ecutable file.
	You have to install development tools first.
	Check ext/-test-/cxxanyargs/mkmf.log for more details.
*** Fix the problems, then remove these directories and try again if you wa=
nt.
make[1]: Leaving directory '/Depot/j/ruby-2.7.0'
making enc
make[1]: Entering directory '/Depot/j/ruby-2.7.0'
make[1]: Nothing to be done for 'enc'.
make[1]: Leaving directory '/Depot/j/ruby-2.7.0'
making trans
make[1]: Entering directory '/Depot/j/ruby-2.7.0'
make[1]: Nothing to be done for './enc/trans'.
make[1]: Leaving directory '/Depot/j/ruby-2.7.0'
making encs
make[1]: Entering directory '/Depot/j/ruby-2.7.0'
make[1]: Nothing to be done for 'encs'.
make[1]: Leaving directory '/Depot/j/ruby-2.7.0'
Generating RDoc documentation
Parsing sources...
100% [1141/1141]  win32/README.win32

Generating RI format into /Depot/j/ruby-2.7.0/.ext/rdoc...

  Files:       1141

  Classes:     1611 ( 755 undocumented)
  Modules:      327 ( 134 undocumented)
  Constants:   2434 ( 725 undocumented)
  Attributes:  1484 ( 558 undocumented)
  Methods:    13002 (3976 undocumented)

  Total:      18858 (6148 undocumented)
   67.40% documented

  Elapsed: 42.0s

./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=3D.ext  --=
 --disable-gems -r./x86_64-linux-fake ./tool/rbinstall.rb --make=3D"make" -=
-dest-dir=3D"" --extout=3D".ext" --mflags=3D"" --make-flags=3D"" --data-mod=
e=3D0644 --prog-mode=3D0755 --installed-list .installed.list --mantype=3D"d=
oc" --rdoc-output=3D".ext/rdoc" --html-output=3D".ext/html"
installing binary commands:         /usr/bin
installing base libraries:          /usr/lib
installing arch files:              /usr/lib/ruby/2.7.0/x86_64-linux
installing pkgconfig data:          /usr/lib/pkgconfig
installing extension objects:       /usr/lib/ruby/2.7.0/x86_64-linux
installing extension objects:       /usr/lib/ruby/site_ruby/2.7.0/x86_64-li=
nux
installing extension objects:       /usr/lib/ruby/vendor_ruby/2.7.0/x86_64-=
linux
installing extension headers:       /usr/include/ruby-2.7.0/x86_64-linux
installing extension scripts:       /usr/lib/ruby/2.7.0
installing extension scripts:       /usr/lib/ruby/site_ruby/2.7.0
installing extension scripts:       /usr/lib/ruby/vendor_ruby/2.7.0
installing extension headers:       /usr/include/ruby-2.7.0/ruby
installing rdoc:                    /usr/share/ri/2.7.0/system
installing html-docs:               /usr/share/doc/ruby
installing capi-docs:               /usr/share/doc/ruby
installing command scripts:         /usr/bin
installing library scripts:         /usr/lib/ruby/2.7.0
installing common headers:          /usr/include/ruby-2.7.0
installing manpages:                /usr/share/man (man1, man5)
installing default gems from lib:   /usr/lib/ruby/gems/2.7.0 (build_info, c=
ache, doc, extensions, gems, specifications)
                                    benchmark 0.1.0
Traceback (most recent call last):
	11: from ./tool/rbinstall.rb:942:in `<main>'
	10: from ./tool/rbinstall.rb:942:in `each'
	 9: from ./tool/rbinstall.rb:945:in `block in <main>'
	 8: from ./tool/rbinstall.rb:794:in `block in <main>'
	 7: from ./tool/rbinstall.rb:830:in `install_default_gem'
	 6: from ./tool/rbinstall.rb:830:in `each'
	 5: from ./tool/rbinstall.rb:840:in `block in install_default_gem'
	 4: from ./tool/rbinstall.rb:278:in `open_for_install'
	 3: from ./tool/rbinstall.rb:841:in `block (2 levels) in install_default_g=
em'
	 2: from /Depot/j/ruby-2.7.0/lib/rubygems/specification.rb:2426:in `to_rub=
y'
	 1: from /Depot/j/ruby-2.7.0/lib/rubygems/core_ext/kernel_require.rb:92:in=
 `require'
/Depot/j/ruby-2.7.0/lib/rubygems/core_ext/kernel_require.rb:92:in `require'=
: cannot load such file -- openssl (LoadError)
uncommon.mk:373: recipe for target 'do-install-all' failed
make: *** [do-install-all] Error 1




-- =

https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=3Dunsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>