[问题]编译过程中少组件

编译安装或者制作Deb包
回复
xile
帖子: 29
注册时间: 2007-08-16 19:48
送出感谢: 0
接收感谢: 0

[问题]编译过程中少组件

#1

帖子 xile » 2008-08-10 20:15

这是我第一次编译安装软件,是一个生物信息学方面的软件mfold_util-4.0.tar.gz。安装说明中只给出了在redhad平台下的安装过程。并强调说安装前需要下列程序和库:XFree86, glut, libjpeg, libpng和gd。请教各位大侠这些东西怎么装?

另外,我不知道我的ubuntu8.04中是不是已经装好了它们,直接运行./configure后出现了下面的提示:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for glBitmap in -lGL... no
checking for gluDisk in -lGLU... no
checking for IceAcceptConnection in -lICE... no
checking for SmcModifyCallbacks in -lSM... no
checking for XAllowEvents in -lX11... no
checking for XInput_find_display in -lXi... no
checking for XmuClientWindow in -lXmu... no
checking for XpmAttributesSize in -lXpm... no
checking for fontset in -lfontconfig... no
checking for ft_debug_init in -lfreetype... no
checking for gdImageFill in -lgd... no
checking for glutPopWindow in -lglut... no
checking for DrawBox in -lgif... no
checking for jpeg_write_marker in -ljpeg... no
checking for log in -lm... yes
checking for png_init_io in -lpng12... no
checking for zcalloc in -lz... no
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for error_at_line... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for sqrt... yes
checking for strchr... yes
checking for strspn... yes
checking for strstr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

然后make通不过:
make all-recursive
make[1]: Entering directory `/home/ubuntu/Desktop/mfold_util-4.0'
Making all in lib
make[2]: Entering directory `/home/ubuntu/Desktop/mfold_util-4.0/lib'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT tgdFont6x9.o -MD -MP -MF ".deps/tgdFont6x9.Tpo" -c -o tgdFont6x9.o tgdFont6x9.c; \
then mv -f ".deps/tgdFont6x9.Tpo" ".deps/tgdFont6x9.Po"; else rm -f ".deps/tgdFont6x9.Tpo"; exit 1; fi
tgdFont6x9.c:14:16: 错误: gd.h:没有该文件或目录
tgdFont6x9.c:1300: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdFont6x9Rep’
tgdFont6x9.c:1308: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gdFont6x9’
make[2]: *** [tgdFont6x9.o] 错误 1
make[2]: Leaving directory `/home/ubuntu/Desktop/mfold_util-4.0/lib'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/ubuntu/Desktop/mfold_util-4.0'
make: *** [all] 错误 2

请各位大侠指点!万分感谢!
xile
帖子: 29
注册时间: 2007-08-16 19:48
送出感谢: 0
接收感谢: 0

#2

帖子 xile » 2008-08-11 15:08

有没有大侠路过帮一下?
xile
帖子: 29
注册时间: 2007-08-16 19:48
送出感谢: 0
接收感谢: 0

#3

帖子 xile » 2008-08-11 18:02

再次肯请路过的大侠出手相助!
头像
HuntXu
论坛版主
帖子: 5776
注册时间: 2007-09-29 3:09
送出感谢: 0
接收感谢: 6 次

#4

帖子 HuntXu » 2008-08-11 18:09

tgdFont6x9.c:14:16: 错误: gd.h:没有该文件或目录
照道理少库不可能configure过啊...难道引用错位置?自己打开那个文件看下...

代码: 全选

hunt@bubble:~$ find /usr/{,local}/include/ -iname gd.h
/usr//include/libwmf/gd/gd.h
/usr//include/libwmf/gd.h
hunt@bubble:~$ sudo pacman -Qo /usr/include/libwmf/gd.h
/usr/include/libwmf/gd.h属于libwmf 0.2.8.4-4
HUNT Unfortunately No Talent...
xile
帖子: 29
注册时间: 2007-08-16 19:48
送出感谢: 0
接收感谢: 0

#5

帖子 xile » 2008-08-12 16:07

HuntXu 写了:
tgdFont6x9.c:14:16: 错误: gd.h:没有该文件或目录
照道理少库不可能configure过啊...难道引用错位置?自己打开那个文件看下...

代码: 全选

hunt@bubble:~$ find /usr/{,local}/include/ -iname gd.h
/usr//include/libwmf/gd/gd.h
/usr//include/libwmf/gd.h
hunt@bubble:~$ sudo pacman -Qo /usr/include/libwmf/gd.h
/usr/include/libwmf/gd.h属于libwmf 0.2.8.4-4
谢谢!系统中确实没有gd.h。我编译安装了gd-2.0.33就没有上面的错误。
回复

回到 “编译或打包”