Closed johnjohndoe closed 9 years ago
Actually, it's a bug with pkg_config
method in Ruby 2.2.0 lib/mkmf.rb
file.
As quick fix — you can monkey-patch this method with pkg_config
from Ruby 2.1.0: https://github.com/aleksejleonov/gdal-ruby/commit/62f69df917f0769ce2da9fb9e7afb39e39efd61f.
Thanks for reporting this. I noticed this problem on travis but I haven't had time to get a proper fix for it.
It looks like the problem is here: https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1774
It's now checking for success of the process to return the string value, which results in nil
for the result when the config executable doesn't respond to --libs-only-l
(gdal-config
does not).
Changing this line https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1787
to:
libs = get['libs-only-l'] || ''
Seems to fix the problem. I'm open to a PR that fixes this at least until it's fixed upstream.
Thanks for the info!
:+1: Please link the pull request here.
Version 1.0.0 is tested and working with ruby 2.2.1. If you have any problems, just re-open the issue :)
I just updated a project to from Ruby 2.1.2 to 2.2.1. When I try to bundle the project the installation for gdal fails. I use Ubuntu 14.04. Here is my configuration:
Here is the installation error:
Refering to issue #1 I already uninstalled and reinstalled
libgdal1-dev
: