|
|
|
|
 为什么无法安装pygdchart2 - Jimmy_Fu [ 2006-02-08 21:08 | 2,322 byte(s)]
 Re: 为什么无法安装pygdchart2 - Jimmy_Fu [ 2006-02-08 22:51 | 88 byte(s)]
 Re: 为什么无法安装pygdchart2 - Byllan [ 2006-02-10 10:27 | 98 byte(s)]
 Re: 为什么无法安装pygdchart2 - Byllan [ 2006-02-08 21:52 | 32 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
已经三天了,还没有安装上pygdchart2。现在正需要用这个python模块!!!!
我看了模块自带的说明。但安装说明说一定要先安装zlib-1.2.3,freetype-2.1.10.tar,libpng-1.2.8-config,jpegsrc.v6b,gd-2.0.33,gdchart0.11.4dev。我就按这个顺序安装了。全部都是./configure , make , make instal的默认安装模式,但问题就出在安装gdchart0.11.4dev的时候,它没有configure文件,我就直接make了,但是有错误,我看了makefile文件,
前几行是这样的:
CC=gcc
# gcc 2.7.1 or better is required
# CFLAGS=
# CFLAGS=-g -ansi -pedantic
# ----- build path -----
GDC_INCL=./
GDC_LD=./
GDC_LIB=libgdc.a
# ----- install locations -----
PREFIX_INC = /usr/local/include
PREFIX_LIB = /usr/local/lib
# INCLUDEDIRS=-I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include
# ----- lib gd -----
# GDChart requires the gd library - www.boutell.com/gd/
# libgd 1.8.4 or better is required. Don't use 2.0.0
# if it's not installed in a standard location edit these lines for your installation
GD_INCL=../gd-1.8.4/
GD_LD=../gd-1.8.4/
GD_LIB=libgd.a
# if you're using gd2.x, use these lines
# (it's typically built as a shared lib)
# GD_INCL = ../gd-2.0.0/
# GD_LD = ../gd2/
# GD_LIB = ../libgd.so
# ----- lib png -----
# libgd requires libpng
# if it's not installed in a standard location edit these lines for your installation
# PNG_INCL = ../libpng-1.0.8
# PNG_LD = ../libpng-1.0.8
# ----- lib z -----
# libgd requires zlib
# if it's not installed in a standard location edit these lines for your installation
# ZLIB_INCL = ../zlib-1.1.3
# ZLIB_LD = ../zlib-1.1.3
其实我根本就看不懂
但问题好像出在gd-2.0.33上面,文件中的是gd-1.8.4
那么我应该怎么修改makefile呢?
还亲告知这几行究竟是什么意思???
我真是着急啊!身边也没有一个懂的人可以问问
大家帮帮忙啊!!
|
|
|
[Original]
[Print]
[Top]
|
|
|