User set pythonhome env variable interferes with GDB

Solution Verified - Updated -


  • User sets PYTHONHOME in their environment to point at a non standard python location.
    • User needs different libraries than what come with the default python install such as math and physics libraries.
  • User attempts to run gdb, it fails to run and is not obvious as to why.
> gdb hello
gdb: symbol lookup error: gdb: undefined symbol:


  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content