首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >更改python标头目录以进行配置

更改python标头目录以进行配置
EN

Stack Overflow用户
提问于 2015-01-01 18:16:07
回答 2查看 1.4K关注 0票数 0

我试图使用gnome-weather构建jhbuild,但是运行构建过程会导致以下错误:

代码语言:javascript
复制
checking for python extension module directory... ${exec_prefix}/lib64/python2.7/site-packages
checking for headers required to compile python extensions... ./configure: line 14697: /usr/local/bin/python-config: No such file or directory
not found
configure: error: Python headers not found
*** Error during phase configure of gobject-introspection: ########## Error running ./autogen.sh --prefix /home/pgolinski/jhbuild/install  --disable-static --disable-gtk-doc  *** [7/36]

  [1] Rerun phase configure
  [2] Ignore error and continue to build
  [3] Give up on module
  [4] Start shell
  [5] Reload configuration
  [6] Go to phase "wipe directory and start over"
  [7] Go to phase "clean"
  [8] Go to phase "distclean"

奇怪的是,错误说即使我安装了python-devel,也没有找到Python。我设法在python-config中找到了usr/bin,那么如何更改其目录以进行配置呢?或者问题就在别的地方?(我只想构建gnome-weather)

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2015-01-04 18:06:37

如果有人在未来遇到类似的事情,下面是我终于成功的原因:

PYTHON=/usr/bin/python jhbuild build gnome-weather

票数 1
EN

Stack Overflow用户

发布于 2015-01-04 10:52:22

您可以在这里下载gnome天气的最后一个版本:https://git.gnome.org/browse/gnome-weather/snapshot/gnome-weather-3.14.1.zip,并在解压缩之后使用以下命令编译它:

  • libtoolize
  • 阿卡洛
  • 自动报头
  • 自动添加-缺少--外国
  • ./配置
  • 制造&&制造安装

这个应该能用

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27733325

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档