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

[Raspberry]error while loading shared libraries... #94

Open
Franzi98 opened this issue May 27, 2017 · 3 comments
Open

[Raspberry]error while loading shared libraries... #94

Franzi98 opened this issue May 27, 2017 · 3 comments

Comments

@Franzi98
Copy link

Hello, I have this problem:
On my rasp I have installed voicecommand and all the libraries but when I try to launch the script the terminal say me "error while loading shared libraries: libboost_regex.so.1.49.0: cannot open shared object file: No such file or directory"
What I have to do?
PS: Sorry for my english but I'm Italian

@Franzi98
Copy link
Author

Ok, now it works...
sudo apt-get install libboost-regex1.49.0

@malacanang
Copy link

did that really work for you? I feel like I've tried everything, when I originally tried that the library was no longer available.

@fransafu
Copy link

Hello, I had the same problem and looking for the problem come to this solution:

  1. search and identify in the "/usr/lib/x86_64-linux-gnu" folder the "libboost" library you have.

Use the following command:

ls /usr/lib/x86_64-linux-gnu | grep 'libboost_regex'

OUTPUT:

libboost_regex.a
libboost_regex.so
libboost_regex.so.1.58.0

  1. Look at what libreria is requesting in the error, in my case: "voicecommand: error while loading shared libraries: libboost_regex.so.1.54.0: can not open shared object file: No such file or directory". voicecommand request: "libboost_regex.so.1.54.0".

  2. Create link, use the following command:

sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.58.0 /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.54.0

  1. And this command (refresh Shell):

$SHELL

Remember to replace the library you have at the beginning and in the end put the name of the library that requests the program.

This is a patch solution, but it helps to get out of trouble.

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