アットウィキロゴ

solarisのインストールログ(GNU Tar)

solarisのインストールログ(GNU Tar)

概要

GNU tar はオプション z で gzip 形式のアーカイブも同時に展開できる

使用例
$tar zxvf cvs-1.11.23.tar.gz
cvs-1.11.23/
cvs-1.11.23/emx/
cvs-1.11.23/emx/Makefile.in

手順

  1. ソースのダウンロード
    $wget http://ftp.gnu.org/gnu/tar/tar-1.23.tar.gz
    
  2. ソースファイルを解凍する。
    $gunzip tar-1.23.tar.gz
    $tar -xvf tar-1.23.tar
    
  3. インストールするディレクトリを作成する
    # mkdir /usr/local/gnu
    # ls -l /usr/local/gnu
    
  4. ルートのPATHを設定する
    #PATH=/opt/csw/bin:/usr/bin:/usr/sfw/bin:/usr/local/bin:/opt/sfw/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/ucb:/usr/ccs/bin:/usr/local/mysql/bin:/usr/local/pgsql/bin:/usr/local/fml.domain.com:/usr/openwin/bin:/etc:/usr/java/bin:.
    #export PATH
    
  5. マシンの環境にあわせてMakefileを作成する
    # ./configure --prefix=/usr/local/gnu --enable-backup-scripts
    
  6. コンパイルする
    # make
    
  7. コンパイルしたものをチェックする
    # make check
    
  8. インストールする
    # make install
    

インストールログ

[meka@~]$mkdir tar
[meka@~]$cd tar/
[meka@~/tar]$ls -ltr
合計 0
[meka@~/tar]$wget http://ftp.gnu.org/gnu/tar/tar-1.23.tar.gz
--2010-10-03 21:04:13--  http://ftp.gnu.org/gnu/tar/tar-1.23.tar.gz
Resolving ftp.gnu.org... 140.186.70.20
Connecting to ftp.gnu.org|140.186.70.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3193303 (3.0M) [application/x-gzip]
Saving to: `tar-1.23.tar.gz'

100%[=================================================>] 3,193,303    202K/s   in 16s

2010-10-03 21:04:30 (189 KB/s) - `tar-1.23.tar.gz' saved [3193303/3193303]

[meka@~/tar]$ls -l
合計 6256
-rw-r--r--   1 meka     other    3193303  3月 10日 2010年 tar-1.23.tar.gz
[meka@~/tar]$
[meka@~/tar]$gunzip tar-1.23.tar.gz
[meka@~/tar]$ls -l
合計 27184
-rw-r--r--   1 meka     other    13905920  3月 10日 2010年 tar-1.23.tar
[meka@~/tar]$
[meka@~/tar]$
[meka@~/tar]$tar -xvf tar-1.23.tar
x tar-1.23, 0 bytes, 0 テープブロック
x tar-1.23/build-aux, 0 bytes, 0 テープブロック
x tar-1.23/build-aux/compile, 3769 bytes, 8 テープブロック
x tar-1.23/build-aux/config.guess, 44959 bytes, 88 テープブロック


[meka@~/tar]$ls -ltr
合計 27186
drwxr-xr-x  12 meka     other        512  3月 10日 2010年 tar-1.23
-rw-r--r--   1 meka     other    13905920  3月 10日 2010年 tar-1.23.tar
[meka@~/tar]$
[meka@~/tar]$
[meka@~/tar]$
[meka@~/tar]$
[meka@~/tar]$cd tar-1.23
[meka@~/tar/tar-1.23]$su
パスワード:
#
# mkdir /usr/local/gnu
# ls -l /usr/local/gnu
#PATH=/opt/csw/bin:/usr/bin:/usr/sfw/bin:/usr/local/bin:/opt/sfw/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/ucb:/usr/ccs/bin:/usr/local/mysql/bin:/usr/local/pgsql/bin:/usr/local/fml.domain.com:/usr/openwin/bin:/etc:/usr/java/bin:.
#export PATH
#
# ./configure --prefix=/usr/local/gnu --enable-backup-scripts
checking for a BSD-compatible install... build-aux/install-sh -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... nawk
checking whether make sets $(MAKE)... yes
       ~省略~
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing tests/atconfig commands
#
#
# make
make  all-recursive
make[1]: Entering directory `/export/meka/tar/tar-1.23'
Making all in doc
make[2]: Entering directory `/export/meka/tar/tar-1.23/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/export/meka/tar/tar-1.23/doc'
Making all in gnu
       ~省略~
