Project

General

Profile

Actions

Feature #14656

closed

Improve mkmf error message when ruby.h is missing

Added by peyremorgan (Morgan Peyre) about 6 years ago. Updated about 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:86421]

Description

Without the development tools, trying to install most gems results in the following error :

mkmf.rb can't find header files for ruby at #{$hdrdir}/ruby.h

Copy-pasting the error into a search engine yields numerous versions of the same solution : installing the ruby development environment (package ruby-dev or ruby-devel on most Linux distributions) solves the issue.

Maybe the error message could hint at this solution? I found the following line further down in the same file that could be added after the current error message :

You have to install development tools first.
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0