无法为GalSim获取python包含路径python可执行文件

时间:2015-07-21 23:32:10

标签: ubuntu-14.04 galsim

我正在尝试通过运行SCons在Ubuntu 14.04上安装(更新)我的本地版本的GalSim软件。我已经安装了所有依赖项(boost,TMV等)并且已经使用了很长一段时间了。我使用Python2.7。但是现在,当我从终端运行re.search()时,我收到以下错误:

scons

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/python的输出为python --version

1 个答案:

答案 0 :(得分:1)

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

从失败的安装(未在此处发布)中查看config.log文件后,很明显安装的测试正在通过,但解析这些测试的输出时出现故障。错误消息是

  

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

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