Unable to install GDB with python support -


the thing is, want have python support in gdb installation. when ran

./configure --with-python  

with

make 

in gdb source file directory, however, "make" exited following information:

checking whether use python... yes checking python... (cached) /home/tools/tools/../bin/64//python checking python2.7... no configure: error: python missing or unusable" 

note returned information possible indicates "make" program trying find python intallation in "/home/tools/tools/../bin/64//python" directory, which, not default python installation of account. i've set $path variable make "python" command pointing python installation of own, resides under home directory.

why this? can help? thousand thanks.

ps. there's 1 thing i'm not sure, since want have script automatically run in ".gdbinit" file, seems python script. supporting script equal making gdb able debug python script??

i had same problem. using python 2.7.10 - anaconda 2.3.0 (installed in non-standard location), , gdb-7.11. turns out within gdb-7.11/ there multiple autoconfigs. when inspected gdb-7.11/gdb/config.cache, there error because not find python2.7 library. solution export ldflags, when running top level autoconfig in gdb-7.11 otherwise autoconfig in gdb-7.11/gdb not know find python2.7 library.

e.g.

 make distclean  cd gdb/  make distclean  cd ../  export ldflags=-l/path/to/nonstandard/python/lib/; ./configure --prefix=/path/to/home/directory/gdb-7.11/ --with-python 

note : in situation, best clean both top level , gdb configures. cleaning top level configure will not clean gdb/ configure. gave me grief.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -