Created
May 1, 2012 00:44
-
-
Save quidquid/2564023 to your computer and use it in GitHub Desktop.
RGeo building with Geos & Proj, yet no Geos support?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[lign@ps34163 ~]$ ruby --version | |
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] | |
[lign@ps34163 ~]$ gem install rgeo --verbose --version=0.3.11 -- --with-geos-dir=/home/lign/usr/local --with-proj-dir=/ | |
home/lign/usr/local | |
GET http://rubygems.org/specs.4.8.gz | |
302 Moved Temporarily | |
GET http://production.s3.rubygems.org/specs.4.8.gz | |
200 OK | |
Installing gem rgeo-0.3.11 | |
/home/lign/.gems/gems/rgeo-0.3.11/lib/rgeo/cartesian/analysis.rb | |
/home/lign/.gems/gems/rgeo-0.3.11/lib/rgeo/cartesian/bounding_box.rb | |
/home/lign/.gems/gems/rgeo-0.3.11/lib/rgeo/cartesian/calculations.rb | |
/home/lign/.gems/gems/rgeo-0.3.11/lib/rgeo/cartesian/factory.rb | |
[snip] | |
/home/lign/.gems/gems/rgeo-0.3.11/test/wkrep/tc_wkt_parser.rb | |
/home/lign/.gems/gems/rgeo-0.3.11/History.rdoc | |
/home/lign/.gems/gems/rgeo-0.3.11/README.rdoc | |
/home/lign/.gems/gems/rgeo-0.3.11/Spatial_Programming_With_RGeo.rdoc | |
/home/lign/.gems/gems/rgeo-0.3.11/Version | |
Building native extensions. This could take a while... | |
/usr/bin/ruby1.8 extconf.rb --with-geos-dir=/home/lign/usr/local --with-proj-dir=/home/lign/usr/local | |
checking for geos_c.h... yes | |
checking for initGEOS_r() in geos_c.h... yes | |
checking for GEOSPreparedContains_r() in geos_c.h... yes | |
checking for GEOSPreparedDisjoint_r() in geos_c.h... yes | |
checking for GEOSWKTWriter_setOutputDimension_r() in geos_c.h... yes | |
creating Makefile | |
make | |
cc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_GEOS_C_H -DHAVE_INITGEOS_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSWKTWRITER_SETOUTPUTDIMENSION_R -I/home/lign/usr/local/include -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c main.c | |
cc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_GEOS_C_H -DHAVE_INITGEOS_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSWKTWRITER_SETOUTPUTDIMENSION_R -I/home/lign/usr/local/include -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c geometry.c | |
cc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_GEOS_C_H -DHAVE_INITGEOS_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSWKTWRITER_SETOUTPUTDIMENSION_R -I/home/lign/usr/local/include -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c geometry_collection.c | |
cc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_GEOS_C_H -DHAVE_INITGEOS_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSWKTWRITER_SETOUTPUTDIMENSION_R -I/home/lign/usr/local/include -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c line_string.c | |
cc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_GEOS_C_H -DHAVE_INITGEOS_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSWKTWRITER_SETOUTPUTDIMENSION_R -I/home/lign/usr/local/include -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c factory.c | |
cc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_GEOS_C_H -DHAVE_INITGEOS_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSWKTWRITER_SETOUTPUTDIMENSION_R -I/home/lign/usr/local/include -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c polygon.c | |
cc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_GEOS_C_H -DHAVE_INITGEOS_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSWKTWRITER_SETOUTPUTDIMENSION_R -I/home/lign/usr/local/include -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c point.c | |
cc -shared -o geos_c_impl.so main.o geometry.o geometry_collection.o line_string.o factory.o polygon.o point.o -L. -L/usr/lib -L/home/lign/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lruby1.8 -lgeos -lgeos_c -lpthread -ldl -lcrypt -lm -lc | |
make install | |
/usr/bin/install -c -m 0755 geos_c_impl.so /home/lign/.gems/gems/rgeo-0.3.11/lib/rgeo/geos | |
/usr/bin/ruby1.8 extconf.rb --with-geos-dir=/home/lign/usr/local --with-proj-dir=/home/lign/usr/local | |
checking for proj_api.h... yes | |
checking for pj_init_plus() in proj_api.h... yes | |
creating Makefile | |
make | |
cc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_PROJ_API_H -DHAVE_PJ_INIT_PLUS -I/home/lign/usr/local/include -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c main.c | |
cc -shared -o proj4_c_impl.so main.o -L. -L/usr/lib -L/home/lign/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -lruby1.8 -lproj -lpthread -ldl -lcrypt -lm -lc | |
make install | |
/usr/bin/install -c -m 0755 proj4_c_impl.so /home/lign/.gems/gems/rgeo-0.3.11/lib/rgeo/coord_sys | |
Successfully installed rgeo-0.3.11 | |
1 gem installed | |
Installing ri documentation for rgeo-0.3.11... | |
Installing RDoc documentation for rgeo-0.3.11... | |
[lign@ps34163 ~]$ irb | |
irb(main):001:0> require 'rubygems' | |
=> true | |
irb(main):002:0> require 'rgeo' | |
=> true | |
irb(main):003:0> RGeo::VERSION | |
=> "0.3.11" | |
irb(main):005:0> RGeo::Geos.supported? | |
=> false | |
irb(main):006:0> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment