4

Can't run 'gdb ./a.out' or even 'gdb --help' without getting:

$ gdb ./a.out 
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site

Ubuntu Desktop 12.04 LTS is up to date. Works in 'root'. I'd rather not hardcode a $PYTHONHOME location. Any hints appreciated. Baffled.

update: when I set $PYTHONHOME I get:

$ PYTHONHOME=/usr/lib/python2.7 gdb ./a.out 
ImportError: No module named site

update: I do have python-dev installed for native module creation.

Thx

2
  • 2
    Does setting $PYTHONHOME help? You don't have to hard-code it just to try it: PYTHONHOME=/path/to/whatever gdb ./a.out will set this variable just for this command. Commented Sep 21, 2013 at 21:10
  • @DigitalTrauma, the first 3 errors go away when I do that, updating my post... Commented Sep 21, 2013 at 23:17

1 Answer 1

1

Could you be running into this bug? Do you have python and python-libs installed?

Sign up to request clarification or add additional context in comments.

1 Comment

yes, I do have python-libs and python-dev installed for swig stuff. It isn't clear to me the upstream connections to redhat but it may be that bug. thx!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.