2017-10-17 9 views
-1

우분투가있는 AWS ec2 인스턴스에 omnitty을 설치하고 있습니다.libncurses.so.5 : omnitty 설치 중 명령 줄에서 DSO가 누락되었습니다.

# 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 '[email protected]@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 
+0

이 될 것입니다 :

추가 -lncurses 및

메이크 메이크에 -ltinfo은 다음과 같습니다 어떤 용도의? ...... # readelf -s /lib/x86_64-linux-gnu/libncurses.so.5 | grep delwin @@ NCURSES_5.0.19991023 161 : 0000000000009e60 182 FUNC GLOBAL DEFAULT 13 delwin @@ NCURSES_5.0.19991023 –

+0

제 답변이 맞으면 제 질문도 맞아야합니다. 그렇다고 생각하시면 -1에서 다시 투표하십시오. 그렇지 않으면 왜 내게 downvoted되었습니다 알려 주시기 바랍니다 –

답변

1

찾을 솔루션 :

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

내 대답은 바로 내 질문도 바로 그렇게해야합니다, -1에서 다시 투표하시기 바랍니다 그렇지 않으면 그것이 downvoted되었습니다 왜 내게 알려주십시오 –