- 主题:编译ytht bbs web问题!
在安装了gd后在nju09下make除了如下提示不知怎么解决!
[root@BBS nju09]# make
gcc -Wall -O2 -mmmx -msse -mcpu=pentium4 -march=pentium4 -pipe -DCONF_HAVE_OPENP
TY -I../include -I../ythtlib -I../libythtbbs -g -DLINUX -g -o regimage regimage.
o -L/home/bbs/bin -lythtbbs -lytht -lgd
regimage.o(.text+0x332): In function `main':
/home/bbs/bbssrc/nju09/regimage.c:117: undefined reference to `gdImagePng'
collect2: ld returned 1 exit status
make: *** [regimage] Error 1
[root@BBS nju09]#
其中gd.h文件在/usr/local/include/目录下
--
FROM 202.201.20.50
gd版本不够吧
【 在 虫虫vim (虫虫) 的大作中提到: 】
: 在安装了gd后在nju09下make除了如下提示不知怎么解决!
: [root@BBS nju09]# make
: gcc -Wall -O2 -mmmx -msse -mcpu=pentium4 -march=pentium4 -pipe -DCONF_HAVE_OPENP
: TY -I../include -I../ythtlib -I../libythtbbs -g -DLINUX -g -o regimage regimage.
: o -L/home/bbs/bin -lythtbbs -lytht -lgd
: ...................
--
FROM 211.167.203.8
不会吧!
gd-2.0.22.tar.gz
应该可以了吧,在gd.h中都有该函数的申明
【 在 lepton 的大作中提到: 】
: gd版本不够吧
: 【 在 虫虫vim (虫虫) 的大作中提到: 】
: : 在安装了gd后在nju09下make除了如下提示不知怎么解决!
: : [root@BBS nju09]# make
: : gcc -Wall -O2 -mmmx -msse -mcpu=pentium4 -march=pentium4 -pipe -DCONF_HAVE_OPENP
: (以下引言省略...)
--
FROM 202.201.20.50
vi /etc/ld.so.conf
加入 /usr/local/lib
然后运行ldconfig
【 在 虫虫vim (虫虫) 的大作中提到: 】
: 在安装了gd后在nju09下make除了如下提示不知怎么解决!
: [root@BBS nju09]# make
: gcc -Wall -O2 -mmmx -msse -mcpu=pentium4 -march=pentium4 -pipe -DCONF_HAVE_OPENP
: TY -I../include -I../ythtlib -I../libythtbbs -g -DLINUX -g -o regimage regimage.
: o -L/home/bbs/bin -lythtbbs -lytht -lgd
: ...................
--
FROM 211.167.203.8
问题依旧
【 在 lepton 的大作中提到: 】
: vi /etc/ld.so.conf
: 加入 /usr/local/lib
: 然后运行ldconfig
: 【 在 虫虫vim (虫虫) 的大作中提到: 】
: : 在安装了gd后在nju09下make除了如下提示不知怎么解决!
: : [root@BBS nju09]# make
: (以下引言省略...)
--
FROM 202.201.20.50
哦 你自己编译安装的?
安装libpng-devel先
【 在 虫虫vim (虫虫) 的大作中提到: 】
: 问题依旧
: 【 在 lepton 的大作中提到: 】
: : vi /etc/ld.so.conf
: : 加入 /usr/local/lib
: : 然后运行ldconfig
: : 【 在 虫虫vim (虫虫) 的大作中提到: 】
: : (以下引言省略...)
--
FROM 211.167.203.8
然后编译安装libgd
【 在 lepton (在黑夜中等待黎明) 的大作中提到: 】
: 哦 你自己编译安装的?
: 安装libpng-devel先
: 【 在 虫虫vim (虫虫) 的大作中提到: 】
: : 问题依旧
--
FROM 211.167.203.8
是的,谢谢,我试试!
【 在 lepton 的大作中提到: 】
: 哦 你自己编译安装的?
: 安装libpng-devel先
: 【 在 虫虫vim (虫虫) 的大作中提到: 】
: : 问题依旧
--
FROM 202.201.20.50
要重新编译安装libgd啊!
【 在 虫虫vim (虫虫) 的大作中提到: 】
: 是的,谢谢,我试试!
: 【 在 lepton 的大作中提到: 】
: : 哦 你自己编译安装的?
: : 安装libpng-devel先
: : 【 在 虫虫vim (虫虫) 的大作中提到: 】
--
FROM 211.167.203.8
问题解决,多谢!
【 在 lepton 的大作中提到: 】
: 要重新编译安装libgd啊!
: 【 在 虫虫vim (虫虫) 的大作中提到: 】
: : 是的,谢谢,我试试!
--
FROM 202.201.20.50