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

libsparkey.so.0: cannot open shared object file #5

Closed
janpieper opened this issue Sep 3, 2013 · 3 comments
Closed

libsparkey.so.0: cannot open shared object file #5

janpieper opened this issue Sep 3, 2013 · 3 comments

Comments

@janpieper
Copy link

I just installed sparkey (Commit: ec80630) on my local maschine (Ubuntu 12.04) like described in the README file:

$ git clone git@github.com:spotify/sparkey.git
$ cd sparkey
$ autoreconf --install
$ ./configure
$ make
$ make check
$ sudo make install

But if I want to execute sparkey, I get the following error:

$ sparkey
sparkey: error while loading shared libraries: libsparkey.so.0:
  cannot open shared object file: No such file or directory

Can someone please tell me, where sparkey is searching for the file because it is available in /usr/local/lib:

$ ls -la /usr/local/lib/ | grep sparkey
-rw-r--r-- 1 root root  79842 Sep  3 16:02 libsparkey.a
-rwxr-xr-x 1 root root    974 Sep  3 16:02 libsparkey.la
lrwxrwxrwx 1 root root     19 Sep  3 16:02 libsparkey.so -> libsparkey.so.0.0.0
lrwxrwxrwx 1 root root     19 Sep  3 16:02 libsparkey.so.0 -> libsparkey.so.0.0.0
-rwxr-xr-x 1 root root  50900 Sep  3 16:02 libsparkey.so.0.0.0

I also tried to copy/symlink the files to /usr/lib but this didn't work.

@nresare
Copy link
Contributor

nresare commented Sep 3, 2013

After installing new libraries in one of the system library directories you need to run the 'ldconfig' command (as root)

@nresare
Copy link
Contributor

nresare commented Sep 3, 2013

Reproducing your steps on a fairly vanilla Ubuntu 1204 box shows that the missing 'ldconfig' invocation was indeed what was missing.

If you want to experiment with sparkey without manually installing files on your filesystem you can use the included debian packaging. If you have the appropriate tools installed (at least the package devscripts) you should be able to build sparkey packages by running the command 'debuild' in the cloned git repository

@nresare nresare closed this as completed Sep 3, 2013
@janpieper
Copy link
Author

Arghs, you're right. Thanks!

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

2 participants