Have trouble installing libphidget22 on Linux for Python

Supporting 2.6 and up
Post Reply
Kyle
Phidgetsian
Posts: 13
Joined: Tue Jun 05, 2018 2:26 pm
Contact:

Have trouble installing libphidget22 on Linux for Python

Post by Kyle »

Hi there,

I'm having trouble installing the libphidget22. It's not my first time install this lib on the Linux machine. However, it's my first time install on a Debian Jessie machine which doesn't have GUI.

I followed the steps here: https://www.phidgets.com/docs/OS_-_Linu ... _Downloads


I always had the problem finding the libraries for general installing. So, I tried Specify a different install folder during compile, the command ran successfully but the program still can't find the module. I tried to add /usr/local/lib to the system-wide library path, but I kept getting permission denied even though I ran as root. Here's the assertion

Code: Select all

administrator@CPR-J100-0048:~$ sudo echo /usr/local/lib >> /etc/ld.so.conf && sudo ldfconfig
-bash: /etc/ld.so.conf: Permission denied
I also tried Debian Install, but can't really run the second step.

Code: Select all

sudo cho 'deb http://www.phidgets.com/debian jessie main' > /etc/apt/sources.list.d/phidgets.list
-bash: /etc/apt/sources.list.d/phidgets.list: Permission denied
Sorry for the messy description, what should I do to successfully install the lib and find the module in python? Thanks greatly for your help!
Kyle
Phidgetsian
Posts: 13
Joined: Tue Jun 05, 2018 2:26 pm
Contact:

Re: Have trouble installing libphidget22 on Linux for Python

Post by Kyle »

I might actually know what's my problem.
I successfully intalled the Linux lib, but I didn't install the Python module. That's why I can't find the module when running my code. Hope this helps people who meet the same problem as mine.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests