ruby-changes:50854
From: nobu <ko1@a...>
Date: Mon, 2 Apr 2018 13:44:39 +0900 (JST)
Subject: [ruby-changes:50854] nobu:r63061 (trunk): Improve mkmf error message
nobu 2018-04-02 13:44:35 +0900 (Mon, 02 Apr 2018) New Revision: 63061 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63061 Log: Improve mkmf error message * lib/mkmf.rb: Improve the error message when ruby.h is missing, to suggest installing separate packages. [Feature #14656] Modified files: trunk/lib/mkmf.rb Index: lib/mkmf.rb =================================================================== --- lib/mkmf.rb (revision 63060) +++ lib/mkmf.rb (revision 63061) @@ -241,7 +241,12 @@ module MakeMakefile https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L241 $topdir ||= RbConfig::CONFIG["topdir"] $arch_hdrdir = "$(extout)/include/$(arch)" else - abort "mkmf.rb can't find header files for ruby at #{$hdrdir}/ruby.h" + abort <<MESSAGE +mkmf.rb can't find header files for ruby at #{$hdrdir}/ruby.h + +You might have to install separate package for the ruby development +environment, ruby-dev or ruby-devel for example. +MESSAGE end CONFTEST = "conftest".freeze -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/