diff --git a/lib/rgeo/geos.rb b/lib/rgeo/geos.rb index 0ce60b77..d28a5548 100644 --- a/lib/rgeo/geos.rb +++ b/lib/rgeo/geos.rb @@ -26,6 +26,8 @@ module Geos begin require_relative "geos/geos_c_impl" rescue LoadError + # fall back to a system-wide search if the c-extension is stored in different location + # important for systems such as Amazon Linux begin require "geos/geos_c_impl" rescue LoadError