[gdal-dev] Anyone compile the ruby bindings for Ruby 1.9.x?

Ethan Alpert ealpert at digitalglobe.com
Wed Nov 9 16:04:14 EST 2011


It seems in Ruby 1.9.x the way of determining where the ruby.h file has
changed. 

 

I ran into an identical problem trying to build Geos yesterday and now
I've hit it in GDAL.

 

In swig/ruby/RubyMakefile.mk

 

There's the following line;

 

RubyMakefile.mk:RUBY_INCLUDE_DIR := $(shell ruby -rrbconfig -e "puts
Config::CONFIG['archdir']")

 

 

The ruby config now uses the class RbConfig and the attribute rubyhdrdir
is now used in stead of archdir.

 

I changed the line to the following

 

RUBY_INCLUDE_DIR := $(shell ruby -rrbconfig -e "puts
RbConfig::CONFIG['rubyhdrdir']")

 

But it appears that more has changed with the include file structure in
Ruby 1.9.x

 

Has anyone successfully build the ruby bindings?

 

 


This electronic communication and any attachments may contain confidential and proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee 
responsible for delivering this communication to the intended recipient, or if you have received 
this communication in error, please do not print, copy, retransmit, disseminate or 
otherwise use the information. Please indicate to the sender that you have received this 
communication in error, and delete the copy you received. DigitalGlobe reserves the 
right to monitor any electronic communication sent or received by its employees, agents 
or representatives.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4573 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111109/d5c61ff8/attachment.bin


More information about the gdal-dev mailing list