Python Waf配置错误,由于某种原因找不到pyembed

Python Waf配置错误,由于某种原因找不到pyembed,python,c,configuration,waf,Python,C,Configuration,Waf,我试图使用./waf配置普朗克似然代码,但调用/waf configure CC=gcc python=/opt/local/bin/python cfitsio_lib=/opt/local/lib cfitsio_include=/opt/local/include--lapack_mkl=${MKLROOT}--install_all_deps: Testing pyembed configuration: Could not build a python embedded interpr

我试图使用./waf配置普朗克似然代码,但调用/waf configure CC=gcc python=/opt/local/bin/python cfitsio_lib=/opt/local/lib cfitsio_include=/opt/local/include--lapack_mkl=${MKLROOT}--install_all_deps

Testing pyembed configuration: Could not build a python embedded interpreter
No suitable python distribution found 
Cause: 'The configuration failed'
我不知道如何从这里开始。。。如有任何建议,将不胜感激

下面是
config.log
文件中用于配置尝试的相关部分。我在Mac OS上使用Python2.7,它似乎安装得很好(据我所知)

python配置
/opt/local/bin/python2.7-config
查找program=['/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python-config',python2.7-config',python2.7',python2.7m-config']路径=['/Users/USER/Desktop/montepython_public-3.3/montepython/'、'/opt/local/bin'、'/usr/local/bin'、'/usr/bin'、'/usr/sbin'、'/Library/TeX/texbin'、'/Library/Apple/usr/bin']var='PYTHON_-CONFIG'->['/opt/local/bin/python2.7-CONFIG']
--------------------------------------------------------------------------
请求python配置pyembed'-cflags--libs--ldflags--embed'标志
['/opt/local/bin/python2.7-config','-cflags','-libs','-ldflags','-embed']
错误:用法:/opt/local/bin/python2.7-config[--prefix |--exec prefix |--includes |--libs |--cflags |--ldflags |--help]
找不到
来自/Users/USER/Desktop/code/plc_3.0/plc-3.01:配置失败
--------------------------------------------------------------------------
询问python配置以获取pyembed'-cflags--libs--ldflags'标志
['/opt/local/bin/python2.7-config','-cflags','-libs','-ldflags']
out:-I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7-I/opt/local/Library/Frameworks/python2.7-fno严格别名-fno-common-dynamic-pipe-Os-isysroot/Library/Developer/CommandLineTools/sdk/MacOSX10.15.sdk-DNDEBUG-g-fwrapv-O3-Wall-Wstrict原型
-lpython2.7-棉绒-低密度脂蛋白-框架核心基础
-L/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config-lpython2.7-lintl-ldl-framework-CoreFoundation
未处理的标志'-pipe'
未处理的旗帜'-Wall'
未处理的标志“-Wstrict原型”
对
--------------------------------------------------------------------------
测试pyembed配置
==>
#包括
#ifdef_uucplusplus
外部“C”{
#恩迪夫
void Py_初始化(void);
作废Py_最终确定(作废);
#ifdef_uucplusplus
}
#恩迪夫
int main(int argc,字符**argv)
{
(无效)argc;(无效)argv;
Py_初始化();
Py_Finalize();
返回0;
}
“testprog”中的任务失败,退出状态为1(使用-v运行以显示更多信息)
无法生成python嵌入式解释器
来自/Users/USER/Desktop/code/plc_3.0/plc-3.01:配置失败

链接器未找到libintl。
您确定它已安装在您的系统上吗?如果是,则库必须安装在标准库目录中,否则您必须使用-L“lib_path”

在哪里可以看到此信息?我看不到任何关于libintl库的内容。错误:ld:未找到库-lintl collect2:错误:ld返回1退出状态
python-config
/opt/local/bin/python2.7-config
find program=['/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python-config', 'python2.7-config', 'python-config-2.7', 'python2.7m-config'] paths=['/Users/USER/Desktop/montepython_public-3.3/montepython/', '/opt/local/bin', '/opt/local/sbin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/sbin', '/sbin', '/Library/TeX/texbin', '/Library/Apple/usr/bin'] var='PYTHON_CONFIG' -> ['/opt/local/bin/python2.7-config']
--------------------------------------------------------------------------
Asking python-config for pyembed '--cflags --libs --ldflags --embed' flags
['/opt/local/bin/python2.7-config', '--cflags', '--libs', '--ldflags', '--embed']
err: Usage: /opt/local/bin/python2.7-config [--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--help]

not found
from /Users/USER/Desktop/code/plc_3.0/plc-3.01: The configuration failed
--------------------------------------------------------------------------
Asking python-config for pyembed '--cflags --libs --ldflags' flags
['/opt/local/bin/python2.7-config', '--cflags', '--libs', '--ldflags']
out: -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -fno-strict-aliasing -fno-common -dynamic -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
-lpython2.7 -lintl -ldl -framework CoreFoundation
-L/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -lintl -ldl -framework CoreFoundation

Unhandled flag '-pipe'
Unhandled flag '-Wall'
Unhandled flag '-Wstrict-prototypes'
yes
--------------------------------------------------------------------------
Testing pyembed configuration
==>

#include <Python.h>
#ifdef __cplusplus
extern "C" {
#endif
    void Py_Initialize(void);
    void Py_Finalize(void);
#ifdef __cplusplus
}
#endif
int main(int argc, char **argv)
{
   (void)argc; (void)argv;
   Py_Initialize();
   Py_Finalize();
   return 0;
}

<==
[1/2] Compiling [32mbuild/.conf_check_e02afcfd7f3c9a900cd99ee408c985e3/test.c[0m

['gcc', '-fno-strict-aliasing', '-fno-common', '-dynamic', '-Os', '-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk', '-DNDEBUG', '-g', '-fwrapv', '-O3', '-I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7', '-DPYTHONDIR="/Users/USER/Desktop/code/plc_3.0/plc-3.01/lib/python2.7/site-packages"', '-DPYTHONARCHDIR="/Users/USER/Desktop/code/plc_3.0/plc-3.01/lib/python2.7/site-packages"', '../test.c', '-c', '-o/Users/USER/Desktop/code/plc_3.0/plc-3.01/build/.conf_check_e02afcfd7f3c9a900cd99ee408c985e3/testbuild/test.c.1.o']
[2/2] Linking [33mbuild/.conf_check_e02afcfd7f3c9a900cd99ee408c985e3/testbuild/testprog[0m

['gcc', '-arch', 'x86_64', 'test.c.1.o', '-o/Users/USER/Desktop/code/plc_3.0/plc-3.01/build/.conf_check_e02afcfd7f3c9a900cd99ee408c985e3/testbuild/testprog', '-L/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib', '-L/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config', '-lm', '-ldl', '-lutil', '-lpthread', '-lpython2.7', '-lintl', '-ldl', '-lpython2.7', '-lintl', '-ldl']
err: ld: library not found for -lintl
collect2: error: ld returned 1 exit status

from /Users/USER/Desktop/code/plc_3.0/plc-3.01: Test does not build: Traceback (most recent call last):
  File "/Users/USER/Desktop/code/plc_3.0/plc-3.01/.waf-2.0.17-c5414c9b1eca70e1add79159e16494fe/waflib/Configure.py", line 325, in run_build
    bld.compile()
  File "/Users/USER/Desktop/code/plc_3.0/plc-3.01/.waf-2.0.17-c5414c9b1eca70e1add79159e16494fe/waflib/Build.py", line 176, in compile
    raise Errors.BuildError(self.producer.error)
BuildError: Build failed
 -> task in 'testprog' failed with exit status 1 (run with -v to display more information)

Could not build a python embedded interpreter
from /Users/USER/Desktop/code/plc_3.0/plc-3.01: The configuration failed