sed "s,\@libexecdir\@,/usr/local/gnu/libexec,; s,\@sysconfdir\@,/usr/local/gnu/etc,; s,\@PACKAGE_NAME\@,GNU tar,; s,\@VERSION\@,1.23,; s,\@PACKAGE_BUGREPORT\@,[email protected],; s,\@DATE_FORMAT_OK\@,,;/^#ELSE_DATE_FORMAT_OK/,/^#ENDIF_DATE_FORMAT_OK/d;/^#IF_DATE_FORMAT_OK/d" restore.in > restore
make[2]: Leaving directory `/export/meka/tar/tar-1.23/scripts'
Making all in po
make[2]: Entering directory `/export/meka/tar/tar-1.23/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/export/meka/tar/tar-1.23/po'
Making all in tests
make[2]: Entering directory `/export/meka/tar/tar-1.23/tests'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/export/meka/tar/tar-1.23/tests'
make[2]: Entering directory `/export/meka/tar/tar-1.23'
make[2]: Leaving directory `/export/meka/tar/tar-1.23'
make[1]: Leaving directory `/export/meka/tar/tar-1.23'
#
#
#
# make check
Making check in doc
make[1]: Entering directory `/export/meka/tar/tar-1.23/doc'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/export/meka/tar/tar-1.23/doc'
Making check in gnu
make[1]: Entering directory `/export/meka/tar/tar-1.23/gnu'
make  check-recursive
make[2]: Entering directory `/export/meka/tar/tar-1.23/gnu'
make[3]: Entering directory `/export/meka/tar/tar-1.23/gnu'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/export/meka/tar/tar-1.23/gnu'
make[2]: Leaving directory `/export/meka/tar/tar-1.23/gnu'
make[1]: Leaving directory `/export/meka/tar/tar-1.23/gnu'
Making check in lib
make[1]: Entering directory `/export/meka/tar/tar-1.23/lib'
make  check-am
make[2]: Entering directory `/export/meka/tar/tar-1.23/lib'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/export/meka/tar/tar-1.23/lib'
make[1]: Leaving directory `/export/meka/tar/tar-1.23/lib'
Making check in rmt
make[1]: Entering directory `/export/meka/tar/tar-1.23/rmt'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/export/meka/tar/tar-1.23/rmt'
Making check in src
make[1]: Entering directory `/export/meka/tar/tar-1.23/src'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/export/meka/tar/tar-1.23/src'
Making check in scripts
make[1]: Entering directory `/export/meka/tar/tar-1.23/scripts'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/export/meka/tar/tar-1.23/scripts'
Making check in po
make[1]: Entering directory `/export/meka/tar/tar-1.23/po'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/export/meka/tar/tar-1.23/po'
Making check in tests
make[1]: Entering directory `/export/meka/tar/tar-1.23/tests'
make  genfile
make[2]: Entering directory `/export/meka/tar/tar-1.23/tests'
  CC     genfile.o
  CC     argcv.o
  CCLD   genfile
make[2]: Leaving directory `/export/meka/tar/tar-1.23/tests'
make  check-local
make[2]: Entering directory `/export/meka/tar/tar-1.23/tests'
/bin/bash ./testsuite
## ------------------------ ##
## GNU tar 1.23 test suite. ##
## ------------------------ ##
  1: tar version                                     ok
  2: decompressing from stdin                        ok
  3: mixing options                                  ok
  4: interspersed options                            ok
  5: files-from: empty entries                       ok
  6: files-from: 0-separated file without -0         ok
  7: tar --index-file=FILE --file=-                  ok
  8: tar cvf -                                       ok
  9: append                                          ok
 10: appending files with long names                 ok
 11: append vs. create                               ok
 12: transforming hard links on create               ok
 13: exclude                                         ok
 14: exclude wildcards                               ok
 15: exclude: anchoring                              ok
 16: exclude: wildcards match slash                  ok
 17: exclude: case insensitive                       ok
 18: exclude: lots of excludes                       ok
 19: deleting a member after a big one               ok
 20: deleting a member from stdin archive            ok
 21: deleting members with long names                ok
 22: deleting a large last member                    ok
 23: deleting non-existing member                    ok
 24: extract over an existing directory              ok
 25: extracting symlinks over an existing file       ok
 26: extraction loops                                ok
 27: extract + fnmatch                               ok
 28: extracting selected members from pax            ok
 29: mode of extracted directories                   ok
 30: extracting symlinks to a read-only dir          ok
 31: restoring mode on existing directory            ok
 32: single-volume label                             ok
 33: multi-volume label                              ok
 34: extracting existing dir with --backup           ok
 35: gzip                                            ok
 36: incremental                                     ok
 37: restore broken symlinks from incremental        ok
 38: restoring timestamps from incremental           ok
 39: --listed for individual files                   ok
 40: working --listed                                ok
 41: renamed files in incrementals                   ok
 42: proper icontents initialization                 ok
 43: incremental dumps with -C                       ok
 44: incremental dumps of nested directories         ok
 45: file removed as we read it (ca. 22 seconds)     ok
 46: toplevel file removed (ca. 24 seconds)          ok
 47: renamed dirs in incrementals                    ok
 48: move between hierarchies                        ok
 49: cyclic renames                                  ok
 50: renamed directory containing subdirectories     ok
 51: renamed subdirectories                          ok
 52: changed file types in incrementals              ok
 53: ignfail                                         skipped (ignfail.at:26)
 54: link count gt 2                                 ok
 55: preserve hard links with --remove-files         ok
 56: working -l with --remove-files                  ok
 57: long names in V7 archives                       ok
 58: long file names divisible by block size         ok
 59: ustar: unsplittable file name                   ok
 60: ustar: unsplittable path name                   ok
 61: ustar: splitting long names                     ok
 62: multivolume dumps from pipes                    ok
 63: skipping a straddling member                    ok
 64: MV archive & long filenames                     ok
 65: split directory members in a MV archive         ok
 66: Restoring after an out of sync volume           ok
 67: Multivolumes with L=record_size                 ok
 68: volumes split at an extended header             skipped (multiv07.at:29)
 69: old archives                                    ok
 70: recurse                                         ok
 71: working -C with --same-order                    ok
 72: multiple -C options                             ok
 73: short records                                   ok
 74: sparse files                                    ok
 75: extracting sparse file over a pipe              ok
 76: storing sparse files > 8G                       ok
 77: sparse files in MV archives                     ok
 78: sparse files in PAX MV archives, v.0.0          ok
 79: sparse files in PAX MV archives, v.0.1          ok
 80: sparse files in PAX MV archives, v.1.0          ok
 81: update unchanged directories                    ok
 82: update directories                              ok
 83: update changed files                            ok
 84: volume                                          ok
 85: volume header size                              skipped (volsize.at:32)
 86: compressed format recognition                   ok
 87: short input files                               ok
 88: updating short archives                         ok
 89: truncate                                       cat: output error (0/380 characters written)
No space left on device
 ok
testsuite: WARNING: A failure happened in a test group before any test could be
testsuite: WARNING: run. This means that test suite is improperly designed.  Please
testsuite: WARNING: report this failure to <[email protected]>.
 ok
 91: remove-files with compression                   FAILED (remfiles01.at:32)
 92: remove-files with compression: grand-child      ok
 93: gtarfail                                        skipped (gtarfail.at:26)
 94: gtarfail2                                       skipped (gtarfail2.at:26)
 95: multi-fail                                      skipped (multi-fail.at:26)
 96: ustar-big-2g                                    skipped (ustar-big-2g.at:26)
 97: ustar-big-8g                                    skipped (ustar-big-8g.at:26)
 98: pax-big-10g                                     skipped (pax-big-10g.at:26)

## ------------- ##
## Test results. ##
## ------------- ##

ERROR: 89 tests were run,
1 failed unexpectedly.
9 tests were skipped.
## -------------------------- ##
## testsuite.log was created. ##
## -------------------------- ##

Please send `tests/testsuite.log' and all information you think might help:

   To: <[email protected]>
   Subject: [GNU tar 1.23] testsuite: 91 failed


