Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geos not supported #333

Closed
ltsstar opened this issue Oct 4, 2022 · 3 comments
Closed

Geos not supported #333

ltsstar opened this issue Oct 4, 2022 · 3 comments

Comments

@ltsstar
Copy link

ltsstar commented Oct 4, 2022

Github Issues are used to track bugs and feature requests.
Ask general usage questions on Stack Overflow.

Steps to reproduce

Tried to install rgeo on Fedora 36.
I have installed geos by running yum install geos geos-devel
Afterwards I installed rgeo gem install rgeo and as this was not working uninstalled it again and tried to specify the geos location gem install rgeo --verbose -- --with-geos-dir=/usr/lib64

`HEAD https://index.rubygems.org/
200 OK
GET https://index.rubygems.org/info/rgeo
200 OK
Downloading gem rgeo-2.4.0.gem
GET https://index.rubygems.org/gems/rgeo-2.4.0.gem
200 OK
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/LICENSE.txt
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/README.md
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/analysis.c
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/analysis.h
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/coordinates.c
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/coordinates.h
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/errors.c
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/errors.h
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/extconf.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/factory.c
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/factory.h
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/geometry.c
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/geometry.h
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/geometry_collection.c
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/geometry_collection.h
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/globals.c
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/globals.h
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/line_string.c
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/line_string.h
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/main.c
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/point.c
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/point.h
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/polygon.c
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/polygon.h
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/preface.h
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/cartesian.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/cartesian/analysis.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/cartesian/bounding_box.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/cartesian/calculations.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/cartesian/factory.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/cartesian/feature_classes.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/cartesian/feature_methods.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/cartesian/interface.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/coord_sys.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/coord_sys/cs/entities.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/coord_sys/cs/factories.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/coord_sys/cs/wkt_parser.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/coord_sys/srs_database/entry.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/coord_sys/srs_database/sr_org.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/coord_sys/srs_database/url_reader.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/error.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/curve.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/factory.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/factory_generator.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/geometry.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/geometry_collection.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/line.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/line_string.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/linear_ring.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/multi_curve.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/multi_line_string.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/multi_point.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/multi_polygon.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/multi_surface.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/point.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/polygon.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/surface.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/feature/types.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geographic.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geographic/factory.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geographic/interface.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geographic/proj4_projector.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geographic/projected_feature_classes.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geographic/projected_feature_methods.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geographic/projected_window.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geographic/simple_mercator_projector.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geographic/spherical_feature_classes.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geographic/spherical_feature_methods.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geographic/spherical_math.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geos.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geos/capi_factory.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geos/capi_feature_classes.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geos/ffi_factory.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geos/ffi_feature_classes.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geos/ffi_feature_methods.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geos/interface.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geos/utils.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geos/zm_factory.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geos/zm_feature_classes.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geos/zm_feature_methods.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/impl_helper.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/impl_helper/basic_geometry_collection_methods.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/impl_helper/basic_geometry_methods.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/impl_helper/basic_line_string_methods.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/impl_helper/basic_point_methods.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/impl_helper/basic_polygon_methods.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/impl_helper/math.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/impl_helper/utils.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/version.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/wkrep.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/wkrep/wkb_generator.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/wkrep/wkb_parser.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/wkrep/wkt_generator.rb
/home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/wkrep/wkt_parser.rb
Building native extensions with: '--with-geos-dir=/usr/lib64'
This could take a while...
current directory: /home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl
["/usr/bin/ruby", "-I", "/usr/share/rubygems", "-r", "./siteconf20221004-102489-b8m4rg.rb", "extconf.rb", "--with-geos-dir=/usr/lib64"]
checking for geos-config... yes
Using GEOS compile configuration from /usr/bin/geos-config
checking for geos_c.h... yes
checking for GEOSSetSRID_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 GEOSUnaryUnion_r() in geos_c.h... yes
checking for GEOSCoordSeq_isCCW_r() in geos_c.h... yes
checking for rb_memhash() in ruby.h... yes
checking for rb_gc_mark_movable() in ruby.h... yes
creating Makefile
current directory: /home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl
["make", "DESTDIR=", "clean"]
rm -f
rm -fr geos_c_impl.so false .o .bak mkmf.log ..time
current directory: /home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl
["make", "DESTDIR="]
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/usr/include -DHAVE_GEOS_C_H -DHAVE_GEOSSETSRID_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSUNARYUNION_R -DHAVE_GEOSCOORDSEQ_ISCCW_R -DHAVE_RB_MEMHASH -DHAVE_RB_GC_MARK_MOVABLE -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -m64 -o analysis.o -c analysis.c
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/usr/include -DHAVE_GEOS_C_H -DHAVE_GEOSSETSRID_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSUNARYUNION_R -DHAVE_GEOSCOORDSEQ_ISCCW_R -DHAVE_RB_MEMHASH -DHAVE_RB_GC_MARK_MOVABLE -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -m64 -o coordinates.o -c coordinates.c
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/usr/include -DHAVE_GEOS_C_H -DHAVE_GEOSSETSRID_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSUNARYUNION_R -DHAVE_GEOSCOORDSEQ_ISCCW_R -DHAVE_RB_MEMHASH -DHAVE_RB_GC_MARK_MOVABLE -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -m64 -o errors.o -c errors.c
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/usr/include -DHAVE_GEOS_C_H -DHAVE_GEOSSETSRID_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSUNARYUNION_R -DHAVE_GEOSCOORDSEQ_ISCCW_R -DHAVE_RB_MEMHASH -DHAVE_RB_GC_MARK_MOVABLE -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -m64 -o factory.o -c factory.c
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/usr/include -DHAVE_GEOS_C_H -DHAVE_GEOSSETSRID_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSUNARYUNION_R -DHAVE_GEOSCOORDSEQ_ISCCW_R -DHAVE_RB_MEMHASH -DHAVE_RB_GC_MARK_MOVABLE -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -m64 -o geometry.o -c geometry.c
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/usr/include -DHAVE_GEOS_C_H -DHAVE_GEOSSETSRID_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSUNARYUNION_R -DHAVE_GEOSCOORDSEQ_ISCCW_R -DHAVE_RB_MEMHASH -DHAVE_RB_GC_MARK_MOVABLE -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -m64 -o geometry_collection.o -c geometry_collection.c
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/usr/include -DHAVE_GEOS_C_H -DHAVE_GEOSSETSRID_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSUNARYUNION_R -DHAVE_GEOSCOORDSEQ_ISCCW_R -DHAVE_RB_MEMHASH -DHAVE_RB_GC_MARK_MOVABLE -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -m64 -o globals.o -c globals.c
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/usr/include -DHAVE_GEOS_C_H -DHAVE_GEOSSETSRID_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSUNARYUNION_R -DHAVE_GEOSCOORDSEQ_ISCCW_R -DHAVE_RB_MEMHASH -DHAVE_RB_GC_MARK_MOVABLE -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -m64 -o line_string.o -c line_string.c
line_string.c: In function ‘method_line_string_project_point’:
line_string.c:254:21: warning: variable ‘factory_data’ set but not used [-Wunused-but-set-variable]
254 | RGeo_FactoryData
factory_data;
| ^~~~~~~~~~~~
line_string.c: In function ‘method_line_string_interpolate_point’:
line_string.c:278:21: warning: variable ‘factory_data’ set but not used [-Wunused-but-set-variable]
278 | RGeo_FactoryData* factory_data;
| ^~~~~~~~~~~~
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/usr/include -DHAVE_GEOS_C_H -DHAVE_GEOSSETSRID_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSUNARYUNION_R -DHAVE_GEOSCOORDSEQ_ISCCW_R -DHAVE_RB_MEMHASH -DHAVE_RB_GC_MARK_MOVABLE -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -m64 -o main.o -c main.c
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/usr/include -DHAVE_GEOS_C_H -DHAVE_GEOSSETSRID_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSUNARYUNION_R -DHAVE_GEOSCOORDSEQ_ISCCW_R -DHAVE_RB_MEMHASH -DHAVE_RB_GC_MARK_MOVABLE -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -m64 -o point.o -c point.c
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/usr/include -DHAVE_GEOS_C_H -DHAVE_GEOSSETSRID_R -DHAVE_GEOSPREPAREDCONTAINS_R -DHAVE_GEOSPREPAREDDISJOINT_R -DHAVE_GEOSUNARYUNION_R -DHAVE_GEOSCOORDSEQ_ISCCW_R -DHAVE_RB_MEMHASH -DHAVE_RB_GC_MARK_MOVABLE -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -m64 -o polygon.o -c polygon.c
polygon.c: In function ‘method_polygon_interior_rings’:
polygon.c:211:9: warning: unused variable ‘linear_ring_class’ [-Wunused-variable]
211 | VALUE linear_ring_class;
| ^~~~~~~~~~~~~~~~~
rm -f geos_c_impl.so
gcc -shared -o geos_c_impl.so analysis.o coordinates.o errors.o factory.o geometry.o geometry_collection.o globals.o line_string.o main.o point.o polygon.o -L. -L/usr/lib64 -L. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -m64 -lruby -L/usr/lib64 -lgeos_c -lm -lc
current directory: /home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl
["make", "DESTDIR=", "install"]
/usr/bin/mkdir -p . ./.gem.20221004-102489-4qsril/rgeo/geos
exit > .sitearchdir.-.rgeo.-.geos.time
/usr/bin/install -c -m 0755 geos_c_impl.so ./.gem.20221004-102489-4qsril/rgeo/geos
current directory: /home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl
/usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20221004-102489-b8m4rg.rb extconf.rb --with-geos-dir=/usr/lib64
current directory: /home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl
make DESTDIR= clean
current directory: /home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl
make DESTDIR=
current directory: /home/username/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl
make DESTDIR= install
Successfully installed rgeo-2.4.0
Parsing documentation for rgeo-2.4.0
Parsing sources...
0% [ 1/107] ext/geos_c_impl/Makefile
1% [ 2/107] ext/geos_c_impl/analysis.c
2% [ 3/107] ext/geos_c_impl/analysis.h
3% [ 4/107] ext/geos_c_impl/analysis.o
4% [ 5/107] ext/geos_c_impl/coordinates.c
5% [ 6/107] ext/geos_c_impl/coordinates.h
6% [ 7/107] ext/geos_c_impl/coordinates.o
7% [ 8/107] ext/geos_c_impl/errors.c
8% [ 9/107] ext/geos_c_impl/errors.h
9% [10/107] ext/geos_c_impl/errors.o
10% [11/107] ext/geos_c_impl/extconf.rb
11% [12/107] ext/geos_c_impl/factory.c
12% [13/107] ext/geos_c_impl/factory.h
13% [14/107] ext/geos_c_impl/factory.o
14% [15/107] ext/geos_c_impl/geometry.c
14% [16/107] ext/geos_c_impl/geometry.h
15% [17/107] ext/geos_c_impl/geometry.o
16% [18/107] ext/geos_c_impl/geometry_collection.c
17% [19/107] ext/geos_c_impl/geometry_collection.h
18% [20/107] ext/geos_c_impl/geometry_collection.o
19% [21/107] ext/geos_c_impl/geos_c_impl.so
20% [22/107] ext/geos_c_impl/globals.c
21% [23/107] ext/geos_c_impl/globals.h
22% [24/107] ext/geos_c_impl/globals.o
23% [25/107] ext/geos_c_impl/line_string.c
24% [26/107] ext/geos_c_impl/line_string.h
25% [27/107] ext/geos_c_impl/line_string.o
26% [28/107] ext/geos_c_impl/main.c
27% [29/107] ext/geos_c_impl/main.o
28% [30/107] ext/geos_c_impl/point.c
28% [31/107] ext/geos_c_impl/point.h
29% [32/107] ext/geos_c_impl/point.o
30% [33/107] ext/geos_c_impl/polygon.c
31% [34/107] ext/geos_c_impl/polygon.h
32% [35/107] ext/geos_c_impl/polygon.o
33% [36/107] ext/geos_c_impl/preface.h
34% [37/107] lib/rgeo.rb
35% [38/107] lib/rgeo/cartesian.rb
36% [39/107] lib/rgeo/cartesian/analysis.rb
37% [40/107] lib/rgeo/cartesian/bounding_box.rb
38% [41/107] lib/rgeo/cartesian/calculations.rb
39% [42/107] lib/rgeo/cartesian/factory.rb
40% [43/107] lib/rgeo/cartesian/feature_classes.rb
41% [44/107] lib/rgeo/cartesian/feature_methods.rb
42% [45/107] lib/rgeo/cartesian/interface.rb
42% [46/107] lib/rgeo/coord_sys.rb
43% [47/107] lib/rgeo/coord_sys/cs/entities.rb
44% [48/107] lib/rgeo/coord_sys/cs/factories.rb
45% [49/107] lib/rgeo/coord_sys/cs/wkt_parser.rb
46% [50/107] lib/rgeo/coord_sys/srs_database/entry.rb
47% [51/107] lib/rgeo/coord_sys/srs_database/sr_org.rb
48% [52/107] lib/rgeo/coord_sys/srs_database/url_reader.rb
49% [53/107] lib/rgeo/error.rb
50% [54/107] lib/rgeo/feature.rb
51% [55/107] lib/rgeo/feature/curve.rb
52% [56/107] lib/rgeo/feature/factory.rb
53% [57/107] lib/rgeo/feature/factory_generator.rb
54% [58/107] lib/rgeo/feature/geometry.rb
55% [59/107] lib/rgeo/feature/geometry_collection.rb
56% [60/107] lib/rgeo/feature/line.rb
57% [61/107] lib/rgeo/feature/line_string.rb
57% [62/107] lib/rgeo/feature/linear_ring.rb
58% [63/107] lib/rgeo/feature/multi_curve.rb
59% [64/107] lib/rgeo/feature/multi_line_string.rb
60% [65/107] lib/rgeo/feature/multi_point.rb
61% [66/107] lib/rgeo/feature/multi_polygon.rb
62% [67/107] lib/rgeo/feature/multi_surface.rb
63% [68/107] lib/rgeo/feature/point.rb
64% [69/107] lib/rgeo/feature/polygon.rb
65% [70/107] lib/rgeo/feature/surface.rb
66% [71/107] lib/rgeo/feature/types.rb
67% [72/107] lib/rgeo/geographic.rb
68% [73/107] lib/rgeo/geographic/factory.rb
69% [74/107] lib/rgeo/geographic/interface.rb
70% [75/107] lib/rgeo/geographic/proj4_projector.rb
71% [76/107] lib/rgeo/geographic/projected_feature_classes.rb
71% [77/107] lib/rgeo/geographic/projected_feature_methods.rb
72% [78/107] lib/rgeo/geographic/projected_window.rb
73% [79/107] lib/rgeo/geographic/simple_mercator_projector.rb
74% [80/107] lib/rgeo/geographic/spherical_feature_classes.rb
75% [81/107] lib/rgeo/geographic/spherical_feature_methods.rb
76% [82/107] lib/rgeo/geographic/spherical_math.rb
77% [83/107] lib/rgeo/geos.rb
78% [84/107] lib/rgeo/geos/capi_factory.rb
79% [85/107] lib/rgeo/geos/capi_feature_classes.rb
80% [86/107] lib/rgeo/geos/ffi_factory.rb
81% [87/107] lib/rgeo/geos/ffi_feature_classes.rb
82% [88/107] lib/rgeo/geos/ffi_feature_methods.rb
83% [89/107] lib/rgeo/geos/interface.rb
84% [90/107] lib/rgeo/geos/utils.rb
85% [91/107] lib/rgeo/geos/zm_factory.rb
85% [92/107] lib/rgeo/geos/zm_feature_classes.rb
86% [93/107] lib/rgeo/geos/zm_feature_methods.rb
87% [94/107] lib/rgeo/impl_helper.rb
88% [95/107] lib/rgeo/impl_helper/basic_geometry_collection_methods.rb
89% [96/107] lib/rgeo/impl_helper/basic_geometry_methods.rb
90% [97/107] lib/rgeo/impl_helper/basic_line_string_methods.rb
91% [98/107] lib/rgeo/impl_helper/basic_point_methods.rb
92% [99/107] lib/rgeo/impl_helper/basic_polygon_methods.rb
93% [100/107] lib/rgeo/impl_helper/math.rb
94% [101/107] lib/rgeo/impl_helper/utils.rb
95% [102/107] lib/rgeo/version.rb
96% [103/107] lib/rgeo/wkrep.rb
97% [104/107] lib/rgeo/wkrep/wkb_generator.rb
98% [105/107] lib/rgeo/wkrep/wkb_parser.rb
99% [106/107] lib/rgeo/wkrep/wkt_generator.rb
100% [107/107] lib/rgeo/wkrep/wkt_parser.rb

Installing ri documentation for rgeo-2.4.0
Done installing documentation for rgeo after 1 seconds
1 gem installed
`

checking for geos shows:

[username@fedora Documents]$ irb
irb(main):001:0> require 'rgeo'
=> true
irb(main):002:0> RGeo::Geos.supported?
=> false

Expected behavior

Geos is supported.

Actual behavior

Geos is not supported.

System configuration

Ruby version: 3.1.2

OS: Fedora 36

@keithdoggett
Copy link
Member

That's strange. The output you gave indicates that it compiled without any errors.

What happens if you run the following

require 'rgeo'
require 'rgeo/geos/geos_c_impl'

It will probably raise a LoadError, but will hopefully give some more details on why it can't load it.

@ltsstar
Copy link
Author

ltsstar commented Oct 4, 2022

We found the solution: rgeo is looking for the geos library in the folder it is executed instead of the ext folder. Thus, we had to put a symlink:

ln -s ~/.local/share/gem/ruby/gems/rgeo-2.4.0/ext/geos_c_impl/geos_c_impl.so ~/.local/share/gem/ruby/gems/rgeo-2.4.0/lib/rgeo/geos/geos_c_impl.so

@keithdoggett
Copy link
Member

@ltsstar thanks for posting that. I'll close for now since it seems system specific and hopefully if this comes up again people can use it as a reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants