LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1065|回复: 9

帮我看看这个emacs的编译错误

[复制链接]
发表于 2004-12-7 14:24:40 | 显示全部楼层 |阅读模式
cannot find -lXm,只指什么?


  1. tfile.o vm-limit.o  widget.o    ../lwlib/liblw.a  -lXm -lXpm -lXp -lXmu -lXt -lSM -lICE -lXext -ltiff -ljpeg -lpng -lz -lm -lungif -lXpm -lX11  -lncurses   -lm -lgcc -lc -lgcc /usr/lib/crtn.o
  2. /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lXm
  3. collect2: ld returned 1 exit status
  4. make[1]: *** [temacs] 错误 1
  5. make[1]: *** 正在等待未完成的任务....
  6. ../lib-src/make-docfile -a ../etc/DOC -d /var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/src ../lisp/mouse.elc ../lisp/select.elc ../lisp/scroll-bar.elc ../lisp/vmsproc.elc ../lisp/vms-patch.elc ../lisp/ls-lisp.elc ../lisp/dos-fns.elc ../lisp/w32-fns.elc ../lisp/dos-w32.elc ../lisp/disp-table.elc ../lisp/dos-vars.elc ../lisp/international/ccl.elc ../lisp/international/codepage.elc ../lisp/abbrev.elc ../lisp/buff-menu.elc ../lisp/byte-run.elc ../lisp/cus-start.el ../lisp/custom.elc ../lisp/emacs-lisp/backquote.elc ../lisp/emacs-lisp/lisp-mode.elc ../lisp/emacs-lisp/lisp.elc ../lisp/facemenu.elc ../lisp/faces.elc ../lisp/files.elc ../lisp/float-sup.elc ../lisp/format.elc ../lisp/frame.elc ../lisp/help.elc ../lisp/indent.elc ../lisp/isearch.elc ../lisp/loadup.el ../lisp/loaddefs.el ../lisp/bindings.elc ../lisp/map-ynp.elc ../lisp/env.elc../lisp/international/mule.elc ../lisp/international/mule-conf.el ../lisp/international/mule-cmds.elc ../lisp/international/characters.elc ../lisp/international/utf-8.elc ../lisp/international/utf-16.elc ../lisp/international/latin-1.el ../lisp/international/latin-2.el ../lisp/international/latin-3.el ../lisp/international/latin-4.el ../lisp/international/latin-5.el ../lisp/international/latin-8.el ../lisp/international/latin-9.el ../lisp/case-table.elc ../lisp/language/chinese.elc ../lisp/language/cyrillic.elc ../lisp/language/indian.elc ../lisp/language/devanagari.elc ../lisp/language/english.elc ../lisp/language/ethiopic.elc ../lisp/language/european.elc ../lisp/language/czech.elc ../lisp/language/slovak.elc ../lisp/language/romanian.elc ../lisp/language/greek.elc ../lisp/language/hebrew.elc ../lisp/language/japanese.elc ../lisp/language/korean.elc ../lisp/language/lao.elc ../lisp/language/thai.elc ../lisp/language/tibetan.elc ../lisp/language/vietnamese.elc ../lisp/language/misc-lang.elc ../lisp/international/ucs-tables.elc ../lisp/menu-bar.elc ../lisp/paths.el ../lisp/register.elc ../lisp/replace.elc ../lisp/simple.elc ../lisp/startup.elc ../lisp/subr.elc ../lisp/term/tty-colors.elc ../lisp/textmodes/fill.elc ../lisp/textmodes/page.elc ../lisp/textmodes/paragraphs.elc ../lisp/textmodes/text-mode.elc ../lisp/vc-hooks.elc ../lisp/ediff-hook.elc ../lisp/widget.elc ../lisp/window.elc ../lisp/version.el
  7. make[1]: *** 正在等待未完成的任务....
  8. make[1]: Leaving directory `/var/tmp/portage/emacs-21.3-r3/work/emacs-21.3/src'
  9. make: *** [src] 错误 2

  10. !!! ERROR: app-editors/emacs-21.3-r3 failed.
  11. !!! Function src_compile, Line 83, Exitcode 2
  12. !!! (no error message)
  13. !!! If you need support, post the topmost build error, NOT this status message.


复制代码
发表于 2004-12-7 22:26:36 | 显示全部楼层
应该是没有 motif 的库吧,试试
USE="Xaw3d -motif" emerge emacs
发表于 2004-12-7 22:34:33 | 显示全部楼层
这个是X 6.8.1的问题。不能够发现libXm.修改一下configure就可以了。
 楼主| 发表于 2004-12-9 09:01:02 | 显示全部楼层
-motif倒是能装上,但是菜单变得很难看而且用起来不方便。configure没修改明白,再提示一下呗?

xemacs也没装上,gdbm是装了,还要怎么处理
checking for TTY-related features
checking for ncurses/curses.h... no
checking for ncurses/term.h... no
checking for ncurses/curses.h... no
checking for database support
checking for ndbm.h... yes
checking for dbm_open in -lgdbm... no
checking for dbm_open in -lgdbm_compat using extra libs -lgdbm... no
Error: Required GNU DBM support cannot be provided.

!!! ERROR: app-editors/xemacs-21.4.15-r2 failed.
!!! Function src_compile, Line 164, Exitcode 1
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
发表于 2004-12-9 10:33:02 | 显示全部楼层
USE=gtk emerge emacs-cvs
发表于 2004-12-9 12:52:43 | 显示全部楼层
最初由 graydream 发表
-motif倒是能装上,但是菜单变得很难看而且用起来不方便。configure没修改明白,再提示一下呗?

xemacs也没装上,gdbm是装了,还要怎么处理
checking for TTY-related features
checking for ncurses/curses.h... no
checking for ncurses/term.h... no
checking for ncurses/curses.h... no
checking for database support
checking for ndbm.h... yes
checking for dbm_open in -lgdbm... no
checking for dbm_open in -lgdbm_compat using extra libs -lgdbm... no
Error: Required GNU DBM support cannot be provided.

!!! ERROR: app-editors/xemacs-21.4.15-r2 failed.
!!! Function src_compile, Line 164, Exitcode 1
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

我编译了,没有遇到问题。
这里和你的有点差别。checking for dbm_open in -lgdbm... no。我的上面是yes。
你有这个软件包吗?sys-libs/gdbm。
/usr
/usr/lib
/usr/lib/libgdbm.so.2.0.0
/usr/lib/libgdbm.so.2 -> libgdbm.so.2.0.0 1099695396
/usr/lib/libgdbm.so -> libgdbm.so.2.0.0 1099695396
/usr/lib/libgdbm.la
/usr/lib/libgdbm.a
/usr/include
/usr/include/gdbm.h
/usr/include/gdbm
/usr/include/gdbm/dbm.h
/usr/include/gdbm/ndbm.h
/usr/share
/usr/share/man
/usr/share/man/man3
/usr/share/man/man3/gdbm.3.gz
/usr/share/info
/usr/share/info/gdbm.info.gz
/usr/share/doc
/usr/share/doc/gdbm-1.8.0-r5
/usr/share/doc/gdbm-1.8.0-r5/ChangeLog.gz
/usr/share/doc/gdbm-1.8.0-r5/NEWS.gz
/usr/share/doc/gdbm-1.8.0-r5/README.gz
发表于 2004-12-9 12:55:37 | 显示全部楼层
补充。
从你的第一个帖子看,是因为libXm找不到。你安装的Xorg-x11版本是6.8.1吧?
你干个这个事情。
ln -s /usr/lib/libX* /usr/X11R6/lib/.
 楼主| 发表于 2004-12-11 00:45:15 | 显示全部楼层
emacs装上了,不过xemacs的问题依然存在,sys-libs/gdbm包是有的,重新emerge了一个更新的版本,问题依旧,奇怪了。
发表于 2004-12-11 22:49:46 | 显示全部楼层
你做了我的这步了吗?
n -s /usr/lib/libX* /usr/X11R6/lib/.
 楼主| 发表于 2004-12-12 00:06:54 | 显示全部楼层
最初由 blackwhite 发表
你做了我的这步了吗?
n -s /usr/lib/libX* /usr/X11R6/lib/.




不好意思,这么作算是装上了吧,装上了21.4.15-r2,我刚这么作的时候,尝试了一下~x86的21.4.9,还是不好用,如下
checking for esd_play_stream... yes
checking for TTY-related features
checking for ncurses/curses.h... no
checking for ncurses/term.h... no
checking for ncurses/curses.h... no
checking for database support
checking for ndbm.h... yes
checking for dbm_open in -lgdbm... no
Error: Required GNU DBM support cannot be provided.

刚才又试了x86的21.4.15-r2,发现没问题了,
checking for database support
checking for ndbm.h... yes
checking for dbm_open in -lgdbm... no
checking for dbm_open in -lgdbm_compat using extra libs -lgdbm... yes

反正还是怪怪的,呵呵



我以为这么作跟xemacs的gdbm无关呢,
这个为什么呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表