You may investigate any problem if you feel able to do so, in which
case the test suite provides a good starting point.  Its output may
be found below `tests/testsuite.dir'.

make[2]: *** [check-local] Error 1
make[2]: Leaving directory `/export/meka/tar/tar-1.23/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/export/meka/tar/tar-1.23/tests'
make: *** [check-recursive] Error 1
#
#
# make install
Making install in doc
make[1]: Entering directory `/export/meka/tar/tar-1.23/doc'
make[2]: Entering directory `/export/meka/tar/tar-1.23/doc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/gnu/share/info" || ../build-aux/install-sh -c -d "/usr/local/gnu/share/info"
 ../build-aux/install-sh -c -m 644 ./tar.info ./tar.info-1 ./tar.info-2 '/usr/local/gnu/share/info'
 install-info --info-dir='/usr/local/gnu/share/info' '/usr/local/gnu/share/info/tar.info'
make[2]: Leaving directory `/export/meka/tar/tar-1.23/doc'
make[1]: Leaving directory `/export/meka/tar/tar-1.23/doc'
Making install in gnu
make[1]: Entering directory `/export/meka/tar/tar-1.23/gnu'
make  install-recursive
make[2]: Entering directory `/export/meka/tar/tar-1.23/gnu'
make[3]: Entering directory `/export/meka/tar/tar-1.23/gnu'
make[4]: Entering directory `/export/meka/tar/tar-1.23/gnu'
if test no = no; then \
  case 'solaris2.10' in \
    darwin[56]*) \
      need_charset_alias=true ;; \
    darwin* | cygwin* | mingw* | pw32* | cegcc*) \
      need_charset_alias=false ;; \
    *) \
      need_charset_alias=true ;; \
  esac ; \
