我已经有了 gsl 库,当我尝试在我的 mac(OS X 10.10.3)中安装 pygsl 时,我得到了(我只发布了最后几行)
150 warnings and 10 errors generated.
error: Command "cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DSWIG_COBJECT_TYPES=1 -DDEBUG=1 -DPyGSL_SET_GSL_ERROR_HANDLER=1 -DNUMERIC=0 -UNDEBUG -I/Users/hawc/hawc_software/externals/2.01.01/External/gsl/1.15/include -IInclude -I. -I/Library/Python/2.7/site-packages/numpy-1.12.0.dev0_1fc180b-py2.7-macosx-10.10-intel.egg/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c testing/src/sf/sfmodule_testing.c -o build/temp.macosx-10.10-intel-2.7/testing/src/sf/sfmodule_testing.o"
failed with exit status 1
指示和错误的行是
testing/src/sf/sf__data.c:1322:50: error: use of undeclared identifier 'gsl_sf_mathieu_a_e'
static void * sf_mathieu_a_e_data [] = {(void *) gsl_sf_mathieu_a_e, (void *) gsl_sf_mathieu_a_e};
^
testing/src/sf/sf__data.c:1322:79: error: use of undeclared identifier 'gsl_sf_mathieu_a_e'
static void * sf_mathieu_a_e_data [] = {(void *) gsl_sf_mathieu_a_e, (void *) gsl_sf_mathieu_a_e};
^
testing/src/sf/sf__data.c:1328:50: error: use of undeclared identifier 'gsl_sf_mathieu_b_e'
static void * sf_mathieu_b_e_data [] = {(void *) gsl_sf_mathieu_b_e, (void *) gsl_sf_mathieu_b_e};
^
testing/src/sf/sf__data.c:1328:79: error: use of undeclared identifier 'gsl_sf_mathieu_b_e'
static void * sf_mathieu_b_e_data [] = {(void *) gsl_sf_mathieu_b_e, (void *) gsl_sf_mathieu_b_e};
^
testing/src/sf/sf__data.c:1343:51: error: use of undeclared identifier 'gsl_sf_mathieu_se_e'
static void * sf_mathieu_se_e_data [] = {(void *) gsl_sf_mathieu_se_e, (void *) gsl_sf_mathieu_se_e};
^
testing/src/sf/sf__data.c:1343:81: error: use of undeclared identifier 'gsl_sf_mathieu_se_e'
static void * sf_mathieu_se_e_data [] = {(void *) gsl_sf_mathieu_se_e, (void *) gsl_sf_mathieu_se_e};
^
testing/src/sf/sf__data.c:1349:51: error: use of undeclared identifier 'gsl_sf_mathieu_Mc_e'
static void * sf_mathieu_Mc_e_data [] = {(void *) gsl_sf_mathieu_Mc_e, (void *) gsl_sf_mathieu_Mc_e};
^
testing/src/sf/sf__data.c:1349:81: error: use of undeclared identifier 'gsl_sf_mathieu_Mc_e'
static void * sf_mathieu_Mc_e_data [] = {(void *) gsl_sf_mathieu_Mc_e, (void *) gsl_sf_mathieu_Mc_e};
^
testing/src/sf/sf__data.c:1355:51: error: use of undeclared identifier 'gsl_sf_mathieu_Ms_e'
static void * sf_mathieu_Ms_e_data [] = {(void *) gsl_sf_mathieu_Ms_e, (void *) gsl_sf_mathieu_Ms_e};
^
testing/src/sf/sf__data.c:1355:81: error: use of undeclared identifier 'gsl_sf_mathieu_Ms_e'
static void * sf_mathieu_Ms_e_data [] = {(void *) gsl_sf_mathieu_Ms_e, (void *) gsl_sf_mathieu_Ms_e};
我检查了有关“cc”问题的另一个答案,他们建议使用
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
接着
sudo -E python setup.py install
但不工作
我拥有的cc版本是:
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)