Skip to content

Instantly share code, notes, and snippets.

@dinhhuydh
Last active October 27, 2020 07:05
Show Gist options
  • Save dinhhuydh/0d44b0560c99968496597c3bd79ce754 to your computer and use it in GitHub Desktop.
Save dinhhuydh/0d44b0560c99968496597c3bd79ce754 to your computer and use it in GitHub Desktop.
Install rgeo on ubuntu
# Install dependency
sudo apt install libgeos-3.6.2 libgeos-dev libgeos++-dev libproj-dev libproj12
# Make link to dependency
sudo find / -name 'libgeos*'
sudo ln -s /usr/lib/x86_64-linux-gnu/libgeos-3.6.2.so /usr/lib/libgeos.so
sudo ln -s /usr/lib/x86_64-linux-gnu/libgeos-3.6.2.so /usr/lib/libgeos.so.1
# Clear cache
rm -rf ~/.bundle/ ~/.gem/bundler/ ~/.gems/cache/bundler/
# Install gem in project folder
rm -rf .bundle/
bundle
# Run in rails console for checking it work
RGeo::Geos.supported?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment