archlinux - 在 Arch linux 上安装全局时出错

标签 archlinux

我试图从源代码安装全局。我跑

./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/

相关文章:

java - 连接到 WLAN 时 Netbeans 变慢

c++ - 如何让QtCreator中的应用程序使用KDE oxygen主题?

c++ - 打包 Linux 软件,同时保持合理的文件结构

linux - 如何使用fdisk命名分区?

python - 在 Archlinux 上通过 Pyenv 编译 Python 但缺少 OpenSSL

Arch Arm 的交叉编译不会生成功能可执行文件

linux - udev 规则不适用于 ThinkPad X200 dock

r-markdown - 无法在 Arch Linux 上编译 Rmarkdown 文件

installation - 如何从 AUR 安装还需要依赖 AUR 包的包

vagrant 'hostonlyif' 创建不工作