Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

$LD_LIBRARY_PATH not set #39

Closed
cweagans opened this issue Oct 29, 2015 · 5 comments
Closed

$LD_LIBRARY_PATH not set #39

cweagans opened this issue Oct 29, 2015 · 5 comments

Comments

@cweagans
Copy link

Steps to reproduce:

  1. Compile openconnect in the 15.04 container
  2. Run openconnect and get this error:
openconnect: error while loading shared libraries: libopenconnect.so.5: cannot open shared object file: No such file or directory

To fix, I added this to my Dockerfile:

ENV LD_LIBRARY_PATH /usr/local/lib:/usr/lib:/lib

Is there any reason not to make this the default?

@tianon
Copy link
Owner

tianon commented Feb 11, 2016

Hmm, did you try adding RUN ldconfig to your Dockerfile after openconnect is compiled to force the .so cache to be refreshed?

@tianon
Copy link
Owner

tianon commented Feb 11, 2016

(See python for an example of this, which also compiles into /usr/local: https://github.com/docker-library/python/blob/2f33ab315894baa2d881e2a72ab298a5b67c2687/3.5/Dockerfile#L32)

@cweagans
Copy link
Author

I didn't try that, no. I'll give it a go in a few days (pretty busy with other things atm).

@tianon
Copy link
Owner

tianon commented Feb 11, 2016 via email

@tianon
Copy link
Owner

tianon commented Aug 26, 2016

Closing, but feel free to open a new issue with more details if you can reproduce! 👍

@tianon tianon closed this as completed Aug 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants