当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 5 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 求助:如何安装PIL?
帖子发表于 : 2007-07-25 22:34 

注册: 2006-12-14 18:38
帖子: 15
送出感谢: 0 次
接收感谢: 0 次
想学习python的GUI编程,却怎么也安不上PIL(Python Imaging Library)这个包。
大家有没有什么好办法?
谢谢

错误代码如下:
$sudo python setup.py install
running install
running build
running build_py
running build_ext
building '_imaging' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -IlibImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.5 -c _imaging.c -o build/temp.linux-i686-2.5/_imaging.o
_imaging.c:76:20: 错误: Python.h:No such file or directory
在包含自 libImaging/Imaging.h:14 的文件中,
从 _imaging.c:78:
libImaging/ImPlatform.h:10:20: 错误: Python.h:No such file or directory
libImaging/ImPlatform.h:14:2: 错误: #error Sorry, this library requires support for ANSI prototypes.
libImaging/ImPlatform.h:17:2: 错误: #error Sorry, this library requires ANSI header files.
libImaging/ImPlatform.h:55:2: 错误: #error Cannot find required 32-bit integer type
In file included from _imaging.c:78:
libImaging/Imaging.h:90: 错误: expected specifier-qualifier-list before ‘INT32’
libImaging/Imaging.h:265: 错误: expected specifier-qualifier-list before ‘INT32’
libImaging/Imaging.h:393: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ImagingCRC32’
_imaging.c:123: 错误: expected specifier-qualifier-list before ‘PyObject_HEAD’
_imaging.c:127: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyTypeObject’
_imaging.c:141: 错误: expected specifier-qualifier-list before ‘PyObject_HEAD’
_imaging.c:149: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyTypeObject’
_imaging.c:152: 错误: expected specifier-qualifier-list before ‘PyObject_HEAD’
_imaging.c:158: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyTypeObject’
_imaging.c:163: 错误: expected specifier-qualifier-list before ‘PyObject_HEAD’
_imaging.c:168: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyTypeObject’
_imaging.c:170: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c: 在函数 ‘_dealloc’ 中:
_imaging.c:201: 错误: ‘ImagingObject’ 没有名为 ‘image’ 的成员
_imaging.c:202: 警告: 隐式声明函数 ‘PyMem_DEL’
_imaging.c: 在顶层:
_imaging.c:207: 错误: expected ‘)’ before ‘*’ token
_imaging.c: 在函数 ‘ImagingSectionEnter’ 中:
_imaging.c:225: 错误: ‘PyThreadState’ 未声明 (在此函数内第一次使用)
_imaging.c:225: 错误: (即使在一个函数内多次出现,每个未声明的标识符在其
_imaging.c:225: 错误: 所在的函数内只报告一次。)
_imaging.c:225: 错误: expected expression before ‘)’ token
_imaging.c: 在函数 ‘ImagingSectionLeave’ 中:
_imaging.c:232: 警告: 隐式声明函数 ‘PyEval_RestoreThread’
_imaging.c:232: 错误: ‘PyThreadState’ 未声明 (在此函数内第一次使用)
_imaging.c:232: 错误: expected expression before ‘)’ token
_imaging.c: 在函数 ‘ImagingError_IOError’ 中:
_imaging.c:253: 警告: 隐式声明函数 ‘PyErr_SetString’
_imaging.c:253: 错误: ‘PyExc_IOError’ 未声明 (在此函数内第一次使用)
_imaging.c:254: 错误: ‘NULL’ 未声明 (在此函数内第一次使用)
_imaging.c: 在函数 ‘ImagingError_MemoryError’ 中:
_imaging.c:260: 警告: 隐式声明函数 ‘PyErr_NoMemory’
_imaging.c:260: 警告: 返回时将整数赋给指针,未作类型转换
_imaging.c: 在函数 ‘ImagingError_Mismatch’ 中:
_imaging.c:266: 错误: ‘PyExc_ValueError’ 未声明 (在此函数内第一次使用)
_imaging.c:267: 错误: ‘NULL’ 未声明 (在此函数内第一次使用)
_imaging.c: 在函数 ‘ImagingError_ModeError’ 中:
_imaging.c:273: 错误: ‘PyExc_ValueError’ 未声明 (在此函数内第一次使用)
_imaging.c:274: 错误: ‘NULL’ 未声明 (在此函数内第一次使用)
_imaging.c: 在函数 ‘ImagingError_ValueError’ 中:
_imaging.c:281: 错误: ‘PyExc_ValueError’ 未声明 (在此函数内第一次使用)
_imaging.c:284: 错误: ‘NULL’ 未声明 (在此函数内第一次使用)
_imaging.c: 在顶层:
_imaging.c:316: 错误: expected ‘)’ before ‘*’ token
_imaging.c:413: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:468: 错误: expected ‘)’ before ‘*’ token
_imaging.c:536: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:568: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:580: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:592: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:604: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:613: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:624: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:635: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:646: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:668: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:692: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:709: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:726: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:735: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:752: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:762: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:773: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:805: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:840: 错误: expected ‘)’ before ‘*’ token
_imaging.c:880: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:902: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:975: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:986: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:996: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1035: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1112: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1123: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1260: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1280: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1315: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1340: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1371: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1382: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1402: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1453: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1485: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1531: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1606: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1657: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1663: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1675: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1709: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1737: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1767: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1778: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1794: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1815: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1821: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1832: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1843: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1854: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1865: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1876: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1894: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1912: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1923: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1934: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1945: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1956: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:1974: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c: 在函数 ‘_font_dealloc’ 中:
_imaging.c:2035: 警告: 隐式声明函数 ‘Py_XDECREF’
_imaging.c:2035: 错误: ‘ImagingFontObject’ 没有名为 ‘ref’ 的成员
_imaging.c: 在函数 ‘textwidth’ 中:
_imaging.c:2045: 错误: ‘ImagingFontObject’ 没有名为 ‘glyphs’ 的成员
_imaging.c: 在顶层:
_imaging.c:2050: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2098: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2108: 错误: 数组元素的类型不完全
_imaging.c:2109: 错误: ‘PyCFunction’ 未声明 (不在函数内)
_imaging.c:2109: 错误: expected ‘}’ before ‘_font_getmask’
_imaging.c:2110: 错误: expected ‘}’ before ‘_font_getsize’
_imaging.c:2111: 错误: ‘NULL’ 未声明 (不在函数内)
_imaging.c:2114: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2122: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c: 在函数 ‘_draw_dealloc’ 中:
_imaging.c:2150: 错误: ‘ImagingDrawObject’ 没有名为 ‘image’ 的成员
_imaging.c: 在顶层:
_imaging.c:2154: 错误: expected ‘)’ before ‘*’ token
_imaging.c:2156: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2171: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2191: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2228: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2246: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2283: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2299: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2352: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2367: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2400: 错误: expected ‘)’ before ‘*’ token
_imaging.c:2402: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2429: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2447: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2493: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2530: 错误: 数组元素的类型不完全
_imaging.c:2533: 错误: expected ‘}’ before ‘_draw_line’
_imaging.c:2534: 错误: expected ‘}’ before ‘_draw_lines’
_imaging.c:2536: 错误: expected ‘}’ before ‘_draw_outline’
_imaging.c:2538: 错误: expected ‘}’ before ‘_draw_polygon’
_imaging.c:2539: 错误: expected ‘}’ before ‘_draw_rectangle’
_imaging.c:2540: 错误: expected ‘}’ before ‘_draw_point’
_imaging.c:2541: 错误: expected ‘}’ before ‘_draw_points’
_imaging.c:2542: 错误: expected ‘}’ before ‘_draw_arc’
_imaging.c:2543: 错误: expected ‘}’ before ‘_draw_bitmap’
_imaging.c:2544: 错误: expected ‘}’ before ‘_draw_chord’
_imaging.c:2545: 错误: expected ‘}’ before ‘_draw_ellipse’
_imaging.c:2546: 错误: expected ‘}’ before ‘_draw_pieslice’
_imaging.c:2547: 错误: expected ‘}’ before ‘_draw_ink’
_imaging.c:2552: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2561: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c: 在函数 ‘pixel_access_dealloc’ 中:
_imaging.c:2586: 错误: ‘PixelAccessObject’ 没有名为 ‘image’ 的成员
_imaging.c: 在顶层:
_imaging.c:2590: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2601: 错误: expected declaration specifiers or ‘...’ before ‘PyObject’
_imaging.c:2601: 错误: expected declaration specifiers or ‘...’ before ‘PyObject’
_imaging.c: 在函数 ‘pixel_access_setitem’ 中:
_imaging.c:2603: 错误: ‘PixelAccessObject’ 没有名为 ‘image’ 的成员
_imaging.c:2607: 错误: ‘PixelAccessObject’ 没有名为 ‘readonly’ 的成员
_imaging.c:2612: 警告: 隐式声明函数 ‘_getxy’
_imaging.c:2612: 错误: ‘xy’ 未声明 (在此函数内第一次使用)
_imaging.c:2616: 错误: ‘PyExc_IndexError’ 未声明 (在此函数内第一次使用)
_imaging.c:2620: 错误: ‘color’ 未声明 (在此函数内第一次使用)
_imaging.c:2623: 警告: 隐式声明函数 ‘getink’
_imaging.c:2629: 错误: ‘struct ImagingMemoryInstance’ 没有名为 ‘image32’ 的成员
_imaging.c:2629: 错误: ‘INT32’ 未声明 (在此函数内第一次使用)
_imaging.c:2629: 错误: expected expression before ‘)’ token
_imaging.c: 在顶层:
_imaging.c:2640: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2659: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2670: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2687: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2707: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2742: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2763: 错误: 数组元素的类型不完全
_imaging.c:2766: 错误: expected ‘}’ before ‘_getpixel’
_imaging.c:2767: 错误: expected ‘}’ before ‘_putpixel’
_imaging.c:2769: 错误: expected ‘}’ before ‘pixel_access_new’
_imaging.c:2772: 错误: expected ‘}’ before ‘_convert’
_imaging.c:2773: 错误: expected ‘}’ before ‘_convert2’
_imaging.c:2774: 错误: expected ‘}’ before ‘_convert_matrix’
_imaging.c:2775: 错误: expected ‘}’ before ‘_copy’
_imaging.c:2776: 错误: expected ‘}’ before ‘_copy2’
_imaging.c:2780: 错误: expected ‘}’ before ‘_crop’
_imaging.c:2781: 错误: expected ‘}’ before ‘_expand’
_imaging.c:2782: 错误: expected ‘}’ before ‘_filter’
_imaging.c:2783: 错误: expected ‘}’ before ‘_histogram’
_imaging.c:2785: 错误: expected ‘}’ before ‘_modefilter’
_imaging.c:2787: 错误: expected ‘}’ before ‘_offset’
_imaging.c:2788: 错误: expected ‘}’ before ‘_paste’
_imaging.c:2789: 错误: expected ‘}’ before ‘_point’
_imaging.c:2790: 错误: expected ‘}’ before ‘_point_transform’
_imaging.c:2791: 错误: expected ‘}’ before ‘_putdata’
_imaging.c:2793: 错误: expected ‘}’ before ‘_quantize’
_imaging.c:2796: 错误: expected ‘}’ before ‘_rankfilter’
_imaging.c:2798: 错误: expected ‘}’ before ‘_resize’
_imaging.c:2799: 错误: expected ‘}’ before ‘_rotate’
_imaging.c:2800: 错误: expected ‘}’ before ‘_stretch’
_imaging.c:2801: 错误: expected ‘}’ before ‘_transpose’
_imaging.c:2802: 错误: expected ‘}’ before ‘_transform2’
_imaging.c:2804: 错误: expected ‘}’ before ‘_isblock’
_imaging.c:2806: 错误: expected ‘}’ before ‘_getbbox’
_imaging.c:2807: 错误: expected ‘}’ before ‘_getcolors’
_imaging.c:2808: 错误: expected ‘}’ before ‘_getextrema’
_imaging.c:2809: 错误: expected ‘}’ before ‘_getprojection’
_imaging.c:2811: 错误: expected ‘}’ before ‘_getband’
_imaging.c:2812: 错误: expected ‘}’ before ‘_putband’
_imaging.c:2813: 错误: expected ‘}’ before ‘_fillband’
_imaging.c:2815: 错误: expected ‘}’ before ‘im_setmode’
_imaging.c:2817: 错误: expected ‘}’ before ‘_getpalette’
_imaging.c:2818: 错误: expected ‘}’ before ‘_putpalette’
_imaging.c:2819: 错误: expected ‘}’ before ‘_putpalettealpha’
_imaging.c:2823: 错误: expected ‘}’ before ‘_chop_invert’
_imaging.c:2824: 错误: expected ‘}’ before ‘_chop_lighter’
_imaging.c:2825: 错误: expected ‘}’ before ‘_chop_darker’
_imaging.c:2826: 错误: expected ‘}’ before ‘_chop_difference’
_imaging.c:2827: 错误: expected ‘}’ before ‘_chop_multiply’
_imaging.c:2828: 错误: expected ‘}’ before ‘_chop_screen’
_imaging.c:2829: 错误: expected ‘}’ before ‘_chop_add’
_imaging.c:2830: 错误: expected ‘}’ before ‘_chop_subtract’
_imaging.c:2831: 错误: expected ‘}’ before ‘_chop_add_modulo’
_imaging.c:2832: 错误: expected ‘}’ before ‘_chop_subtract_modulo’
_imaging.c:2833: 错误: expected ‘}’ before ‘_chop_and’
_imaging.c:2834: 错误: expected ‘}’ before ‘_chop_or’
_imaging.c:2835: 错误: expected ‘}’ before ‘_chop_xor’
_imaging.c:2840: 错误: expected ‘}’ before ‘_effect_spread’
_imaging.c:2844: 错误: expected ‘}’ before ‘_new_array’
_imaging.c:2845: 错误: expected ‘}’ before ‘_new_block’
_imaging.c:2848: 错误: expected ‘}’ before ‘_save_ppm’
_imaging.c:2857: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c: 在函数 ‘image_length’ 中:
_imaging.c:2886: 错误: ‘ImagingObject’ 没有名为 ‘image’ 的成员
_imaging.c: 在顶层:
_imaging.c:2891: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2906: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘image_as_sequence’
_imaging.c:2919: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyTypeObject’
_imaging.c:2940: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyTypeObject’
_imaging.c:2952: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyTypeObject’
_imaging.c:2966: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘pixel_access_as_mapping’
_imaging.c:2974: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyTypeObject’
_imaging.c:2996: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2997: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2998: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:2999: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3000: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3001: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3002: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3003: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3004: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3005: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3006: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3007: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3008: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3009: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3010: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3013: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3014: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3015: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3016: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3017: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3018: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3019: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3033: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3036: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3038: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3039: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
_imaging.c:3041: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘functions’
_imaging.c:3138: 警告: 返回类型默认为 ‘int’
_imaging.c: 在函数 ‘DL_EXPORT’ 中:
_imaging.c:3138: 错误: expected declaration specifiers before ‘init_imaging’
_imaging.c:3149: 错误: expected ‘{’ at end of input
error: command 'gcc' failed with exit status 1


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2007-07-29 12:21 

注册: 2007-07-28 22:38
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
源里面有


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2007-07-29 17:57 
头像

注册: 2007-03-01 20:46
帖子: 2393
地址: 湖南长沙
送出感谢: 0 次
接收感谢: 0 次
sudo apt-get install libpython-dev
之后再按照你自己的方法安装


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2007-11-06 20:00 
头像

注册: 2007-01-27 1:24
帖子: 7
送出感谢: 0 次
接收感谢: 0 次
sudo apt-get install python-image


_________________
Python, Perl, Pascal...
gentoo, ubuntu...
怀才就像是怀孕,日子久了才会被发现...


页首
 用户资料  
 
5 楼 
 文章标题 :
帖子发表于 : 2007-11-16 13:39 

注册: 2007-02-15 23:22
帖子: 7
送出感谢: 0 次
接收感谢: 0 次
jondynet 写道:
sudo apt-get install python-image

sudo apt-get install python-imaging


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 5 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译