티스토리 뷰

가끔 make를 할 때 아래와 같은 오류 메시지가 나올 때가 있습니다

p2p/Makefile.am:6: error: Libtool library used but 'LIBTOOL' is undefined
p2p/Makefile.am:6:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
p2p/Makefile.am:6:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
p2p/Makefile.am:6:   If 'LT_INIT' is in 'configure.ac', make sure
p2p/Makefile.am:6:   its definition is in aclocal's search path.

 

해결책 #1

# fedora / RHEL
# sudo yum install libtool

# ubuntu
# sudo apt install libtool

libtool 패키지가 설치가 안 되어 그럴 수도 있으니 libtool 패키지를 설치 합니다

 

해결책 #2

# autoreconf --install

autoreconf를 재 실행 해주면 됩니다

 

해결책 #3

매크로 파일 경로에 문제가 있어 위와 같은 오류가 나올 수 있습니다

아마 패키지 버전이 꼬여서 매크로 파일 경로에 문제가 생길 수도 있으며 아래 명령어로 현재 설정된 매크로 파일 경로를 확인할 수 있습니다

# aclocal --print-ac-dir
/usr/local/share/aclocal

위 경로로 가면 확장자가 m4로 된 파일들이 없으면 위와 같은 오류가 나오며 매크로 파일들이 있는 곳을 찾아서 링크를 걸어 주면 됩니다

주로 /usr/local/share/aclocal 혹은 /usr/share/aclocal에 매크로 파일들이 있으며 위 명령어로 나온 경로에 매크로 파일들이 보일 수 있도록 아래와 같이 링크를 걸어 주면 됩니다

# sudo mv /usr/local/share/aclocal /usr/local/share/aclocal.org
# sudo ln -s /usr/share/aclocal /usr/local/share/

 

출처:

https://stackoverflow.com/questions/18978252/error-libtool-library-used-but-libtool-is-undefined

https://stackoverrun.com/ko/q/6163764

댓글

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/03   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
글 보관함