else \
  need_charset_alias=false ; \
fi ; \
if $need_charset_alias; then \
  /bin/bash /export/meka/tar/tar-1.23/build-aux/install-sh -d /usr/local/gnu/lib ; \
fi ; \
if test -f /usr/local/gnu/lib/charset.alias; then \
  sed -f ref-add.sed /usr/local/gnu/lib/charset.alias > /usr/local/gnu/lib/charset.tmp ; \
  ../build-aux/install-sh -c -m 644 /usr/local/gnu/lib/charset.tmp /usr/local/gnu/lib/charset.alias ; \
  rm -f /usr/local/gnu/lib/charset.tmp ; \
else \
  if $need_charset_alias; then \
    sed -f ref-add.sed charset.alias > /usr/local/gnu/lib/charset.tmp ; \
    ../build-aux/install-sh -c -m 644 /usr/local/gnu/lib/charset.tmp /usr/local/gnu/lib/charset.alias ; \
    rm -f /usr/local/gnu/lib/charset.tmp ; \
  fi ; \
fi
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/export/meka/tar/tar-1.23/gnu'
make[3]: Leaving directory `/export/meka/tar/tar-1.23/gnu'
make[2]: Leaving directory `/export/meka/tar/tar-1.23/gnu'
make[1]: Leaving directory `/export/meka/tar/tar-1.23/gnu'
Making install in lib
make[1]: Entering directory `/export/meka/tar/tar-1.23/lib'
make  install-am
make[2]: Entering directory `/export/meka/tar/tar-1.23/lib'
make[3]: Entering directory `/export/meka/tar/tar-1.23/lib'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/export/meka/tar/tar-1.23/lib'
make[2]: Leaving directory `/export/meka/tar/tar-1.23/lib'
make[1]: Leaving directory `/export/meka/tar/tar-1.23/lib'
Making install in rmt
make[1]: Entering directory `/export/meka/tar/tar-1.23/rmt'
make[2]: Entering directory `/export/meka/tar/tar-1.23/rmt'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/gnu/libexec" || ../build-aux/install-sh -c -d "/usr/local/gnu/libexec"
  ../build-aux/install-sh -c rmt '/usr/local/gnu/libexec'
