Microsoft 社는 2022년 6월 15일 Internet Explorer 11의 지원을 종료했습니다.

automake-1.16.5 on CentOS 5.8

제목

automake-1.16.5 on CentOS 5.8

공식 홈페이지 : https://www.gnu.org/software/automake/

1. 준비작업

1.1. 다운로드

https://ftp.gnu.org/gnu/automake/ 에서 다운로드 한다.

wget ftp://ftp.gnu.org/gnu/automake/automake-1.16.5.tar.gz

gnu 패키지들은 ftp 다운로드 경로를 제공하므로, CentOS 순정 wget 으로 다운로드 받을 수 있다.

1.2. make, gcc 설치

yum install make gcc -y

1.3. autoconf-2.71 설치

이에 대해서는 필자가 작성한 다른 글을 참조한다.

2. 컴파일 및 설치

설치 디렉토리(--prefix) 는 알아서 변경한다.

대부분의 Linux 배포판들은 /usr 이 설치 디렉토리(--prefix)이지만, 컴파일해서 설치하는 것들은 /usr/local 이나 /opt 아래에 두는 경우가 많다.

$ mkdir -p logs/automake-1.16.5
$ tar xvfz automake-1.16.5.tar.gz > logs/automake-1.16.5/tar.`date +%Y%m%d.%H%M%S`.log 2>&1
$ cd automake-1.16.5
$ PATH=/opt/autoconf-2.71/bin:${PATH} \
./configure \
--prefix=/opt/automake-1.16.5 > ../logs/automake-1.16.5/config.`date +%Y%m%d.%H%M%S`.log 2>&1
$ make > ../logs/automake-1.16.5/make.`date +%Y%m%d.%H%M%S`.log 2>&1
$ make install > ../logs/automake-1.16.5/install.`date +%Y%m%d.%H%M%S`.log 2>&1

3. 적용

3.1. 현재 환경에 적용

현재 환경에서는 다음과 같이 적용한다.

$ export PATH=/opt/automake-1.16.5/bin:${PATH}

pkg-config 를 사용하는 경우 다음의 내용도 추가할 수 있다.

export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/opt/automake-1.16.5/lib/pkgconfig

다음과 같이 ACLOCAL_PATH 를 추가할 수도 있다.

export ACLOCAL_PATH=/opt/automake-1.16.5/share/aclocal-1.13:${ACLOCAL_PATH}

3.2. 현재 로그인한 사용자에게 적용

현재 로그인한 사용자에게 적용하려면, ".bash_profile" 파일의 끝에 위의 내용을 추가한다.

3.3. 시스템 전체에 적용

3.3.1. 환경변수 변경

"/etc/bashrc" 파일의 끝에 위의 내용을 추가한다.

4. 문제해결

4.1. Autoconf 를 찾을 수 없다는 에러

checking whether autoconf is installed... no
configure: error: Autoconf 2.65 or better is required.
Please make sure it is installed and in your PATH.

Autoconf 를 설치하지 않았거나, PATH 환경변수가 누락되었다.

제목

첨부파일