I use pacman install mingw-w64-i686-gdb, run gdb and get error message:
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]</exec_prefix>
ImportError: No module named site</prefix></exec_prefix></prefix>
When I set $PYTHONHOME=/mingw32/lib/python2.7, I get the error message:
ImportError: No module named site
How can I solve this problem, thx
Provide more info. I don't have this error. How you start GDB - from MSYS or from CMD? Does mingw-w64-i686-python2 installed?
start gdb from MSYS2(mingw32_shell.bat),mingw-w64-i686-python2 installed.
I test in 2 pcs,win7 x64 and xp sp3,both problems.
pacman -Sl info in txt file.
I see what is wrong :)
You need update packages to latest. Just run:
pacman -Syu
Regards,
Alexey.
I start gdb in CMD, no error info output, working properly.
but in MSYS2, error again.
Do you restart MSYS2 after packages upgrade? If no then do it.
I have upgrade all packages,and run autorebase.
But still have a problem.
Help,please~
Do you have done weird environment variables set? PYTHONHOME etc?
On Apr 16, 2014 12:48 PM, "owlcn" owllyi@users.sf.net wrote:
Related
Tickets:
#35On CMD it work fine?
not set any PYTHON variables.
On CMD,it work fine.
GNU gdb (GDB) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-w64-mingw32".
Show output of "printenv" command please
Last edit: Alexx83 2014-04-16
I know this issue, in my msys, running gbd from bash or cmd lead to the same result:
In my case, I've set the environment variable to solve the problem:
export PYTHONHOME=/mingw32is enough.I think that it about your environment because I and some other peoples don't have this issue.
Show "printenv" output
export PYTHONHOME=/mingw32
@LiTux,working,thx very much~~~
env int txt file,please check.
Does this issue still happened?
Closing due to age, hopefully fixed by now.
If not, just call
export PYTHONHOME=c:/msys64/mingw64/;c:/msys64/mingw64/share/gdb/pythonbefore callinggdb.Last edit: Johannes Schindelin 2017-07-19