免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 2534 | 回复: 22
打印 上一主题 下一主题

gd 的安装:高手请近。在线等!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-12-26 11:22 |只看该作者 |倒序浏览
我为了安装别的软件,要安装GD库。
我现在安装的是gd-2.0.16
安装过程是:
#gunzip -c gd-2.0.16.tar.gz |tar xvf -
mv gd-2.0.16 gd
cd gd
env CPPFLAGS="-I../zlib -I../libpng" LDFLAGS="-L../zlib -L../libpng"
./configure --disable-shared \
--without-freetype\
--without-jpeg \

#make

在make 之后出现:

make  all-recursive
Making all in config
Making all in test
/bin/bash ./libtool --mode=link gcc  -g -O2   -L/usr/local/lib -R/usr/local/lib -o circletexttest  circletexttest.o ./libgd.la -lpng -lz -lm
gcc -g -O2 -o circletexttest circletexttest.o  -L/usr/local/lib ./.libs/libgd.a -lpng -lz -lm -R/usr/local/lib
Undefined                       first referenced
symbol                             in file
gdImageCreateFromJpeg               circletexttest.o
ld: fatal: Symbol referencing errors. No output written to circletexttest
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `circletexttest'
Current working directory /usr/local/src/gd-2.0.16
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/src/gd-2.0.16
*** Error code 1
make: Fatal error: Command failed for target `all'

这是什么问题呀!
能不能解释一下。

论坛徽章:
0
2 [报告]
发表于 2003-12-26 16:50 |只看该作者

gd 的安装:高手请近。在线等!!!

为什么没有人回答呢

论坛徽章:
0
3 [报告]
发表于 2003-12-26 19:53 |只看该作者

gd 的安装:高手请近。在线等!!!

  
gd是什么东东,我都不知道,别说帮忙了。

论坛徽章:
0
4 [报告]
发表于 2003-12-29 15:01 |只看该作者

gd 的安装:高手请近。在线等!!!

为什么没有人回答我的问题呢

论坛徽章:
0
5 [报告]
发表于 2003-12-29 15:09 |只看该作者

gd 的安装:高手请近。在线等!!!

env CPPFLAGS="-I../zlib -I../libpng" LDFLAGS="-L../zlib -L../libpng"

--without-freetype\
--without-jpeg \

一定要 without 吗?

论坛徽章:
0
6 [报告]
发表于 2004-01-02 10:44 |只看该作者

gd 的安装:高手请近。在线等!!!

是呀,我不需要那两个东西

论坛徽章:
0
7 [报告]
发表于 2004-01-02 10:46 |只看该作者

gd 的安装:高手请近。在线等!!!

把里面的readme贴出来看看

论坛徽章:
0
8 [报告]
发表于 2004-01-02 10:59 |只看该作者

gd 的安装:高手请近。在线等!!!

more  README.TXT
For documentation, browse index.html.

Quick install guide:

1. Type './configure'
2. Type 'make install'

Generic configuration instructions are in the file INSTALL.

The following 3rd-party libraries will be used by gd if found by configure.
While gd will compile and install even without these, we suggest that at
least zlib and libpng are installed, and recommend that freetype and jpeg
are installed as well:

1. zlib, available from http://www.gzip.org/zlib/
   Data compression library

2. libpng, available from http://www.libpng.org/pub/png/
   Portable Network Graphics library; requires zlib

3. FreeType 2.x, available from http://www.freetype.org/
   Free, high-quality, and portable font engine

4. JPEG library, available from http://www.ijg.org/
   Portable JPEG compression/decompression library

5. XPM, available from http://koala.ilog.fr/lehors/xpm.html
   X Pixmap library

If any of these libraries are installed, but not detected by configure,
you can use the following command line options:

--with-png=DIR

  Without the DIR argument, configure will check for png header files and
  libraries in a default location. To switch off png support, use
  --without-png, or --with-png=no.

  If the DIR argument is specified, configure tries to find the png header
  files in DIR/include, and the libraries in DIR/lib. To accommodate
  OpenBSD ports, DIR/include/libpng is also checked if necessary.

--with-freetype=DIR

  Dto. for freetype 2.x library. The search path for include files is
  DIR/include/freetype2.

--with-jpeg=DIR

  Dto. for jpeg library.

--with-xpm=DIR

  Dto. for xpm library.

Last but not least, if all else fails, you can still try Tom Boutell's
original, perl-based configure utility, which is included in this
distribution as configure.pl, or even the included makefile.sample.

这是GD的安装README. 我是要在mrtg 用到GD。

论坛徽章:
0
9 [报告]
发表于 2004-01-02 11:06 |只看该作者

gd 的安装:高手请近。在线等!!!

上面的相关软件装齐了吗?
PATH环境对不对?

论坛徽章:
0
10 [报告]
发表于 2004-01-02 11:09 |只看该作者

gd 的安装:高手请近。在线等!!!

路径没问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP