Project

General

Profile

Actions

Bug #15097

open

Gem install fails on Ruby 2.5.1 with Cygwin (get_dns_server_list undefined)

Added by caspercg (Casper G) over 5 years ago. Updated almost 2 years ago.

Status:
Open
Assignee:
Target version:
-
ruby -v:
ruby 2.5.1p57 (2018-03-29 revision 63029) [i386-cygwin]
[ruby-core:88932]
Tags:

Description

Compiled and installed Ruby 2.5.1 on Cygwin, and now gem install fails with:

ERROR:  While executing gem ... (NameError)
    undefined local variable or method `get_dns_server_list' for Win32::Resolv:Module

While building Ruby I got the following warning:

win32/resolv:
        Could not be configured. It will not be installed.
        Check ext/win32/resolv/mkmf.log for more details.

The error in mkmf.log is:

/ruby-2.5.1/ext/win32/resolv/conftest.c:14: undefined reference to `GetNetworkParams'
collect2: error: ld returned 1 exit status

The mkmf.log is also attached.

Could not figure out how to fix this problem.
Is 2.5.1 not compatible with Cygwin?


Files

mkmf.log (3.96 KB) mkmf.log ext/win32/resolv/mkmf.log caspercg (Casper G), 09/10/2018 03:44 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0