安装 python 的 igraph 包

发布于 2024-09-25 21:09:06 字数 25533 浏览 0 评论 0原文

我已经下载了适用于 macosx Leopard 10.5.8 的 igraph 0.5.4 tar 球。当我解压它然后运行时:

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

这是一个错误还是我做错了什么?

最好的,托马斯

I have downloaded the igraph 0.5.4 tar ball for macosx Leopard 10.5.8. When I unpack it and then run:

sudo python setup.py install

I get the following long error message:

    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

Is this a bug or am i doing something wrong?

Best, Thomas

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一笔一画续写前缘 2024-10-02 21:09:06

您下载的只是 igraph 库的 Python接口。该库本身是用 C 编写的,在尝试编译 Python 接口之前,您必须先安装 igraph 的 C 核心。

基本上,您在这里有三个选择:

  1. 尝试使用 igraph 的预编译 Mac OS X 安装程序,该安装程序可以在 igraph 的 PyPI 页面

  2. 先编译并安装C核心,然后再尝试先编译Python。 C核心的源代码可以从igraph 主页

  3. 安装brew,然后从命令行使用brew安装igraph的C核心:

    <代码> $brew install igraph
    

    以上命令将为您下载、编译并安装igraph的C核心,之后您可以继续Python接口的编译。

What you have downloaded is only the Python interface to the igraph library. The library itself is written in C, and you will have to install the C core of igraph first before trying to compile the Python interface.

Basically, you have three choices here:

  1. Try to make use of the pre-compiled Mac OS X installer of igraph that is found on the PyPI page of igraph.

  2. Compile and install the C core first and then try again with the compilation of the Python first. The source code of the C core can be downloaded from the igraph homepage.

  3. Install brew and then install the C core of igraph using brew from the command line:

     $ brew install igraph
    

    The above command will download, compile and install the C core of igraph for you, after which you can continue with the compilation of the Python interface.

懷念過去 2024-10-02 21:09:06

我遇到了同样的问题,但上述解决方案在我的 mac os X Lion 上不起作用。我无法从 C 源代码安装 igraph。到处寻找后,我找到了 Tamas 在其他地方发布的后者的解决方案。这就是我必须做的全部事情:

D1。安装python2.6

D2。下载 igraph D3 的 C 库的源文件

。将以下 6 个源文件

src/DensityGrid.cpp

src/DensityGrid.h

src/DensityGrid_3d.cpp

src/DensityGrid_3d.h

中找到的相应文件

替换为http://bazaar.launchpad.net/~igraph/igraph/0.6-main/revision/2387#src/DensityGrid.cpp D4

。 D5中运行以下命令

在 igrpah-0.5.4/ 目录./configure

make

make install

。下载源代码以安装 igraph

D6 的 python 扩展。 命令来安装它

运行 python-igraph-0.5.4 sudo python2.6 setup.py install

,并记住使用 python2.6 来运行它。

I had the same problem but the above solution did not work on my mac os X Lion. I couldn't install igraph from the C source code. After looking everywhere I found the solution for the latter posted by Tamas somewhere else. So here is the whole thing that I had to do:

D1. install python2.6

D2. download the source files for the C library for igraph

D3. replace the following 6 source files

src/DensityGrid.cpp

src/DensityGrid.h

src/DensityGrid_3d.cpp

src/DensityGrid_3d.h

with the corresponding files found at

http://bazaar.launchpad.net/~igraph/igraph/0.6-main/revision/2387#src/DensityGrid.cpp

D4. Run the following commands inside the igrpah-0.5.4/ directory

./configure

make

make install

D5. download the source code to install the python extension for igraph

D6. install it running the command from python-igraph-0.5.4

sudo python2.6 setup.py install

and remember to use python2.6 to run it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文