UJP - 技術情報1

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

libtool1.5.22をインストールする for RedHat ES3

libtool1.5.22をインストールする for RedHat ES3


0.改訂履歴

  • 2006.12.21 新規作成

1.はじめに

 このドキュメントでは,libtoolをインストールする手順を説明する. 今回はOSのデフォルトでインストールされているlibtool 1.4を削除した上で,ソースコードからインストールを行う.

 なお,libtoolとは,Autotoolsの1つで,UNIX系OSによいてソフトウェア開発を行う為のツールで,ライブラリのコンパイル&リンク等の複雑さを簡素化するツールとなる.

 なお,使用しているOSは,RedHat Linux ES3上で稼働している.

2.インストール

  • 現在のlibtoolのバージョンを確認する.
[root@neptune4 InstallBin]# rpm -qa | grep libtool
libtool-1.4.3-6
libtool-libs-1.4.3-6
[root@neptune4 InstallBin]# 
  • 以下のURLから,モジュールをダウンロードする.
  • ダウンロードしたファイルを確認する.
[root@neptune4 InstallBin]# ls -la libtool*
-rw-r--r--    1 shinnai  users     2921483 Dec 21 22:32 libtool-1.5.22.tar.gz
[root@neptune4 InstallBin]#
  • アーカイブを展開する.
[root@neptune4 InstallBin]# tar xfz libtool-1.5.22.tar.gz 
[root@neptune4 InstallBin]# cd libtool-1.5.22
[root@neptune4 libtool-1.5.22]#
  • ファイルを確認する.
[root@neptune4 libtool-1.5.22]# ls -la
total 2368
drwxrwxrwx   13 1000     1000         4096 Dec 19  2005 .
drwxr-xr-x   17 root     root         4096 Dec 21 22:34 ..
-rw-r--r--    1 1000     1000          893 Aug  9  2005 AUTHORS
-rw-r--r--    1 1000     1000        17992 Jan 22  2005 COPYING
-rw-r--r--    1 1000     1000       152227 Dec 19  2005 ChangeLog
-rw-r--r--    1 1000     1000       172162 May  3  2000 ChangeLog.0
-rw-r--r--    1 1000     1000       127711 Jun 26  2001 ChangeLog.1
-rw-r--r--    1 1000     1000         9498 Aug 21  2005 INSTALL
-rw-r--r--    1 1000     1000         9400 Aug 13  2005 Makefile.am
-rw-r--r--    1 1000     1000        31128 Dec 19  2005 Makefile.in
-rw-r--r--    1 1000     1000        25397 Dec 19  2005 NEWS
-rw-r--r--    1 1000     1000         4933 Sep  1  2005 README
-rw-r--r--    1 1000     1000         5544 Dec 19  2005 THANKS
-rw-r--r--    1 1000     1000         7831 Mar 21  2003 TODO
-rw-r--r--    1 1000     1000       230594 Dec 19  2005 acinclude.m4
-rw-r--r--    1 1000     1000        31813 Dec 19  2005 aclocal.m4
-rwxr-xr-x    1 1000     1000         1297 Apr 14  2004 bootstrap
drwxrwxrwx    2 1000     1000         4096 Dec 19  2005 cdemo
-rwxr-xr-x    1 1000     1000         3695 Feb  2  2005 compile
-rwxr-xr-x    1 1000     1000        43668 Dec 19  2005 config.guess
-rwxr-xr-x    1 1000     1000        32151 Dec 19  2005 config.sub
-rwxr-xr-x    1 1000     1000       696653 Dec 19  2005 configure
-rw-r--r--    1 1000     1000         3828 Dec 19  2005 configure.ac
drwxrwxrwx    2 1000     1000         4096 Dec 19  2005 demo
drwxrwxrwx    6 1000     1000         4096 Dec 19  2005 depdemo
drwxrwxrwx    2 1000     1000         4096 Dec 19  2005 doc
drwxrwxrwx    2 1000     1000         4096 Dec 19  2005 f77demo
-rwxr-xr-x    1 1000     1000        10970 Dec 19  2005 install-sh
drwxrwxrwx    2 1000     1000         4096 Dec 19  2005 libltdl
-rw-r--r--    1 1000     1000       230594 Dec 19  2005 libtool.m4
-rw-r--r--    1 1000     1000        10723 Oct 29  2005 libtoolize.in
-rw-r--r--    1 1000     1000        13214 Dec 19  2005 ltdl.m4
-rw-r--r--    1 1000     1000       196421 Dec 19  2005 ltmain.in
-rw-r--r--    1 1000     1000       196440 Dec 19  2005 ltmain.sh
drwxrwxrwx    2 1000     1000         4096 Dec 19  2005 mdemo
drwxrwxrwx    2 1000     1000         4096 Dec 19  2005 mdemo2
-rwxr-xr-x    1 1000     1000        10587 Jan 22  2005 missing
-rwxr-xr-x    1 1000     1000         1583 Apr 23  2005 mkstamp
drwxrwxrwx    2 1000     1000         4096 Dec 19  2005 pdemo
drwxrwxrwx    2 1000     1000         4096 Dec 19  2005 tagdemo
drwxrwxrwx    2 1000     1000         4096 Dec 19  2005 tests
[root@neptune4 libtool-1.5.22]# 
  • configureを行う.
[root@neptune4 libtool-1.5.22]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for a sed that does not truncate output... /bin/sed
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking for gcj... gcj
checking for windres... no
checking for /usr/bin/ld option to reload object files... -r
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "GCJ" to libtool
checking if gcj supports -fno-rtti -fno-exceptions... (cached) yes
checking for gcj option to produce PIC... -fPIC
checking if gcj PIC flag -fPIC works... yes
checking if gcj static flag -static works... no
checking if gcj supports -c -o file.o... yes
checking whether the gcj linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating tests/Makefile
config.status: executing depfiles commands
=== configuring in libltdl (/www/system/InstallBin/libtool-1.5.22/libltdl)
configure: running /bin/sh './configure' --prefix=/usr/local  --enable-ltdl-in
stall --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking which extension is used for loadable modules... .so
checking which variable specifies run-time library path... LD_LIBRARY_PATH
checking for the default library search path... /lib /usr/lib /usr/kerberos/li
b /usr/X11R6/lib /usr/lib/qt-3.1/lib /usr/local/lib 
checking for objdir... .libs
checking whether libtool supports -dlopen/-dlpreopen... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen in -ldl... yes
checking for dlerror... yes
checking for _ prefix in compiled symbols... no
checking whether deplibs are loaded by dlopen... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking for error_t... yes
checking for argz_append... yes
checking for argz_create_sep... yes
checking for argz_insert... yes
checking for argz_next... yes
checking for argz_stringify... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for memory.h... (cached) yes
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for unistd.h... (cached) yes
checking dl.h usability... no
checking dl.h presence... no
checking for dl.h... no
checking sys/dl.h usability... no
checking sys/dl.h presence... no
checking for sys/dl.h... no
checking dld.h usability... no
checking dld.h presence... no
checking for dld.h... no
checking mach-o/dyld.h usability... no
checking mach-o/dyld.h presence... no
checking for mach-o/dyld.h... no
checking for string.h... (cached) yes
checking for strchr... yes
checking for strrchr... yes
checking for memcpy... yes
checking for memmove... yes
checking for strcmp... yes
checking for closedir... yes
checking for opendir... yes
checking for readdir... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
[root@neptune4 libtool-1.5.22]# 
  • make checkを行う.
[root@neptune4 libtool-1.5.22]# make check
Making check in .
make[1]: Entering directory `/tst/module/InstallBin/libtool-1.5.22'
CONFIG_FILES=libtoolize CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating libtoolize
config.status: executing depfiles commands
chmod +x libtoolize
make[1]: Leaving directory `/tst/module/InstallBin/libtool-1.5.22'
Making check in libltdl
make[1]: Entering directory `/tst/module/InstallBin/libtool-1.5.22/libltdl'
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.     
-g -O2 -c -o ltdl.lo ltdl.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ltdl.c  -fPIC -DPIC -o .libs/ltdl.o
 gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c ltdl.c -o ltdl.o >/dev/null 2>&1
/bin/sh ./libtool --tag=CC   --mode=link gcc  -g -O2 -no-undefined -version-in
fo 4:4:1  -o libltdl.la -rpath /usr/local/lib ltdl.lo -ldl 
gcc -shared  .libs/ltdl.o  -ldl  -Wl,-soname -Wl,libltdl.so.3 -o .libs/libltdl.
so.3.1.4
(cd .libs && rm -f libltdl.so.3 && ln -s libltdl.so.3.1.4 libltdl.so.3)
(cd .libs && rm -f libltdl.so && ln -s libltdl.so.3.1.4 libltdl.so)
ar cru .libs/libltdl.a  ltdl.o
ranlib .libs/libltdl.a
creating libltdl.la
(cd .libs && rm -f libltdl.la && ln -s ../libltdl.la libltdl.la)
make[1]: Leaving directory `/tst/module/InstallBin/libtool-1.5.22/libltdl'
Making check in doc
make[1]: Entering directory `/tst/module/InstallBin/libtool-1.5.22/doc'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/tst/module/InstallBin/libtool-1.5.22/doc'
Making check in tests
make[1]: Entering directory `/tst/module/InstallBin/libtool-1.5.22/tests'
make  check-TESTS
make[2]: Entering directory `/tst/module/InstallBin/libtool-1.5.22/tests'
PASS: cdemo-static.test
PASS: cdemo-make.test
PASS: cdemo-exec.test
PASS: demo-static.test
PASS: demo-make.test
PASS: demo-exec.test
PASS: demo-inst.test
PASS: demo-unst.test
PASS: depdemo-static.test
PASS: depdemo-make.test
PASS: depdemo-exec.test
PASS: depdemo-inst.test
PASS: depdemo-unst.test
PASS: mdemo-static.test
PASS: mdemo-make.test
PASS: mdemo-exec.test
PASS: mdemo-inst.test
PASS: mdemo-unst.test
PASS: cdemo-conf.test
PASS: cdemo-make.test
PASS: cdemo-exec.test
PASS: demo-conf.test
PASS: demo-make.test
PASS: demo-exec.test
PASS: demo-inst.test
PASS: demo-unst.test
PASS: deplibs.test
PASS: depdemo-conf.test
PASS: depdemo-make.test
PASS: depdemo-exec.test
PASS: depdemo-inst.test
PASS: depdemo-unst.test
PASS: mdemo-conf.test
PASS: mdemo-make.test
PASS: mdemo-exec.test
PASS: mdemo-inst.test
PASS: mdemo-unst.test
PASS: dryrun.test
PASS: demo-nofast.test
PASS: demo-make.test
PASS: demo-exec.test
PASS: demo-inst.test
PASS: demo-unst.test
PASS: demo-pic.test
PASS: demo-make.test
PASS: demo-exec.test
PASS: demo-nopic.test
PASS: demo-make.test
PASS: demo-exec.test
PASS: depdemo-nofast.test
PASS: depdemo-make.test
PASS: depdemo-exec.test
PASS: depdemo-inst.test
PASS: depdemo-unst.test
PASS: cdemo-shared.test
PASS: cdemo-make.test
PASS: cdemo-exec.test
PASS: demo-shared.test
PASS: demo-make.test
PASS: demo-exec.test
PASS: demo-inst.test
PASS: hardcode.test
PASS: build-relink.test
PASS: noinst-link.test
PASS: demo-unst.test
PASS: depdemo-shared.test
PASS: depdemo-make.test
PASS: depdemo-exec.test
PASS: depdemo-inst.test
PASS: build-relink2.test
PASS: depdemo-unst.test
PASS: mdemo-shared.test
PASS: mdemo-make.test
PASS: mdemo-exec.test
PASS: mdemo-inst.test
PASS: mdemo-unst.test
PASS: assign.test
PASS: link.test
PASS: link-2.test
PASS: nomode.test
PASS: quote.test
PASS: sh.test
PASS: suffix.test
PASS: pdemo-conf.test
PASS: pdemo-make.test
PASS: pdemo-exec.test
PASS: pdemo-inst.test
PASS: mdemo-conf.test
PASS: mdemo-make.test
PASS: mdemo2-conf.test
PASS: mdemo2-make.test
PASS: mdemo2-exec.test
PASS: duplicate_members.test
PASS: link-order.test
PASS: tagdemo-static.test
PASS: tagdemo-make.test
PASS: tagdemo-exec.test
PASS: tagdemo-conf.test
PASS: tagdemo-make.test
PASS: tagdemo-exec.test
PASS: tagdemo-shared.test
PASS: tagdemo-make.test
PASS: tagdemo-exec.test
PASS: f77demo-static.test
PASS: f77demo-make.test
PASS: f77demo-exec.test
PASS: f77demo-conf.test
PASS: f77demo-make.test
PASS: f77demo-exec.test
PASS: f77demo-shared.test
PASS: f77demo-make.test
PASS: f77demo-exec.test
====================
All 112 tests passed
====================
make[2]: Leaving directory `/tst/module/InstallBin/libtool-1.5.22/tests'
make[1]: Leaving directory `/tst/module/InstallBin/libtool-1.5.22/tests'
[root@neptune4 libtool-1.5.22]# 
  • all tests passedなので問題無さそうなので,makeする.
[root@neptune4 libtool-1.5.22]# make install
Making install in .
make[1]: Entering directory `/tst/module/InstallBin/libtool-1.5.22'
make[2]: Entering directory `/tst/module/InstallBin/libtool-1.5.22'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
 /usr/bin/install -c 'libtool' '/usr/local/bin/libtool'
 /usr/bin/install -c 'libtoolize' '/usr/local/bin/libtoolize'
test -z "/usr/local/share/aclocal" || mkdir -p -- "/usr/local/share/aclocal"
 /usr/bin/install -c -m 644 'libtool.m4' '/usr/local/share/aclocal/libtool.m4'
 /usr/bin/install -c -m 644 'ltdl.m4' '/usr/local/share/aclocal/ltdl.m4'
test -z "/usr/local/share/libtool/libltdl" || mkdir -p -- "/usr/local/share/li
btool/libltdl"
 /usr/bin/install -c -m 644 'libltdl/COPYING.LIB' '/usr/local/share/libtool/li
bltdl/COPYING.LIB'
 /usr/bin/install -c -m 644 'libltdl/README' '/usr/local/share/libtool/libltdl
/README'
 /usr/bin/install -c -m 644 'libltdl/configure.ac' '/usr/local/share/libtool/l
ibltdl/configure.ac'
 /usr/bin/install -c -m 644 'libltdl/Makefile.am' '/usr/local/share/libtool/li
bltdl/Makefile.am'
 /usr/bin/install -c -m 644 'libltdl/ltdl.c' '/usr/local/share/libtool/libltdl
/ltdl.c'
 /usr/bin/install -c -m 644 'libltdl/ltdl.h' '/usr/local/share/libtool/libltdl
/ltdl.h'
 /usr/bin/install -c -m 644 'libltdl/config.guess' '/usr/local/share/libtool/l
ibltdl/config.guess'
 /usr/bin/install -c -m 644 'libltdl/config.sub' '/usr/local/share/libtool/lib
ltdl/config.sub'
 /usr/bin/install -c -m 644 'libltdl/install-sh' '/usr/local/share/libtool/lib
ltdl/install-sh'
 /usr/bin/install -c -m 644 'libltdl/missing' '/usr/local/share/libtool/libltd
l/missing'
 /usr/bin/install -c -m 644 'libltdl/ltmain.sh' '/usr/local/share/libtool/libl
tdl/ltmain.sh'
 /usr/bin/install -c -m 644 'libltdl/acinclude.m4' '/usr/local/share/libtool/l
ibltdl/acinclude.m4'
 /usr/bin/install -c -m 644 'libltdl/aclocal.m4' '/usr/local/share/libtool/lib
ltdl/aclocal.m4'
 /usr/bin/install -c -m 644 'libltdl/Makefile.in' '/usr/local/share/libtool/li
bltdl/Makefile.in'
 /usr/bin/install -c -m 644 'libltdl/configure' '/usr/local/share/libtool/libl
tdl/configure'
 /usr/bin/install -c -m 644 'libltdl/config-h.in' '/usr/local/share/libtool/li
bltdl/config-h.in'
test -z "/usr/local/share/libtool" || mkdir -p -- "/usr/local/share/libtool"
 /usr/bin/install -c -m 644 'config.guess' '/usr/local/share/libtool/config.gu
ess'
 /usr/bin/install -c -m 644 'config.sub' '/usr/local/share/libtool/config.sub'
 /usr/bin/install -c -m 644 'install-sh' '/usr/local/share/libtool/install-sh'
 /usr/bin/install -c -m 644 'ltmain.sh' '/usr/local/share/libtool/ltmain.sh'
make  install-data-hook
make[3]: Entering directory `/tst/module/InstallBin/libtool-1.5.22'
chmod +x /usr/local/share/libtool/config.guess
chmod +x /usr/local/share/libtool/config.sub
chmod +x /usr/local/share/libtool/install-sh
chmod +x /usr/local/share/libtool/libltdl/config.guess
chmod +x /usr/local/share/libtool/libltdl/config.sub
chmod +x /usr/local/share/libtool/libltdl/install-sh
chmod +x /usr/local/share/libtool/libltdl/configure
chmod +x /usr/local/share/libtool/libltdl/missing
make[3]: Leaving directory `/tst/module/InstallBin/libtool-1.5.22'
make[2]: Leaving directory `/tst/module/InstallBin/libtool-1.5.22'
make[1]: Leaving directory `/tst/module/InstallBin/libtool-1.5.22'
Making install in libltdl
make[1]: Entering directory `/tst/module/InstallBin/libtool-1.5.22/libltdl'
make[2]: Entering directory `/tst/module/InstallBin/libtool-1.5.22/libltdl'
test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"
 /bin/sh ./libtool --mode=install /usr/bin/install -c  'libltdl.la' '/usr/loca
l/lib/libltdl.la'
/usr/bin/install -c .libs/libltdl.so.3.1.4 /usr/local/lib/libltdl.so.3.1.4
(cd /usr/local/lib && { ln -s -f libltdl.so.3.1.4 libltdl.so.3 || { rm -f libl
tdl.so.3 && ln -s libltdl.so.3.1.4 libltdl.so.3; }; })
(cd /usr/local/lib && { ln -s -f libltdl.so.3.1.4 libltdl.so || { rm -f libltd
l.so && ln -s libltdl.so.3.1.4 libltdl.so; }; })
/usr/bin/install -c .libs/libltdl.lai /usr/local/lib/libltdl.la
/usr/bin/install -c .libs/libltdl.a /usr/local/lib/libltdl.a
chmod 644 /usr/local/lib/libltdl.a
ranlib /usr/local/lib/libltdl.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/include" || mkdir -p -- "/usr/local/include"
 /usr/bin/install -c -m 644 'ltdl.h' '/usr/local/include/ltdl.h'
make[2]: Leaving directory `/tst/module/InstallBin/libtool-1.5.22/libltdl'
make[1]: Leaving directory `/tst/module/InstallBin/libtool-1.5.22/libltdl'
Making install in doc
make[1]: Entering directory `/tst/module/InstallBin/libtool-1.5.22/doc'
make[2]: Entering directory `/tst/module/InstallBin/libtool-1.5.22/doc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/info" || mkdir -p -- "/usr/local/share/info"
 /usr/bin/install -c -m 644 './libtool.info' '/usr/local/share/info/libtool.in
fo'
make[2]: Leaving directory `/tst/module/InstallBin/libtool-1.5.22/doc'
make[1]: Leaving directory `/tst/module/InstallBin/libtool-1.5.22/doc'
Making install in tests
make[1]: Entering directory `/tst/module/InstallBin/libtool-1.5.22/tests'
make[2]: Entering directory `/tst/module/InstallBin/libtool-1.5.22/tests'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/tst/module/InstallBin/libtool-1.5.22/tests'
make[1]: Leaving directory `/tst/module/InstallBin/libtool-1.5.22/tests'
[root@neptune4 libtool-1.5.22]# 
  • パスを調べる.
[root@neptune4 libtool-1.5.22]# which libtool
/usr/local/bin/libtool
[root@neptune4 libtool-1.5.22]# /usr/local/bin/libtool --version
ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)

Copyright (C) 2005  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@neptune4 libtool-1.5.22]# 
  • 古いモジュール(OSデフォルト)で入っているものを,削除する.
[root@neptune4 libtool-1.5.22]# rpm -qa | grep libtool
libtool-1.4.3-6
libtool-libs-1.4.3-6
[root@neptune4 libtool-1.5.22]# rpm -e libtool-1.4.3-6
[root@neptune4 libtool-1.5.22]# rpm -e libtool-libs-1.4.3-6
error: Failed dependencies:
        libltdl.so.3 is needed by (installed) pspell-0.12.2-16.1
        libltdl.so.3 is needed by (installed) aspell-0.33.7.1-25.3.rhel3
        libltdl.so.3 is needed by (installed) php-4.3.2-33.ent
        libltdl.so.3 is needed by (installed) freeradius-1.0.1-2.RHEL3.2
        libltdl.so.3 is needed by (installed) openldap-servers-2.0.27-22
[root@neptune4 libtool-1.5.22]# rpm -e --nodeps libtool-libs-1.4.3-6
[root@neptune4 libtool-1.5.22]# 
  • 強制的に消した.
  • このインストールをする前に,autoconfをインストールしているため,その手順の中で/usr/local/binへのパスが追加されている.
  • autoconfをインストールせずに利用する場合には,その資料を参考にして,パスを追加する必要がある.
  • これで終了.


広告スペース
Google