Translate

2014년 11월 22일 토요일

[OSX] Mac에 autotools(autoconf, automake) 설치하기



다음 사이트에서 설치방법을 확인했다.
Installing Autoconf, Automake & Libtool on Mac OSX Mountain Lion


그리고 국내 사이트에서 쉘로 만들어 놓으신 분이 있어서 같이 참조를 한다.
AUTOTOOLS ON OSX



설치 방법은 간단하다. 아래의 작업만 해주면 끝!!


curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
tar -xzf autoconf-2.69.tar.gz 
cd autoconf-2.69
./configure && make && sudo make install

curl -OL http://ftpmirror.gnu.org/automake/automake-1.14.tar.gz
tar -xzf automake-1.14.tar.gz
cd automake-1.14
./configure && make && sudo make install

curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz
tar -xzf libtool-2.4.2.tar.gz
cd libtool-2.4.2
./configure && make && sudo make install




혹시나 나중에 파일이 다운로드 되지 않는 경우가 발생하지 않을까 싶어서
다운로드 할수 있도록 링크를 올려둔다.

Download autotools






나는 쉘에서 다음과 같이 작업을 했다.


1004lucifer:~ 1004lucifer$
1004lucifer:~ 1004lucifer$ mkdir temp
1004lucifer:~ 1004lucifer$ cd temp
1004lucifer:temp 1004lucifer$
1004lucifer:temp 1004lucifer$ curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 327 100 327 0 0 131 0 0:00:02 0:00:02 --:--:-- 131
100 1882k 100 1882k 0 0 370k 0 0:00:05 0:00:05 --:--:-- 1017k
1004lucifer:temp 1004lucifer$
1004lucifer:temp 1004lucifer$ tar -xzf autoconf-2.69.tar.gz
1004lucifer:temp 1004lucifer$ cd autoconf-2.69
1004lucifer:autoconf-2.69 1004lucifer$ ./configure && make && sudo make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes

...

Making install in man
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/man/man1" || ../build-aux/install-sh -c -d "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 ./autoconf.1 ./autoheader.1 ./autom4te.1 ./autoreconf.1 ./autoscan.1 ./autoupdate.1 ./ifnames.1 ./config.guess.1 ./config.sub.1 '/usr/local/share/man/man1'
1004lucifer:autoconf-2.69 1004lucifer$
1004lucifer:autoconf-2.69 1004lucifer$
1004lucifer:autoconf-2.69 1004lucifer$
1004lucifer:autoconf-2.69 1004lucifer$
1004lucifer:autoconf-2.69 1004lucifer$
1004lucifer:autoconf-2.69 1004lucifer$ cd ..
1004lucifer:temp 1004lucifer$
1004lucifer:temp 1004lucifer$ curl -OL http://ftpmirror.gnu.org/automake/automake-1.14.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 327 100 327 0 0 435 0 --:--:-- --:--:-- --:--:-- 436
100 2181k 100 2181k 0 0 613k 0 0:00:03 0:00:03 --:--:-- 1052k
1004lucifer:temp 1004lucifer$
1004lucifer:temp 1004lucifer$ tar -xzf automake-1.14.tar.gz
1004lucifer:temp 1004lucifer$
1004lucifer:temp 1004lucifer$ cd automake-1.14
1004lucifer:automake-1.14 1004lucifer$
1004lucifer:automake-1.14 1004lucifer$ ./configure && make && sudo make install
checking whether make supports nested variables... yes
checking build system type... x86_64-apple-darwin13.3.0
checking host system type... x86_64-apple-darwin13.3.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... lib/install-sh -c -d

...

chmod +x '/usr/local/share/automake-1.14/compile'
chmod +x '/usr/local/share/automake-1.14/py-compile'
chmod +x '/usr/local/share/automake-1.14/ar-lib'
chmod +x '/usr/local/share/automake-1.14/test-driver'
chmod +x '/usr/local/share/automake-1.14/tap-driver.sh'
chmod +x '/usr/local/share/automake-1.14/tap-driver.pl'
1004lucifer:automake-1.14 1004lucifer$
1004lucifer:automake-1.14 1004lucifer$
1004lucifer:automake-1.14 1004lucifer$
1004lucifer:automake-1.14 1004lucifer$
1004lucifer:automake-1.14 1004lucifer$
1004lucifer:automake-1.14 1004lucifer$
1004lucifer:automake-1.14 1004lucifer$ cd ../
1004lucifer:temp 1004lucifer$
1004lucifer:temp 1004lucifer$ curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 326 100 326 0 0 397 0 --:--:-- --:--:-- --:--:-- 397
100 2570k 100 2570k 0 0 670k 0 0:00:03 0:00:03 --:--:-- 940k
1004lucifer:temp 1004lucifer$
1004lucifer:temp 1004lucifer$ tar -xzf libtool-2.4.2.tar.gz
1004lucifer:temp 1004lucifer$
1004lucifer:temp 1004lucifer$ cd libtool-2.4.2
1004lucifer:libtool-2.4.2 1004lucifer$
1004lucifer:libtool-2.4.2 1004lucifer$ ./configure && make && sudo make install
## ------------------------- ##
## Configuring libtool 2.4.2 ##
## ------------------------- ##

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... libltdl/config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk

...

test -z "/usr/local/share/man/man1" || libltdl/config/install-sh -c -d "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 ./doc/libtool.1 ./doc/libtoolize.1 '/usr/local/share/man/man1'
1004lucifer:libtool-2.4.2 1004lucifer$
1004lucifer:libtool-2.4.2 1004lucifer$
1004lucifer:libtool-2.4.2 1004lucifer$ cd ../
1004lucifer:temp 1004lucifer$
1004lucifer:temp 1004lucifer$ cd ../
1004lucifer:~ 1004lucifer$ rm -rf temp/
1004lucifer:~ 1004lucifer$




댓글 없음 :

댓글 쓰기