make[2]: Leaving directory `/export/meka/tar/tar-1.23/rmt'
make[1]: Leaving directory `/export/meka/tar/tar-1.23/rmt'
Making install in src
make[1]: Entering directory `/export/meka/tar/tar-1.23/src'
make[2]: Entering directory `/export/meka/tar/tar-1.23/src'
test -z "/usr/local/gnu/bin" || ../build-aux/install-sh -c -d "/usr/local/gnu/bin"
  ../build-aux/install-sh -c tar '/usr/local/gnu/bin'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/export/meka/tar/tar-1.23/src'
make[1]: Leaving directory `/export/meka/tar/tar-1.23/src'
Making install in scripts
make[1]: Entering directory `/export/meka/tar/tar-1.23/scripts'
make[2]: Entering directory `/export/meka/tar/tar-1.23/scripts'
test -z "/usr/local/gnu/libexec" || ../build-aux/install-sh -c -d "/usr/local/gnu/libexec"
 ../build-aux/install-sh -c backup.sh dump-remind '/usr/local/gnu/libexec'
test -z "/usr/local/gnu/sbin" || ../build-aux/install-sh -c -d "/usr/local/gnu/sbin"
 ../build-aux/install-sh -c backup restore '/usr/local/gnu/sbin'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/export/meka/tar/tar-1.23/scripts'
make[1]: Leaving directory `/export/meka/tar/tar-1.23/scripts'
Making install in po
make[1]: Entering directory `/export/meka/tar/tar-1.23/po'
if test "tar" = "gettext-tools"; then \
  ../build-aux/install-sh -c -d /usr/local/gnu/share/gettext/po; \
  for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed [email protected] [email protected] insert-header.sin Rules-quot   Makevars.template; do \
    ../build-aux/install-sh -c -m 644 ./$file \
                    /usr/local/gnu/share/gettext/po/$file; \
  done; \
  for file in Makevars; do \
    rm -f /usr/local/gnu/share/gettext/po/$file; \
  done; \
else \
  : ; \
fi
make[1]: Leaving directory `/export/meka/tar/tar-1.23/po'
Making install in tests
make[1]: Entering directory `/export/meka/tar/tar-1.23/tests'
make[2]: Entering directory `/export/meka/tar/tar-1.23/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 `/export/meka/tar/tar-1.23/tests'
make[1]: Leaving directory `/export/meka/tar/tar-1.23/tests'
make[1]: Entering directory `/export/meka/tar/tar-1.23'
make[2]: Entering directory `/export/meka/tar/tar-1.23'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/export/meka/tar/tar-1.23'
make[1]: Leaving directory `/export/meka/tar/tar-1.23'

参考ページ

  1. ソースの場所・configureのオプションについてかいてある
    http://www.yynet.tama.tokyo.jp/~yokota/INSTALL/Tar/
    
最終更新:2010年10月03日 22:01
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。