簡體   English   中英

在osx中​​安裝pygsl時出錯'cc'退出狀態1

[英]error 'cc' exit status 1 when install pygsl in osx

我已經有了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)

這可能是你的問題的一步 - 但在我的Mac上我很容易通過以下方法安裝pygsl

brew install gsl
sudo easy_install pygsl

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM