我试图从源代码安装全局。我跑
./configure --with-exuberant-ctags=/usr/bin/ctags
并且运行正常。但是,当我运行时
make
它给出了错误
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o gtags-cscope gtags-cscope.o alloc.o basename.o
build.o command.o display.o edit.o exec.o find.o help.o history.o input.o logdir.o mouse.o mygetenv.o mypop
en.o ../libparser/libgloparser.a ../libutil/libgloutil.a ../libdb/libglodb.a ../libglibc/libgloglibc.a -llt
dl -lncurses
libtool: link: gcc -g -O2 -o gtags-cscope gtags-cscope.o alloc.o basename.o build.o command.o display.o edi
t.o exec.o find.o help.o history.o input.o logdir.o mouse.o mygetenv.o mypopen.o ../libparser/libgloparser
.a ../libutil/libgloutil.a ../libdb/libglodb.a ../libglibc/libgloglibc.a -lltdl -lncurses
/usr/bin/ld: input.o: undefined reference to symbol 'erasechar'
/usr/lib/libtinfo.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:461: gtags-cscope] Error 1
make[2]: Leaving directory '/home/pspencil/tmp/global-6.5.7/gtags-cscope'
make[1]: *** [Makefile:517: all-recursive] Error 1
make[1]: Leaving directory '/home/pspencil/tmp/global-6.5.7'
make: *** [Makefile:424: all] Error 2
我已经安装了包ncurses
,它显然应该提供删除字符符号。我在 Google 上找不到任何有用的信息。
最佳答案
显式链接tinfo
库。
NCurses 使用 tinfo,根据我的阅读,ncurses 应该在它自己的库中包含 tinfo 功能,也许这最近已经改变了。
关于archlinux - 在 Arch linux 上安装全局时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46916744/