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

ImportError: libgeos_c.so.1: cannot open shared object file: No such file or directory #302

Closed
mharradon opened this issue Jun 1, 2016 · 2 comments

Comments

@mharradon
Copy link

In case anybody runs into this in the future, I had to add /usr/local/lib/ to LD_LIBRARY_PATH on my machine to properly import the library after installation:

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

@jdkloe
Copy link

jdkloe commented Jun 2, 2016

[also for futurte reference]
in general I would consider adding a LD_LIBRARY_PATH definition in your bashrc (I assume that's where you put it) a bad idea. It can have unexpected side effects later and cause very hard to track segfaults/crashes in the future when your system gets updated/upgraded, after which other applications that happen to use the same library try to load an incompatible library version. If you really need to use a custom library version in your application, I would recommend to wrap your application in a small shell (or python) script and put the LD_LIBRARY_PATH definition in the script just before you call your application. That way you can be sure there will be no side effects for other applications.

@DarnelleF
Copy link

for those building from source.

sudo ldconfig

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

3 participants