错误:“GCC ...”,退出状态1失败,当我在Ubuntu 12.04

问题描述:

安装pygsl当我运行“蟒蛇setup.py建”,误差低于和GSL的版本是gsl_1.16 pygsl版本是pygsl-2.3.0错误:“GCC ...”,退出状态1失败,当我在Ubuntu 12.04

testing/src/sf/sf__data.c: At top level: 

testing/src/sf/sf__data.c:3010:53: error: ‘gsl_sf_mathieu_a_e’ undeclared here (not in a function) 

testing/src/sf/sf__data.c:3024:53: error: ‘gsl_sf_mathieu_b_e’ undeclared here (not in a function) 

testing/src/sf/sf__data.c:3024:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3024:1: error: (near initialization for ‘gsl_sf_mathieu_b_e_data[0]’) 

testing/src/sf/sf__data.c:3024:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3024:1: error: (near initialization for ‘gsl_sf_mathieu_b_e_data[1]’) 

testing/src/sf/sf__data.c:3038:54: error: ‘gsl_sf_mathieu_ce_e’ undeclared here (not in a function) 

testing/src/sf/sf__data.c:3038:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3038:1: error: (near initialization for ‘gsl_sf_mathieu_ce_e_data[0]’) 

testing/src/sf/sf__data.c:3038:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3038:1: error: (near initialization for ‘gsl_sf_mathieu_ce_e_data[1]’) 

testing/src/sf/sf__data.c:3052:54: error: ‘gsl_sf_mathieu_se_e’ undeclared here (not in a function) 

testing/src/sf/sf__data.c:3052:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3052:1: error: (near initialization for ‘gsl_sf_mathieu_se_e_data[0]’) 

testing/src/sf/sf__data.c:3052:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3052:1: error: (near initialization for ‘gsl_sf_mathieu_se_e_data[1]’) 

testing/src/sf/sf__data.c:3066:54: error: ‘gsl_sf_mathieu_Mc_e’ undeclared here (not in a function) 

testing/src/sf/sf__data.c:3066:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3066:1: error: (near initialization for ‘gsl_sf_mathieu_Mc_e_data[0]’) 

testing/src/sf/sf__data.c:3066:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3066:1: error: (near initialization for ‘gsl_sf_mathieu_Mc_e_data[1]’) 

testing/src/sf/sf__data.c:3080:54: error: ‘gsl_sf_mathieu_Ms_e’ undeclared here (not in a function) 

testing/src/sf/sf__data.c:3080:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3080:1: error: (near initialization for ‘gsl_sf_mathieu_Ms_e_data[0]’) 

testing/src/sf/sf__data.c:3080:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3080:1: error: (near initialization for ‘gsl_sf_mathieu_Ms_e_data[1]’) 

testing/src/sf/sfmodule_testing.c: In function ‘PyGSL_sf_ufunc_qi_dd_D’: 

testing/src/sf/sfmodule_testing.c:124:6: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] 

testing/src/sf/sfmodule_testing.c: In function ‘PyGSL_sf_ufunc_qi_dd_D_as_ff_F’: 

testing/src/sf/sfmodule_testing.c:141:59: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] 

testing/src/sf/sfmodule_testing.c: In function ‘PyGSL_sf_ufunc_qi_D_dd’: 

testing/src/sf/sfmodule_testing.c:162:6: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] 

testing/src/sf/sfmodule_testing.c: In function ‘PyGSL_sf_ufunc_qi_D_dd_as_F_ff’: 

testing/src/sf/sfmodule_testing.c:184:76: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] 

testing/src/sf/sfmodule_testing.c: In function ‘_pygsl_sf_long_to_unsigned_int’: 

testing/src/sf/sfmodule_testing.c:67:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘long unsigned int’ [-Wformat] 

testing/src/sf/sfmodule_testing.c:67:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 7 has type ‘long unsigned int’ [-Wformat] 

testing/src/sf/sfmodule_testing.c:68:2: warning: too many arguments for format [-Wformat-extra-args] 

testing/src/sf/sfmodule_testing.c:79:3: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘unsigned int’ [-Wformat] 
In file included from testing/src/sf/sfmodule_testing.c:104:0: 

