libphidget22.so.0.0.0: cannot open shared object file

Supporting 2.7 and 3.2+
Post Reply
jkielkopf
Fresh meat
Posts: 1
Joined: Tue Feb 01, 2011 6:14 pm
Contact:

libphidget22.so.0.0.0: cannot open shared object file

Post by jkielkopf »

This error appeared after a fresh installation of Python 3.6 from source on OpenSuse, followed by an installation of the libphidget22 library from source and building the modules for Python.

The usual reason would be that the library was not installed correctly, or perhaps something was amiss in Python's installation, but that was not the case here. This error is mentioned frequently in on-line forums but rarely a resolution.

In this instance, the cause was that Python was searching to load a dynamic library and using the environment variable LD_LIBRARY_PATH. That variable did not by default include /usr/local/lib or /usr/local/lib64.

Check the variable with

echo $LD_LIBRARY_PATH

and if it does not show where the libphidget22 libraries are located, add it with

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

to have both in the search path. This lines can be made systemwide by including them in the system profile.local too.
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests