- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我已经为 macosx Leopard 10.5.8 下载了 igraph 0.5.4 tar ball。当我解压它然后运行时:
sudo python setup.py install
我收到以下长错误消息:
Include path: /usr/include /usr/local/include
Library path:
running install
running bdist_egg
running egg_info
writing python_igraph.egg-info/PKG-INFO
writing top-level names to python_igraph.egg-info/top_level.txt
writing dependency_links to python_igraph.egg-info/dependency_links.txt
reading manifest file 'python_igraph.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'python_igraph.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.3-fat/egg
running install_lib
running build_py
creating build
creating build/lib.macosx-10.3-fat-2.6
creating build/lib.macosx-10.3-fat-2.6/igraph
copying igraph/__init__.py -> build/lib.macosx-10.3-fat-2.6/igraph
copying igraph/clustering.py -> build/lib.macosx-10.3-fat-2.6/igraph
copying igraph/colors.py -> build/lib.macosx-10.3-fat-2.6/igraph
copying igraph/configuration.py -> build/lib.macosx-10.3-fat-2.6/igraph
copying igraph/datatypes.py -> build/lib.macosx-10.3-fat-2.6/igraph
copying igraph/drawing.py -> build/lib.macosx-10.3-fat-2.6/igraph
copying igraph/formula.py -> build/lib.macosx-10.3-fat-2.6/igraph
copying igraph/layout.py -> build/lib.macosx-10.3-fat-2.6/igraph
copying igraph/statistics.py -> build/lib.macosx-10.3-fat-2.6/igraph
creating build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/__init__.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/attributes.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/basic.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/bipartite.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/cliques.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/colortests.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/decomposition.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/edgeseq.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/flow.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/foreign.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/games.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/generators.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/isomorphism.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/iterators.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/layouts.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/operators.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/spectral.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/structural.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
copying igraph/test/vertexseq.py -> build/lib.macosx-10.3-fat-2.6/igraph/test
creating build/lib.macosx-10.3-fat-2.6/igraph/app
copying igraph/app/__init__.py -> build/lib.macosx-10.3-fat-2.6/igraph/app
copying igraph/app/shell.py -> build/lib.macosx-10.3-fat-2.6/igraph/app
running build_ext
building 'igraph.core' extension
creating build/temp.macosx-10.3-fat-2.6
creating build/temp.macosx-10.3-fat-2.6/src
gcc-4.0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/arpackobject.c -o build/temp.macosx-10.3-fat-2.6/src/arpackobject.o
In file included from /usr/include/math.h:26,
from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pyport.h:235,
from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:58,
from src/arpackobject.h:27,
from src/arpackobject.c:24:
/usr/include/architecture/ppc/math.h:675: warning: conflicting types for built-in function ‘scalb’
In file included from src/arpackobject.c:24:
src/arpackobject.h:28:27: error: igraph/arpack.h: No such file or directory
In file included from src/arpackobject.h:29,
from src/arpackobject.c:24:
src/graphobject.h:28:27: error: igraph/igraph.h: No such file or directory
In file included from src/arpackobject.h:29,
from src/arpackobject.c:24:
src/graphobject.h:42: error: syntax error before ‘igraph_t’
src/graphobject.h:42: warning: no semicolon at end of struct or union
src/graphobject.h:44: error: ‘destructor’ redeclared as different kind of symbol
/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/object.h:304: error: previous declaration of ‘destructor’ was here
src/graphobject.h:51: error: syntax error before ‘}’ token
src/graphobject.h:51: warning: data definition has no type or storage class
src/graphobject.h:53: error: syntax error before ‘*’ token
src/graphobject.h:55: error: syntax error before ‘*’ token
src/graphobject.h:56: error: syntax error before ‘*’ token
src/graphobject.h:57: error: syntax error before ‘*’ token
src/graphobject.h:58: error: syntax error before ‘*’ token
src/graphobject.h:59: error: syntax error before ‘*’ token
src/graphobject.h:61: error: syntax error before ‘*’ token
src/graphobject.h:62: error: syntax error before ‘*’ token
src/graphobject.h:63: error: syntax error before ‘*’ token
src/graphobject.h:64: error: syntax error before ‘*’ token
src/graphobject.h:65: error: syntax error before ‘*’ token
src/graphobject.h:66: error: syntax error before ‘*’ token
src/graphobject.h:67: error: syntax error before ‘*’ token
src/graphobject.h:68: error: syntax error before ‘*’ token
src/graphobject.h:69: error: syntax error before ‘*’ token
src/graphobject.h:70: error: syntax error before ‘*’ token
src/graphobject.h:71: error: syntax error before ‘*’ token
src/graphobject.h:72: error: syntax error before ‘*’ token
src/graphobject.h:73: error: syntax error before ‘*’ token
src/graphobject.h:74: error: syntax error before ‘*’ token
src/graphobject.h:99: error: syntax error before ‘*’ token
src/graphobject.h:100: error: syntax error before ‘*’ token
src/graphobject.h:101: error: syntax error before ‘*’ token
src/graphobject.h:102: error: syntax error before ‘*’ token
src/graphobject.h:103: error: syntax error before ‘*’ token
src/graphobject.h:104: error: syntax error before ‘*’ token
src/graphobject.h:105: error: syntax error before ‘*’ token
src/graphobject.h:106: error: syntax error before ‘*’ token
src/graphobject.h:107: error: syntax error before ‘*’ token
src/graphobject.h:108: error: syntax error before ‘*’ token
src/graphobject.h:109: error: syntax error before ‘*’ token
src/graphobject.h:110: error: syntax error before ‘*’ token
src/graphobject.h:111: error: syntax error before ‘*’ token
src/graphobject.h:112: error: syntax error before ‘*’ token
src/graphobject.h:113: error: syntax error before ‘*’ token
src/graphobject.h:114: error: syntax error before ‘*’ token
src/graphobject.h:115: error: syntax error before ‘*’ token
src/graphobject.h:116: error: syntax error before ‘*’ token
src/graphobject.h:117: error: syntax error before ‘*’ token
src/graphobject.h:118: error: syntax error before ‘*’ token
src/graphobject.h:119: error: syntax error before ‘*’ token
src/graphobject.h:120: error: syntax error before ‘*’ token
src/graphobject.h:121: error: syntax error before ‘*’ token
src/graphobject.h:122: error: syntax error before ‘*’ token
src/graphobject.h:123: error: syntax error before ‘*’ token
src/graphobject.h:124: error: syntax error before ‘*’ token
src/graphobject.h:125: error: syntax error before ‘*’ token
src/graphobject.h:126: error: syntax error before ‘*’ token
src/graphobject.h:127: error: syntax error before ‘*’ token
src/graphobject.h:129: error: syntax error before ‘*’ token
src/graphobject.h:130: error: syntax error before ‘*’ token
src/graphobject.h:131: error: syntax error before ‘*’ token
src/graphobject.h:132: error: syntax error before ‘*’ token
src/graphobject.h:133: error: syntax error before ‘*’ token
src/graphobject.h:134: error: syntax error before ‘*’ token
src/graphobject.h:135: error: syntax error before ‘*’ token
src/graphobject.h:136: error: syntax error before ‘*’ token
src/graphobject.h:137: error: syntax error before ‘*’ token
src/graphobject.h:138: error: syntax error before ‘*’ token
src/graphobject.h:139: error: syntax error before ‘*’ token
src/graphobject.h:140: error: syntax error before ‘*’ token
src/graphobject.h:142: error: syntax error before ‘*’ token
src/graphobject.h:143: error: syntax error before ‘*’ token
src/graphobject.h:144: error: syntax error before ‘*’ token
src/graphobject.h:145: error: syntax error before ‘*’ token
src/graphobject.h:147: error: syntax error before ‘*’ token
src/graphobject.h:156: error: syntax error before ‘*’ token
src/graphobject.h:157: error: syntax error before ‘*’ token
src/graphobject.h:158: error: syntax error before ‘*’ token
src/graphobject.h:159: error: syntax error before ‘*’ token
src/graphobject.h:160: error: syntax error before ‘*’ token
src/graphobject.h:161: error: syntax error before ‘*’ token
src/graphobject.h:162: error: syntax error before ‘*’ token
src/graphobject.h:164: error: syntax error before ‘*’ token
src/graphobject.h:165: error: syntax error before ‘*’ token
src/graphobject.h:166: error: syntax error before ‘*’ token
src/graphobject.h:167: error: syntax error before ‘*’ token
src/graphobject.h:168: error: syntax error before ‘*’ token
src/graphobject.h:169: error: syntax error before ‘*’ token
src/graphobject.h:170: error: syntax error before ‘*’ token
src/graphobject.h:172: error: syntax error before ‘*’ token
src/graphobject.h:173: error: syntax error before ‘*’ token
src/graphobject.h:174: error: syntax error before ‘*’ token
src/graphobject.h:175: error: syntax error before ‘*’ token
src/graphobject.h:176: error: syntax error before ‘*’ token
src/graphobject.h:177: error: syntax error before ‘*’ token
src/graphobject.h:179: error: syntax error before ‘*’ token
src/graphobject.h:180: error: syntax error before ‘*’ token
src/graphobject.h:182: error: syntax error before ‘*’ token
src/graphobject.h:183: error: syntax error before ‘*’ token
src/graphobject.h:184: error: syntax error before ‘*’ token
src/graphobject.h:185: error: syntax error before ‘*’ token
src/graphobject.h:186: error: syntax error before ‘*’ token
src/graphobject.h:187: error: syntax error before ‘*’ token
src/graphobject.h:188: error: syntax error before ‘*’ token
src/graphobject.h:190: error: syntax error before ‘*’ token
src/graphobject.h:191: error: syntax error before ‘*’ token
src/graphobject.h:193: error: syntax error before ‘*’ token
src/graphobject.h:194: error: syntax error before ‘*’ token
src/graphobject.h:196: error: syntax error before ‘*’ token
src/graphobject.h:197: error: syntax error before ‘*’ token
src/graphobject.h:198: error: syntax error before ‘*’ token
src/graphobject.h:199: error: syntax error before ‘*’ token
src/graphobject.h:200: error: syntax error before ‘*’ token
src/graphobject.h:201: error: syntax error before ‘*’ token
src/graphobject.h:202: error: syntax error before ‘*’ token
src/graphobject.h:203: error: syntax error before ‘*’ token
src/graphobject.h:205: error: syntax error before ‘*’ token
src/graphobject.h:206: error: syntax error before ‘*’ token
src/graphobject.h:207: error: syntax error before ‘*’ token
src/graphobject.h:208: error: syntax error before ‘*’ token
src/graphobject.h:209: error: syntax error before ‘*’ token
src/graphobject.h:211: error: syntax error before ‘*’ token
src/graphobject.h:213: error: syntax error before ‘*’ token
src/graphobject.h:214: error: syntax error before ‘*’ token
In file included from src/arpackobject.c:24:
src/arpackobject.h:43: error: syntax error before ‘igraph_arpack_options_t’
src/arpackobject.h:43: warning: no semicolon at end of struct or union
src/arpackobject.h:44: warning: data definitiIn file included from src/arpackobject.c:24:
src/arpackobject.h:28:27: error: igraph/arpack.h: No such file or directory
In file included from src/arpackobject.h:29,
from src/arpackobject.c:24:
src/graphobject.h:28:27: error: igraph/igraph.h: No such file or directory
on has no type or storage class
src/arpackobject.h:45: warning: data definition has no type or storage class
In file included from src/arpackobject.h:29,
from src/arpackobject.c:24:
src/graphobject.h:42: error: syntax error before ‘igraph_t’
src/graphobject.h:42: warning: no semicolon at end of struct or union
src/graphobject.h:44: error: ‘destructor’ redeclared as different kind of symbolsrc/arpackobject.h:49: error: syntax error before ‘*’ token
/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/object.h:304: error: previous declaration of ‘destructor’ was here
src/graphobject.h:51: error: syntax error before ‘}’ token
src/graphobject.h:51: warning: data definition has no type or storage class
src/graphobject.h:53: error: syntax error before ‘*’ token
src/arpackobject.h:52: error: syntax error before ‘*’ token
src/arpackobject.h:54: error: syntax error before ‘*’ token
src/arpackobject.h:54: error: syntax error before ‘*’ token
src/arpackobject.h:54: warning: data definition has no type or storage class
src/graphobject.h:55: error: syntax error before ‘*’ token
src/graphobject.h:56: error: syntax error before ‘*’ token
src/graphobject.h:57: error: syntax error before ‘*’ token
src/graphobject.h:58: error: syntax error before ‘*’ token
src/graphobject.h:59: error: syntax error before ‘*’ token
src/graphobject.h:61: error: syntax error before ‘*’ token
src/graphobject.h:62: error: syntax error before ‘*’ token
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_new’:src/graphobject.h:63: error: syntax error before ‘*’ token
src/arpackobject.c:44: error: ‘self’ undeclared (first use in this function)
src/arpackobject.c:44: error: (Each undeclared identifier is reported only once
src/arpackobject.c:44: error: for each function it appears in.)
src/arpackobject.c:45: error: syntax error before ‘)’ tokensrc/graphobject.h:64: error: syntax error before ‘*’ token
src/graphobject.h:65: error: syntax error before ‘*’ token
src/arpackobject.c: At top level:src/graphobject.h:66: error: syntax error before ‘*’ token
src/arpackobject.c:59: error: syntax error before ‘*’ token
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_dealloc’:
src/arpackobject.c:61: error: ‘self’ undeclared (first use in this function)src/graphobject.h:67: error: syntax error before ‘*’ token
src/arpackobject.c: At top level:
src/graphobject.h:68: error: syntax error before ‘*’ token
src/graphobject.h:69: error: syntax error before ‘*’ tokensrc/arpackobject.c:68: error: syntax error before ‘*’ token
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_getattr’:src/graphobject.h:70: error: syntax error before ‘*’ token
src/arpackobject.c:71: error: ‘attrname’ undeclared (first use in this function)
src/graphobject.h:71: error: syntax error before ‘*’ tokensrc/arpackobject.c:72: error: ‘self’ undeclared (first use in this function)
src/graphobject.h:72: error: syntax error before ‘*’ token
src/graphobject.h:73: error: syntax error before ‘*’ token
src/graphobject.h:74: error: syntax error before ‘*’ token
src/graphobject.h:99: error: syntax error before ‘*’ token
src/graphobject.h:100: error: syntax error before ‘*’ token
src/graphobject.h:101: error: syntax error before ‘*’ token
src/graphobject.h:102: error: syntax error before ‘*’ token
src/graphobject.h:103: error: syntax error before ‘*’ token
src/graphobject.h:104: error: syntax error before ‘*’ token
src/graphobject.h:105: error: syntax error before ‘*’ token
src/graphobject.h:106: error: syntax error before ‘*’ token
src/graphobject.h:107: error: syntax error before ‘*’ token
src/arpackobject.c: At top level:src/graphobject.h:108: error: syntax error before ‘*’ token
src/arpackobject.c:122: error: syntax error before ‘*’ token
src/graphobject.h:109: error: syntax error before ‘*’ token
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_setattr’:
src/graphobject.h:110: error: syntax error before ‘*’ tokensrc/arpackobject.c:124: error: ‘value’ undeclared (first use in this function)
src/arpackobject.c:128: error: ‘attrname’ undeclared (first use in this function)src/graphobject.h:111: error: syntax error before ‘*’ token
src/graphobject.h:112: error: syntax error before ‘*’ tokensrc/arpackobject.c:132: error: ‘self’ undeclared (first use in this function)
src/graphobject.h:113: error: syntax error before ‘*’ token
src/graphobject.h:114: error: syntax error before ‘*’ token
src/arpackobject.c:143: error: ‘igraph_real_t’ undeclared (first use in this function)src/graphobject.h:115: error: syntax error before ‘*’ token
src/graphobject.h:116: error: syntax error before ‘*’ token
src/arpackobject.c:143: error: syntax error before ‘PyInt_AsLong’
src/graphobject.h:117: error: syntax error before ‘*’ token
src/arpackobject.c:145: error: syntax error before ‘PyFloat_AsDouble’
src/graphobject.h:118: error: syntax error before ‘*’ token
src/graphobject.h:119: error: syntax error before ‘*’ token
src/graphobject.h:120: error: syntax error before ‘*’ token
src/arpackobject.c: At top level:src/graphobject.h:121: error: syntax error before ‘*’ token
src/graphobject.h:122: error: syntax error before ‘*’ token
src/arpackobject.c:159: error: syntax error before ‘*’ token
src/arpackobject.c:160: error: syntax error before ‘*’ token
src/graphobject.h:123: error: syntax error before ‘*’ token
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_get’:
src/arpackobject.c:161: error: ‘self’ undeclared (first use in this function)
src/graphobject.h:124: error: syntax error before ‘*’ token
src/arpackobject.c: At top level:
src/arpackobject.c:179: error: syntax error before ‘*’ token
src/graphobject.h:125: error: syntax error before ‘*’ token
src/graphobject.h:126: error: syntax error before ‘*’ token
src/graphobject.h:127: error: syntax error before ‘*’ token
src/graphobject.h:129: error: syntax error before ‘*’ token
src/graphobject.h:130: error: syntax error before ‘*’ token
src/arpackobject.c:220: error: initializer element is not constantsrc/graphobject.h:131: error: syntax error before ‘*’ token
src/arpackobject.c:220: error: (near initialization for ‘igraphmodule_ARPACKOptionsType.tp_dealloc’)
src/arpackobject.c:220: error: syntax error before ‘igraphmodule_ARPACKOptions_dealloc’
src/graphobject.h:132: error: syntax error before ‘*’ token
src/graphobject.h:133: error: syntax error before ‘*’ token
src/graphobject.h:134: error: syntax error before ‘*’ token
src/graphobject.h:135: error: syntax error before ‘*’ token
src/graphobject.h:136: error: syntax error before ‘*’ token
src/graphobject.h:137: error: syntax error before ‘*’ token
src/graphobject.h:138: error: syntax error before ‘*’ token
src/graphobject.h:139: error: syntax error before ‘*’ token
src/graphobject.h:140: error: syntax error before ‘*’ token
src/graphobject.h:142: error: syntax error before ‘*’ token
src/graphobject.h:143: error: syntax error before ‘*’ token
src/graphobject.h:144: error: syntax error before ‘*’ token
src/graphobject.h:145: error: syntax error before ‘*’ token
src/graphobject.h:147: error: syntax error before ‘*’ token
src/graphobject.h:156: error: syntax error before ‘*’ token
src/graphobject.h:157: error: syntax error before ‘*’ token
src/graphobject.h:158: error: syntax error before ‘*’ token
src/graphobject.h:159: error: syntax error before ‘*’ token
src/graphobject.h:160: error: syntax error before ‘*’ token
src/graphobject.h:161: error: syntax error before ‘*’ token
src/graphobject.h:162: error: syntax error before ‘*’ token
src/graphobject.h:164: error: syntax error before ‘*’ token
src/graphobject.h:165: error: syntax error before ‘*’ token
src/graphobject.h:166: error: syntax error before ‘*’ token
src/graphobject.h:167: error: syntax error before ‘*’ token
src/graphobject.h:168: error: syntax error before ‘*’ token
src/graphobject.h:169: error: syntax error before ‘*’ token
src/graphobject.h:170: error: syntax error before ‘*’ token
src/graphobject.h:172: error: syntax error before ‘*’ token
src/graphobject.h:173: error: syntax error before ‘*’ token
src/graphobject.h:174: error: syntax error before ‘*’ token
src/graphobject.h:175: error: syntax error before ‘*’ token
src/graphobject.h:176: error: syntax error before ‘*’ token
src/graphobject.h:177: error: syntax error before ‘*’ token
src/graphobject.h:179: error: syntax error before ‘*’ token
src/graphobject.h:180: error: syntax error before ‘*’ token
src/graphobject.h:182: error: syntax error before ‘*’ token
src/graphobject.h:183: error: syntax error before ‘*’ token
src/graphobject.h:184: error: syntax error before ‘*’ token
src/graphobject.h:185: error: syntax error before ‘*’ token
src/graphobject.h:186: error: syntax error before ‘*’ token
src/graphobject.h:187: error: syntax error before ‘*’ token
src/graphobject.h:188: error: syntax error before ‘*’ token
src/graphobject.h:190: error: syntax error before ‘*’ token
src/graphobject.h:191: error: syntax error before ‘*’ token
src/graphobject.h:193: error: syntax error before ‘*’ token
src/graphobject.h:194: error: syntax error before ‘*’ token
src/graphobject.h:196: error: syntax error before ‘*’ token
src/graphobject.h:197: error: syntax error before ‘*’ token
src/graphobject.h:198: error: syntax error before ‘*’ token
src/graphobject.h:199: error: syntax error before ‘*’ token
src/graphobject.h:200: error: syntax error before ‘*’ token
src/graphobject.h:201: error: syntax error before ‘*’ token
src/graphobject.h:202: error: syntax error before ‘*’ token
src/graphobject.h:203: error: syntax error before ‘*’ token
src/graphobject.h:205: error: syntax error before ‘*’ token
src/graphobject.h:206: error: syntax error before ‘*’ token
src/graphobject.h:207: error: syntax error before ‘*’ token
src/graphobject.h:208: error: syntax error before ‘*’ token
src/graphobject.h:209: error: syntax error before ‘*’ token
src/graphobject.h:211: error: syntax error before ‘*’ token
src/graphobject.h:213: error: syntax error before ‘*’ token
src/graphobject.h:214: error: syntax error before ‘*’ token
In file included from src/arpackobject.c:24:
src/arpackobject.h:43: error: syntax error before ‘igraph_arpack_options_t’
src/arpackobject.h:43: warning: no semicolon at end of struct or union
src/arpackobject.h:44: warning: data definition has no type or storage class
src/arpackobject.h:45: warning: data definition has no type or storage class
src/arpackobject.h:49: error: syntax error before ‘*’ token
src/arpackobject.h:52: error: syntax error before ‘*’ token
src/arpackobject.h:54: error: syntax error before ‘*’ token
src/arpackobject.h:54: error: syntax error before ‘*’ token
src/arpackobject.h:54: warning: data definition has no type or storage class
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_new’:
src/arpackobject.c:44: error: ‘self’ undeclared (first use in this function)
src/arpackobject.c:44: error: (Each undeclared identifier is reported only once
src/arpackobject.c:44: error: for each function it appears in.)
src/arpackobject.c:45: error: syntax error before ‘)’ token
src/arpackobject.c: At top level:
src/arpackobject.c:59: error: syntax error before ‘*’ token
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_dealloc’:
src/arpackobject.c:61: error: ‘self’ undeclared (first use in this function)
src/arpackobject.c: At top level:
src/arpackobject.c:68: error: syntax error before ‘*’ token
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_getattr’:
src/arpackobject.c:71: error: ‘attrname’ undeclared (first use in this function)
src/arpackobject.c:72: error: ‘self’ undeclared (first use in this function)
src/arpackobject.c: At top level:
src/arpackobject.c:122: error: syntax error before ‘*’ token
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_setattr’:
src/arpackobject.c:124: error: ‘value’ undeclared (first use in this function)
src/arpackobject.c:128: error: ‘attrname’ undeclared (first use in this function)
src/arpackobject.c:132: error: ‘self’ undeclared (first use in this function)
src/arpackobject.c:143: error: ‘igraph_real_t’ undeclared (first use in this function)
src/arpackobject.c:143: error: syntax error before ‘PyInt_AsLong’
src/arpackobject.c:145: error: syntax error before ‘PyFloat_AsDouble’
src/arpackobject.c: At top level:
src/arpackobject.c:159: error: syntax error before ‘*’ token
src/arpackobject.c:160: error: syntax error before ‘*’ token
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_get’:
src/arpackobject.c:161: error: ‘self’ undeclared (first use in this function)
src/arpackobject.c: At top level:
src/arpackobject.c:179: error: syntax error before ‘*’ token
src/arpackobject.c:220: error: initializer element is not constant
src/arpackobject.c:220: error: (near initialization for ‘igraphmodule_ARPACKOptionsType.tp_dealloc’)
src/arpackobject.c:220: error: syntax error before ‘igraphmodule_ARPACKOptions_dealloc’
lipo: can't figure out the architecture type of: /var/folders/dh/dhQ69HGyEnCzfiZ9fG+NKE+++TI/-Tmp-//cci7rbrc.out
error: command 'gcc-4.0' failed with exit status 1
这是一个错误还是我做错了什么?
最好的,托马斯
最佳答案
您下载的只是 igraph 库的 Python 接口(interface)。该库本身是用 C 编写的,在尝试编译 Python 界面之前,您必须先安装 igraph 的 C 核心。
基本上,您在这里有三个选择:
尝试使用在 PyPI page of igraph 上找到的 igraph 的预编译 Mac OS X 安装程序.
先编译并安装C核心,然后再尝试先编译Python。 C核心的源代码可以从igraph homepage下载。 .
安装 brew然后从命令行使用 brew
安装 igraph 的 C 核心:
$ brew install igraph
以上命令会为您下载编译安装igraph的C核心,之后您就可以继续进行Python接口(interface)的编译了。
关于python - 为 python 安装 igraph 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3856820/
我听说最好不要从您系统的 Perl 版本所在的 CPAN 安装模块。我知道如何使用命令行安装模块,我只是想知道是否有办法将 CPAN 与系统核心 Perl 分开。 我应该: 下载源代码并专门为这些模块
我听说最好不要从系统的 Perl 版本所在的 CPAN 安装模块。我知道如何使用命令行安装模块,我只是想知道是否有办法将 CPAN 与系统的核心 Perl 分开。 我应该: 下载源代码并专门为这些模块
单独安装 electron 与通过 electron-builder 安装有什么区别?我正在使用 React 构建一个 Electron 应用程序,并且已经找到了一些教程。它们安装 Electron
两者安装有什么区别?我按照安装页面上的说明在全局范围内安装了 webpack,然后我转到了入门指南,据说在那里可以在本地安装 webpack-cli。 CLI = Command Line Inter
我在 OS X Yosemite 上用 PHP 安装了默认的 Apache 服务器,安装了 pear,用 brew 安装了 Solr (brew install solr),现在我正在尝试使用 PEC
我解压并编译了 Ruby 2.1 并安装了几个支持工具。 但是当我安装了 libssl-dev 时,OpenSSL 不会安装。 我在支持 openssl 时遇到这个错误: make: *** No r
我在 android studio 2.3.1 和 gradle 3.2 中设计了 2 到 3 个应用程序。当我从它运行应用程序到任何设备或模拟器时,一切都工作正常。但是当我从构建文件夹中获取该 ap
我注意到我正在读一本书提到通过 apt-get 安装 numpy 和 opencv apt-get install python-numpy python-opencv 但我可以通过以下方式在 pip
我正在尝试在 Windows 8.1 上安装 ansicon。我提取了文件并达到了我需要调用 ansicon -i 的级别。当我在 cmd 中输入此内容并运行 python 脚本时效果很好,但是当我通
我有 linux MINT 17.3 Kernel 4.4.0-81 所有更新可用。 (由于不同的原因,我无法迁移到更新版本的 ubuntu/mint) 我已经通过 PPA 安装了 FFMPEG(不是
尝试在本地运行我的应用程序时出现错误: 我只在 chrome 浏览器中收到此错误。我尝试过不同的东西,但我不确定为什么它是 Chrome 特定的。 最佳答案 我怀疑这不是 Firebase 问题,而是
这是我第一次开发 AngularJS 应用程序并使用脚手架工具 Yeoman ( http://yeoman.io/ )。我想对我的一些图标使用 fontawesome ( http://fortaw
我知道您通常“应该”$ pip install 如果包没有 brew ,但如果有一个你想安装的 python 包,你可以使用 $ pip install或 $ brew install为了?例如,通过
我正在尝试通过 RVM 安装 Ruby 1.9.3。然而,当谈到安装 RubyGems 时,我得到了这个: curl: (22) The requested URL returned error: 4
我是真正提出问题的新手,但你去吧。 我一直在尝试按照安装指南添加 dnsname: https://github.com/containers/dnsname https://github.com/c
Studio更新至0.4.0 建筑产量为“需要1.8版Gradle”;将设置设置为1.8 bin目录; 建立 “要求1.9级”;将设置设置为1.9 bin; 建立 “要求1.8级” 啊。不知道该怎么做
我刚刚注意到 kernel.org 因维护而停机。是否有使用不同镜子的不同公式?或者我可以向 Homebrew 软件添加不同的来源(如 bundler ?)? 谢谢你的帮助! 最佳答案 快速解决方法:
当我运行时: peardev install phpunit/PHPUnit 我得到以下信息: No releases available for package "pear.phpunit.de/P
服务器操作系统为Fedora 24. 64bit。 我想安装 Git 2.6.6。 所以下载源码并安装。 此服务器离线。所以我不使用“yum”。 ./configure --prefix=/usr/l
我正在尝试在我自己的服务器(操作系统:Linux Ubuntu Server 12.04)上安装 OpenEdX,但我遇到了同样的错误。谁能帮帮我? TASK: [ insights | insta
我是一名优秀的程序员,十分优秀!