Amazon web services libncurses.so.5:添加符号时出错:安装omnitty时命令行中缺少DSO

Amazon web services libncurses.so.5:添加符号时出错:安装omnitty时命令行中缺少DSO,amazon-web-services,amazon-ec2,ubuntu-14.04,ncurses,Amazon Web Services,Amazon Ec2,Ubuntu 14.04,Ncurses,我在AWS ec2实例上安装Ubuntu # uname -a Linux ip-172-31-37-63 4.4.0-1038-aws #47-Ubuntu SMP Thu Sep 28 20:05:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux 获取错误: # make gcc -g -O2 -I/usr/local/include -Wall -DOMNITTY_VERSION=\"0.3.0\" -o omnitty minibuf.o

我在AWS ec2实例上安装Ubuntu

# uname -a

    Linux ip-172-31-37-63 4.4.0-1038-aws #47-Ubuntu SMP Thu Sep 28 20:05:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
获取错误:

# make
gcc -g -O2 -I/usr/local/include -Wall -DOMNITTY_VERSION=\"0.3.0\" -o omnitty minibuf.o machine.o main.o machmgr.o help.o menu.o curutil.o  -L/usr/local/lib -lrote
/usr/bin/ld: help.o: undefined reference to symbol 'delwin@@NCURSES_5.0.19991023'
//lib/x86_64-linux-gnu/libncurses.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:18: recipe for target 'omnitty' failed
make: *** [omnitty] Error 1
找到的解决方案:

在Makefile中添加了-lncures和-ltinfo

Makefile如下所示:

omnitty: $(objects)
        $(CC) $(CFLAGS)  -o omnitty $(objects) $(LDFLAGS) $(LIBS) -lncurses  -ltinfo

这有用吗?…#readelf-s/lib/x86_64-linux-gnu/libncurses.so.5|grep delwin@NCURSES_5.0.19991023161:000000000000000000 9E60 182 FUNC全局默认值13 delwin@NCURSES_5.0.19991023既然我的答案是正确的,那么我的问题也应该是正确的,如果你觉得它是对的,请从-1开始投票,否则让我知道为什么它被否决了因为我的答案是对的,那么我的问题也应该是对的,所以,请从-1开始投票,如果你觉得它是对的,请让我知道为什么它被否决了