jzmq 설치 중에 아래와 같은 에러 발생 시

1
2
3
$ ./autogen.sh
autogen.sh: error: could not find libtool.  libtool is required to run autogen.sh.
 
cs



패키지 인스톨러를 통해 libtool을 설치 후 다시 진행합니다.


이미 설치가 되어 있는데도 위와 같이 출력될 경우

1
2
3
4
5
6
7
$ sudo apt-get install libtool
Reading package lists... Done
Building dependency tree
Reading state information... Done
libtool is already the newest version (2.4.6-0.1).
0 upgraded, 0 newly installed, 0 to remove and 134 not upgraded.
 
cs


1. autogen.sh 파일을 편집합니다.

 : sudo nano autogen.sh

1
2
$ sudo nano autogen.sh
 
cs


2. 다음에 해당하는 부분을 변경 후 저장 및 종료합니다.

 : 변경 전

1
2
3
4
5
6
command -v libtool >/dev/null 2>&1
if  [ $? -ne 0 ]; then
    echo "autogen.sh: error: could not find libtool.  libtool is required to run autogen.sh." 1>&2
    exit 1
fi
 
cs


 : 변경 후

1
2
3
4
5
6
command -v libtoolize >/dev/null 2>&1
if  [ $? -ne 0 ]; then
    echo "autogen.sh: error: could not find libtool.  libtool is required to run autogen.sh." 1>&2
    exit 1
fi
 
cs


* 실제 위의 명령어를 실행해보면

 : command -v libtool의 예

1
2
$ command -v libtool
 
cs


 : command -v libtoolize의 예

1
2
3
$ command -v libtoolize
/usr/bin/libtoolize
 
cs



+ Recent posts