summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-02 04:44:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-02 04:44:35 +0000
commitf961bad19172b86158cc4c70bd3b2b5a26cd7ea8 (patch)
treeec89903a37f585d630d889687e3f3c660253d1ba /lib
parente6d7389c2b036c59ad26c91d68b66ff4bf4e571b (diff)
Improve mkmf error message
* lib/mkmf.rb: Improve the error message when ruby.h is missing, to suggest installing separate packages. [Feature #14656] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/mkmf.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 773cf9b7e7..63cb6182e2 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -241,7 +241,12 @@ module MakeMakefile
$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