编译W3M出错.......
# ./configurechecking for gawk... 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 how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for perl... /usr/bin/perl
checking for nkf... no
checking for man... /usr/bin/man
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking if m17n support is enabled... yes
checking if unicode support is enabled... yes
checking if message l10n... no
checking if japanese support is enabled... no
checking which charset is used for display... UTF-8
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking if color escape sequence for kterm/pxvt is enabled... yes
checking if ansi color escape sequence support is enabled... yes
checking if background color support is enabled... yes
checking if image is enabled... yes
checking image library... gdk-pixbuf imlib imlib2
configure: WARNING: GdkPixbuf is not installed.Install GdkPixbuf (version >= 0.16.0)
configure: WARNING: Imlib is not installed.Install Imlib (version >= 1.9.8)
checking Imlib2 version... 1.1.2
checking if xface is enabled... yes
checking for uncompface... no
configure: WARNING: uncompface is not installed.
checking default keymap... w3m
checking if popup menu is enabled... yes
checking if mouse operation enabled... yes
checking if URL history is enabled... yes
checking if alarm is enabled... yes
checking if cookie is enabled... yes
checking if digest auth is enabled... yes
checking if nntp is enabled... yes
checking if gopher is enabled... no
checking if IPv6 support is enabled... yes
checking if IPv6 API available... checking for getaddrinfo... yes
checking if struct sockaddr_storage has an ss_family member... yes
checking if dictionary lookup is enabled... yes
checking if help cgi is enabled... yes
checking if external URI loader is enabled... yes
checking if w3mmail is used... yes
checking if migemo is supported with... migemo -t egrep /usr/local/share/migemo/migemo-dict
checking which editor is used by default... /usr/bin/vi
checking which mailer is used by default... /usr/bin/mail
checking which external browser is used by default... /usr/bin/mozilla
checking for -lbsd... found at /usr/lib
checking for -lBSD... not found
checking for -l44bsd... not found
checking for -lsocket... not found
checking for -lnsl... found at /usr/lib
checking for -ldld... not found
checking for -ldl... found at /usr/lib
checking if SSL is suported... yes
checking for pkg-config... /usr/bin/pkg-config
checking for openssl... yes
checking SSL_CFLAGS... -I/usr/kerberos/include
checking SSL_LIBS... -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5-lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz
checking for SSL_new in -lssl... yes
checking if SSL certificate verify is enabled... yes
checking for sqrt... no
checking for sqrt in -lm... yes
checking for Gpm_Open in -lgpm... yes
checking terminal library... yes
checking for tgetent in -lterminfo... no
checking for tgetent in -lmytinfo... no
checking for tgetent in -ltermlib... no
checking for tgetent in -ltermcap... yes
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 GC library exists... yes
checking gc.h usability... no
checking gc.h presence... no
checking for gc.h... no
checking GC header location... /usr /usr/local /root
checking /usr/include... checking gc.h usability... no
checking gc.h presence... no
checking for gc.h... no
checking /usr/include/gc... checking gc.h usability... no
checking gc.h presence... no
checking for gc.h... no
checking /usr/local/include... checking gc.h usability... no
checking gc.h presence... no
checking for gc.h... no
checking /usr/local/include/gc... checking gc.h usability... no
checking gc.h presence... no
checking for gc.h... no
checking /root/include... checking gc.h usability... no
checking gc.h presence... no
checking for gc.h... no
checking /root/include/gc... checking gc.h usability... no
checking gc.h presence... no
checking for gc.h... no
configure: error: gc.h not found 另外,这个软件好象是日本人写的吧?是的,就不用了
:( 用日本人写的软件又不会给自己造成什么损失,为什么不用?
看起来好像是少gc.h,找找看有没有。 用日本人写的软件又不会给自己造成什么损失,为什么不用?
看起来好像是少gc.h,找找看有没有。
这是干什么用的?在哪儿找呢?GCC和GCC-C++都是安装了的啊 “.h为后缀的文件,是程序所包含的头文件”
gc.h这玩意儿到哪儿去找哦?!
“ gcc的错误类型及对策
gcc编译器如果发现源程序中有错误,就无法继续进行,也无法生成最终的可执行文件。为了便于修改,gcc给出错误资讯,我们必须对这些错误资讯逐个进行分析、处理,并修改相应的语言,才能保证源代码的正确编译连接。gcc给出的错误资讯一般可以分为四大类,下面我们分别讨论其产生的原因和对策
第二类∶头文件错误
错误资讯∶找不到头文件head.h(Can not find include file head.h)。这类错误是源代码文件中的包含头文件有问题,可能的原因有头文件名错误、指定的头文件所在目录名错误等,也可能是错误地使用了双引号和尖括号。 ” README是这样写的,E文较差,请老大们帮忙翻一下:
Follow these instructions to install w3m.
- You need latest version of GC library (at least 6.1?).
You can get GC library from
http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/
Note: if you're using GC library 6.1, you should install gc.h
to PREFIX/include:
# cp gc-6.1/include/gc.h PREFIX/include 找来GC 6.4编译安装好,不知道到哪儿寻这个该死的gc.h拷贝到那个现在也不知在哪儿的PREFIX/include目录,FT....... gc.h总算找着了,可是PREFIX,你在哪儿啊? 一般而言,PREFIX指的是 Makefile 里的环境变量 PREFIX,如果你在 ./configure的时候指定了 --prefix=/usr 参数,那就是 /usr,否则默认是 /usr/local。.h 文件一般位于软件的 include 目录里。这是基础知识。
include 目录
find / -iname gc.h
页:
[1]