User set pythonhome env variable interferes with GDB

Solution Verified - Updated -

Issue

  • 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:
PyUnicodeUCS4_FromEncodedObject

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.