<i id='kXtjj'><tr id='kXtjj'><dt id='kXtjj'><q id='kXtjj'><span id='kXtjj'><b id='kXtjj'><form id='kXtjj'><ins id='kXtjj'></ins><ul id='kXtjj'></ul><sub id='kXtjj'></sub></form><legend id='kXtjj'></legend><bdo id='kXtjj'><pre id='kXtjj'><center id='kXtjj'></center></pre></bdo></b><th id='kXtjj'></th></span></q></dt></tr></i><div id='kXtjj'><tfoot id='kXtjj'></tfoot><dl id='kXtjj'><fieldset id='kXtjj'></fieldset></dl></div>
        <bdo id='kXtjj'></bdo><ul id='kXtjj'></ul>
    1. <small id='kXtjj'></small><noframes id='kXtjj'>

        <tfoot id='kXtjj'></tfoot>
      1. <legend id='kXtjj'><style id='kXtjj'><dir id='kXtjj'><q id='kXtjj'></q></dir></style></legend>
      2. 无法使用 python 支持安装 GDB

        Unable to install GDB with python support(无法使用 python 支持安装 GDB)

            <bdo id='TQLfH'></bdo><ul id='TQLfH'></ul>

          • <i id='TQLfH'><tr id='TQLfH'><dt id='TQLfH'><q id='TQLfH'><span id='TQLfH'><b id='TQLfH'><form id='TQLfH'><ins id='TQLfH'></ins><ul id='TQLfH'></ul><sub id='TQLfH'></sub></form><legend id='TQLfH'></legend><bdo id='TQLfH'><pre id='TQLfH'><center id='TQLfH'></center></pre></bdo></b><th id='TQLfH'></th></span></q></dt></tr></i><div id='TQLfH'><tfoot id='TQLfH'></tfoot><dl id='TQLfH'><fieldset id='TQLfH'></fieldset></dl></div>
            • <legend id='TQLfH'><style id='TQLfH'><dir id='TQLfH'><q id='TQLfH'></q></dir></style></legend>

              <small id='TQLfH'></small><noframes id='TQLfH'>

                  <tbody id='TQLfH'></tbody>
                <tfoot id='TQLfH'></tfoot>

                1. 本文介绍了无法使用 python 支持安装 GDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  问题是,我想在我的 GDB 安装中支持 python.我跑的时候

                  The thing is, I want to have python support in my GDB installation. When I ran

                  ./configure --with-python 
                  

                  make
                  

                  但是,在 GDB 源文件目录中,make"退出并显示以下信息:

                  in the GDB source file directory, however, the "make" exited with the following information:

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

                  请注意,返回的信息可能表明make"程序正在尝试在/home/tools/tools/../bin/64//python"目录中查找python安装,但这不是我的帐户的默认 python 安装.我已经设置了 $PATH 变量以使python"命令指向我自己的 python 安装,它位于主目录下.

                  Note that the returned information possible indicates that the "make" program is trying to find a python intallation in "/home/tools/tools/../bin/64//python" directory, which, however is not the default python installation of my account. I've set the $PATH variable to make the "python" command pointing to a python installation of my own, which resides under home directory.

                  这是为什么?任何人都可以帮忙吗?一千多谢.

                  Why is this? Can anyone help? A thousand thanks.

                  PS.有一件事我不确定,因为我只想让一些脚本在.gdbinit"文件中自动运行,这看起来像是一些 python 脚本.支持这个脚本就等于让GDB可以调试python脚本吗??

                  PS. There's one thing I'm not sure, since I only want to have some script automatically run in the ".gdbinit" file, which seems like some python script. Does supporting this script equal to making GDB able to debug python script??

                  推荐答案

                  我也遇到了同样的问题.我正在使用 Python 2.7.10 - Anaconda 2.3.0(安装在非标准位置)和 GDB-7.11.事实证明,在 gdb-7.11/ 中有多个自动配置.当我检查 gdb-7.11/gdb/config.cache 时,出现错误,因为它找不到 python2.7 库.所以解决方案是export LDFLAGS,在gdb-7.11中运行顶层自动配置,否则gdb-7.11/中的自动配置gdb 将不知道在哪里可以找到 python2.7 库.

                  I had this same problem. I am using Python 2.7.10 - Anaconda 2.3.0 (installed in a non-standard location), and GDB-7.11. It turns out that within gdb-7.11/ there are multiple autoconfigs. When I inspected gdb-7.11/gdb/config.cache, there was an error because it could not find python2.7 library. So the solution is to export LDFLAGS, when running the top level autoconfig in gdb-7.11 otherwise the autoconfig in gdb-7.11/gdb will not know where to find the python2.7 library.

                  例如

                   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
                  

                  注意:在这种情况下,最好同时清理顶层和 gdb 配置.清理顶级配置不会清理 gdb/configure.这让我有些难过.

                  NOTE : In this situation, it is best to clean both the top level and the gdb configures. Cleaning the top level configure will not clean the gdb/ configure. This gave me some grief.

                  这篇关于无法使用 python 支持安装 GDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Initialize Multiple Numpy Arrays (Multiple Assignment) - Like MATLAB deal()(初始化多个 Numpy 数组(多重赋值) - 像 MATLAB deal())
                  How to extend Python class init(如何扩展 Python 类初始化)
                  What#39;s the difference between dict() and {}?(dict() 和 {} 有什么区别?)
                  What is a wrapper_descriptor, and why is Foo.__init__() one in this case?(什么是 wrapper_descriptor,为什么 Foo.__init__() 在这种情况下是其中之一?)
                  Initialize list with same bool value(使用相同的布尔值初始化列表)
                  setattr with kwargs, pythonic or not?(setattr 与 kwargs,pythonic 与否?)
                  <legend id='C1HV5'><style id='C1HV5'><dir id='C1HV5'><q id='C1HV5'></q></dir></style></legend>
                      <tbody id='C1HV5'></tbody>

                      <small id='C1HV5'></small><noframes id='C1HV5'>

                    1. <tfoot id='C1HV5'></tfoot>

                          <i id='C1HV5'><tr id='C1HV5'><dt id='C1HV5'><q id='C1HV5'><span id='C1HV5'><b id='C1HV5'><form id='C1HV5'><ins id='C1HV5'></ins><ul id='C1HV5'></ul><sub id='C1HV5'></sub></form><legend id='C1HV5'></legend><bdo id='C1HV5'><pre id='C1HV5'><center id='C1HV5'></center></pre></bdo></b><th id='C1HV5'></th></span></q></dt></tr></i><div id='C1HV5'><tfoot id='C1HV5'></tfoot><dl id='C1HV5'><fieldset id='C1HV5'></fieldset></dl></div>
                            <bdo id='C1HV5'></bdo><ul id='C1HV5'></ul>