首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法获得python包含用于GalSim的路径python可执行文件

无法获得python包含用于GalSim的路径python可执行文件
EN

Stack Overflow用户
提问于 2015-07-21 23:32:10
回答 1查看 181关注 0票数 3

我试图通过运行GalSim在Ubuntu14.04上安装(更新)本地版本的SCons软件。我有所有的依赖项(boost,TMV等)安装并使用了很长一段时间了。我用Python2.7。但是现在,当我从终端运行scons时,我会得到以下错误:

代码语言:javascript
复制
scons: Reading SConscript files ...
SCons is version 2.3.0 using python version 2.7.6
Python is from /usr/include/python
Using the following (non-default) scons options:
PYPREFIX = /usr/lib/python2.7/dist-packages/
TMV_DIR = /media/arunkannawadi/Acads_CMU/Cosmology/WFIRST_Project/tmv0.72/
These can be edited directly in the file gs_scons.conf.
Type scons -h for a full list of available options.
Using python =  /usr/bin/python
Using compiler: /usr/bin/g++
compiler version: 4.8.2
Determined that a good number of jobs = 4
Checking for C++ header file fftw3.h... yes
Checking for correct FFTW linkage... yes
Checking for boost header files... yes
Boost version is 1.54.0
Checking for C++ header file TMV.h... yes
TMV version is 0.72
Using TMV_LINK file: /media/arunkannawadi/Acads_CMU/Cosmology   /WFIRST_Project/tmv0.72/share/tmv-link
-ltmv -lblas -lgfortran -lpthread -fopenmp
Checking for correct TMV linkage... (this may take a little while)
Checking for correct TMV linkage... yes
Checking if we can build against Python...
Unable to get python include path python executable: 
/usr/bin/python

Please fix the above error(s) and rerun scons.
Note: you may want to look through the file INSTALL.md for advice.
Also, if you are having trouble, please check the INSTALL FAQ at
https://github.com/GalSim-developers/GalSim/wiki/Installation%20FAQ

which python输出为/usr/bin/pythonpython --version输出为Python 2.7.6

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-07-22 13:32:23

经过进一步研究,这个问题并不是关于GalSim本身,而是指出了一个奇怪的后来的Ubuntu版本。

在检查了失败安装的config.log文件(不在这里发布)之后,很明显,安装的测试是通过的,但是在解析这些测试的输出时失败了。错误信息是

sh: 1:语法错误:错误fd号

搜索给我指出了关于错误消息的另一个问题:sh: Syntax error: Bad fd number,它指出在Ubuntu11.x / bin /sh中链接到/bin/dash,而不是bin bash。因此,解决GalSim安装这个明显问题的方法是使用页面上的解决方案将/bin/sh正确链接到bash。

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

https://stackoverflow.com/questions/31551413

复制
相关文章

相似问题

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