Discussion:
libpython2.7.so missing
Pukitis, Martins
2018-03-02 10:50:31 UTC
Permalink
Hi.

gdb doesn't run due to there is no libpython2.7.so on the system.
$ ./gdb/gdb --version
./gdb/gdb: error while loading shared libraries: libpython2.7.so: cannot open shared object file: No such file or directory

There is only static python library available. Is there a way to build gdb with static python library?

Regards,
Martins
Matthias Klose
2018-03-08 08:02:56 UTC
Permalink
Post by Pukitis, Martins
Hi.
gdb doesn't run due to there is no libpython2.7.so on the system.
$ ./gdb/gdb --version
./gdb/gdb: error while loading shared libraries: libpython2.7.so: cannot open shared object file: No such file or directory
There is only static python library available. Is there a way to build gdb with static python library?
I have never tried to build gdb with a static libpython. However you should be
able to install a system libpython2.7 on your system when it exists, e.g.

sudo apt install libpython2.7

Otoh, modern gdb's really should be built using Python3.

Matthias

Loading...