0

I am trying to run an application called powerpc-eabi-gdb, however, when I start it, I get the following error:

error while loading shared libraries: libpython2.6.so.1.0: cannot open shared object file: No such file or directory

I tried to install python2.6. apt-get told me to install python-gdbm instead. I tried to install it and it seemed to be installed already.

What should I do now?

7
  • There are newer versions of libpython like 2.7 3.2 and 3.3 available, install those and try again.Also ensure that you are using correct architecture.Maybe installing the dbg symbols could help. Mar 1, 2014 at 11:04
  • I don't think my powerpc-eabi-gdb accepts those newer Pythons, as it hasn't been updated for a long time. I am 100% sure I am using the correct architecture. I will try installing the dbg symbols.
    – gskartwii
    Mar 1, 2014 at 11:05
  • version 2.6 is long ago out of support(and repo).You should give a try to atleast 2.7 Mar 1, 2014 at 11:07
  • I'm installing python2.7 right now, hope it will work.
    – gskartwii
    Mar 1, 2014 at 11:08
  • Let us know if it works or not Mar 1, 2014 at 11:10

3 Answers 3

1

The File you are trying to run is too old, will run only on python2.6 which is not supported anymore.

You have following options

  • Try and get newer supported version
  • Use some old linux which uses python2.6
  • install python2.6 manually, recommended in Virtual machine.
1

Ugly, but working solution is to create symlink libpython2.6.so.1.0 pointing to libpython2.7.so

ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so \
/usr/lib/x86_64-linux-gnu/libpython2.6.so.1.0

Inspired with Android bug report #37847.

1
0

Picking up Aditya Patil's answer, you could grab possibly Python 2.6.9, install it locally and use virtualenv.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .