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

error while loading shared libraries: libboost_program_options.so #98

Closed
loretoparisi opened this issue Sep 17, 2019 · 9 comments
Closed

Comments

@loretoparisi
Copy link

When using the compiled binary I get this error. The system complains cannot find libboost.

./audiowaveform: error while loading shared libraries: libboost_program_options.so.1.58.0: cannot open shared object file: No such file or directory

The compiled binary libraries were not statically linked?

@chrisn
Copy link
Member

chrisn commented Nov 3, 2019

Are you compiling your self or installing a pre-built binary? The default build does not link statically. You need to have the boost libraries installed to run audiowaveform.

@chrisn
Copy link
Member

chrisn commented Jun 8, 2020

Closing due to inactivity, but please reopen if this is still an issue for you.

@chrisn chrisn closed this as completed Jun 8, 2020
@michelson
Copy link

michelson commented Jun 21, 2022

@chrisn
Copy link
Member

chrisn commented Jun 21, 2022

Thanks 😊 Are you using Ubuntu? The easiest way is to install the PPA https://github.com/bbc/audiowaveform#ubuntu

@michelson
Copy link

Hi @chrisn thanks for your quick reply! I'm using ubuntu from Heroku, but not sure how to add the repo on Heroku with the apt buildpack https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-apt

@chrisn
Copy link
Member

chrisn commented Jun 23, 2022

Those Boost packages you listed don't contain the shared object files that audiowaveform needs, which I guess is the cause of the error you're seeing. audiowaveform needs the non -dev packages.

I found some discussion here about adding PPA keys. Alternatively, these packages contain the right files:

@michelson
Copy link

thank you very much @chrisn, I will take a look on this.

@michelson
Copy link

I've tried the packages you suggest but I still get the same error.

audiowaveform: error while loading shared libraries: libboost_program_options.so.1.58.0: cannot open shared object file: No such file or directory

should I install the 1.58 packages instead the 1.65?

@chrisn
Copy link
Member

chrisn commented Aug 21, 2022

Yes, if it's looking for 1.58, then 1.65 won't work. You can use ldd to see exactly which dependencies it needs, e.g., ldd /path/to/audiowaveform.

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