User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Not Able To Install RPi.GPIO in XBian

Sun Nov 16, 2014 4:47 pm

I have tried and failed when installing RPi.GPIO in XBian. Changing distros is out of the question since this is the only one that works with my ad-hoc network. Every time I try to install it via pip, it says that it cannot find the file or directory. I have used easy_install and tried reinstalling many packages, but to no avail.

Code: Select all

Downloading/unpacking rpi.gpio
  Running setup.py egg_info for package rpi.gpio
    
Installing collected packages: rpi.gpio
  Running setup.py install for rpi.gpio
    building 'RPi.GPIO' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/py_gpio.c -o build/temp.linux-armv6l-2.7/source/py_gpio.o
    unable to execute gcc: No such file or directory
    error: command 'gcc' failed with exit status 1
    Complete output from command /usr/bin/python -c "import setuptools;__file__='/home/xbian/build/rpi.gpio/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-lwkpXt-record/install-record.txt:
    running install

running build

running build_py

running build_ext

building 'RPi.GPIO' extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/py_gpio.c -o build/temp.linux-armv6l-2.7/source/py_gpio.o

unable to execute gcc: No such file or directory

error: command 'gcc' failed with exit status 1

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/home/xbian/build/rpi.gpio/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-lwkpXt-record/install-record.txt failed with error code 1 in /home/xbian/build/rpi.gpio
Storing complete log in /root/.pip/pip.log
There are 10 types of people: those who understand binary and those who don't.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Not Able To Install RPi.GPIO in XBian

Sun Nov 16, 2014 4:55 pm

Maybe a silly question, but is gcc actually installed?

Gr
Dirk.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Not Able To Install RPi.GPIO in XBian

Sun Nov 16, 2014 6:02 pm

DirkS wrote:Maybe a silly question, but is gcc actually installed?

Gr
Dirk.
I tried installing it and it installed some extra packages (cpp, etc.), but it still gives me the same error.
There are 10 types of people: those who understand binary and those who don't.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Not Able To Install RPi.GPIO in XBian

Sun Nov 16, 2014 10:09 pm

kusti8 wrote:
DirkS wrote:Maybe a silly question, but is gcc actually installed?

Gr
Dirk.
I tried installing it and it installed some extra packages (cpp, etc.), but it still gives me the same error.
What is the output of 'gcc --version'?

Gr.
Dirk.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Not Able To Install RPi.GPIO in XBian

Sun Nov 16, 2014 11:57 pm

DirkS wrote:
kusti8 wrote:
DirkS wrote:Maybe a silly question, but is gcc actually installed?

Gr
Dirk.
I tried installing it and it installed some extra packages (cpp, etc.), but it still gives me the same error.
What is the output of 'gcc --version'?

Gr.
Dirk.
gcc (Debian 4.6.3-14+rpi1) 4.6.3
There are 10 types of people: those who understand binary and those who don't.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Not Able To Install RPi.GPIO in XBian

Mon Nov 17, 2014 12:18 pm

Suggestion from http://forum.xbian.org/thread-2287.html is to install 'libc6-dev'

Gr.
Dirk.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Not Able To Install RPi.GPIO in XBian

Tue Nov 18, 2014 12:29 pm

DirkS wrote:Suggestion from http://forum.xbian.org/thread-2287.html is to install 'libc6-dev'

Gr.
Dirk.
I tried reinstalling that but it did nothing. When I tried to do an upgrade, I noticed that it would not update python2.7. It also would not install Python-dev.
There are 10 types of people: those who understand binary and those who don't.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Not Able To Install RPi.GPIO in XBian

Tue Nov 18, 2014 12:44 pm

kusti8 wrote:
DirkS wrote:Suggestion from http://forum.xbian.org/thread-2287.html is to install 'libc6-dev'

Gr.
Dirk.
I tried reinstalling that but it did nothing. When I tried to do an upgrade, I noticed that it would not update python2.7. It also would not install Python-dev.
Do you get any messages when installing e.g. python-dev?

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Not Able To Install RPi.GPIO in XBian

Tue Nov 18, 2014 12:54 pm

DirkS wrote:
kusti8 wrote:
DirkS wrote:Suggestion from http://forum.xbian.org/thread-2287.html is to install 'libc6-dev'

Gr.
Dirk.
I tried reinstalling that but it did nothing. When I tried to do an upgrade, I noticed that it would not update python2.7. It also would not install Python-dev.
Do you get any messages when installing e.g. python-dev?
Yeah, I get the following:

Code: Select all

Unpacking replacement python2.7-minimal ...
dpkg: error processing /var/cache/apt/archives/python2.7-minimal_2.7.3-6+deb7u2_armhf.deb (--unpack):
 trying to overwrite '/usr/lib/python2.7/lib-dynload/_hashlib.so', which is also in package python2.7 2.7.3-6
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/python2.7-minimal_2.7.3-6+deb7u2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
EDIT: I get the same error when trying to upgrade since it tries to upgrade python2.7-minimal.
There are 10 types of people: those who understand binary and those who don't.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Not Able To Install RPi.GPIO in XBian

Tue Nov 18, 2014 1:05 pm

Try

Code: Select all

sudo apt-get -f install
Gr.
Dirk.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Not Able To Install RPi.GPIO in XBian

Tue Nov 18, 2014 1:17 pm

That does some stuff, but when I try to upgrade or install python-dev, it still gives me the error message and when installing RPi.GPIO, it gives me the same error message. :x
There are 10 types of people: those who understand binary and those who don't.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Not Able To Install RPi.GPIO in XBian

Sun Nov 23, 2014 12:13 pm

Anyone? Please?
There are 10 types of people: those who understand binary and those who don't.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Not Able To Install RPi.GPIO in XBian

Sun Nov 23, 2014 12:21 pm

kusti8 wrote:Anyone? Please?
Have you tried the XBian forum?

Gr.
Dirk.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Not Able To Install RPi.GPIO in XBian

Fri Nov 28, 2014 3:04 pm

I finally got it!!!

What I did was I updated the sources list in /etc/apt/sources.list.d/xbian.list and commented out the old repos (all of them) and then added:

Code: Select all

deb http://apt.xbian.org stable main
to it.
I ran an update and upgrade and this fixed it. I guess the packages in the old repo were too old, so once I changed it to the new repo and updated, it worked.

Thanks for all your help everybody! :D
There are 10 types of people: those who understand binary and those who don't.

Return to “Media centres”