The extconf.rb in mysql2 gem repeats dir_config('mysql'), without
and with the default path. The third call returns the former results
even with the default path. Since it does not check the results of
the third call, that nil is passed to find_library as a path, and
fails with NoMethodError.
Include default values in
dir_config
cache keysThe extconf.rb in mysql2 gem repeats
dir_config('mysql')
, withoutand with the default path. The third call returns the former results
even with the default path. Since it does not check the results of
the third call, that
nil
is passed tofind_library
as a path, andfails with
NoMethodError
.