testing/src/sf/sf__data.c: At top level: 

testing/src/sf/sf__data.c:3010:53: error: ‘gsl_sf_mathieu_a_e’ undeclared here (not in a function) 

testing/src/sf/sf__data.c:3024:53: error: ‘gsl_sf_mathieu_b_e’ undeclared here (not in a function) 

testing/src/sf/sf__data.c:3024:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3024:1: error: (near initialization for ‘gsl_sf_mathieu_b_e_data[0]’) 

testing/src/sf/sf__data.c:3024:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3024:1: error: (near initialization for ‘gsl_sf_mathieu_b_e_data[1]’) 

testing/src/sf/sf__data.c:3038:54: error: ‘gsl_sf_mathieu_ce_e’ undeclared here (not in a function) 

testing/src/sf/sf__data.c:3038:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3038:1: error: (near initialization for ‘gsl_sf_mathieu_ce_e_data[0]’) 

testing/src/sf/sf__data.c:3038:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3038:1: error: (near initialization for ‘gsl_sf_mathieu_ce_e_data[1]’) 

testing/src/sf/sf__data.c:3052:54: error: ‘gsl_sf_mathieu_se_e’ undeclared here (not in a function) 

testing/src/sf/sf__data.c:3052:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3052:1: error: (near initialization for ‘gsl_sf_mathieu_se_e_data[0]’) 

testing/src/sf/sf__data.c:3052:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3052:1: error: (near initialization for ‘gsl_sf_mathieu_se_e_data[1]’) 

testing/src/sf/sf__data.c:3066:54: error: ‘gsl_sf_mathieu_Mc_e’ undeclared here (not in a function) 

testing/src/sf/sf__data.c:3066:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3066:1: error: (near initialization for ‘gsl_sf_mathieu_Mc_e_data[0]’) 

testing/src/sf/sf__data.c:3066:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3066:1: error: (near initialization for ‘gsl_sf_mathieu_Mc_e_data[1]’) 

testing/src/sf/sf__data.c:3080:54: error: ‘gsl_sf_mathieu_Ms_e’ undeclared here (not in a function) 

testing/src/sf/sf__data.c:3080:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3080:1: error: (near initialization for ‘gsl_sf_mathieu_Ms_e_data[0]’) 

testing/src/sf/sf__data.c:3080:1: error: initializer element is not constant 

testing/src/sf/sf__data.c:3080:1: error: (near initialization for ‘gsl_sf_mathieu_Ms_e_data[1]’) 

testing/src/sf/sfmodule_testing.c: In function ‘PyGSL_sf_ufunc_qi_dd_D’: 

testing/src/sf/sfmodule_testing.c:124:6: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] 

testing/src/sf/sfmodule_testing.c: In function ‘PyGSL_sf_ufunc_qi_dd_D_as_ff_F’: 

testing/src/sf/sfmodule_testing.c:141:59: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] 

testing/src/sf/sfmodule_testing.c: In function ‘PyGSL_sf_ufunc_qi_D_dd’: 

testing/src/sf/sfmodule_testing.c:162:6: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] 

testing/src/sf/sfmodule_testing.c: In function ‘PyGSL_sf_ufunc_qi_D_dd_as_F_ff’: 

testing/src/sf/sfmodule_testing.c:184:76: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] 

error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DSWIG_COBJECT_TYPES=1 -DDEBUG=1 -DPyGSL_SET_GSL_ERROR_HANDLER=1 -DNUMERIC=0 -UNDEBUG -I/usr/local/include -IInclude -I. -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c testing/src/sf/sfmodule_testing.c -o build/temp.linux-x86_64-2.7/testing/src/sf/sfmodule_testing.o" failed with exit status 1 
+0

我安装了libgsl-dev的或libgsl-dev的:i386和它不工作.... – Zhao

使用yum install gcc然后安装Python模块

+0

我已经做到了“sudo易于得到安装gcc”,但它不工作 – Zhao

我已经解决了通过安装基于通过管道的Python2.7 pygsl-2.1.1安装问题首先安装GCC。但GSL的版本是1.15,所以,你必须改变 软件源获得GSL-1.16。它现在有效。