Last active
October 27, 2020 07:05
-
-
Save dinhhuydh/0d44b0560c99968496597c3bd79ce754 to your computer and use it in GitHub Desktop.
Install rgeo on ubuntu
This file contains hidden or 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
# 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