http://sourceforge.net/project/showfiles.php?group_id=1674
libusb-0.1 0.1.12 March 4, 2006 Release notes
Monitor this package Download
まず 展開
# mkdir 103_libusb # cd 103_libusb/ # mv /home/fdopstm/open_emac/libusb-0.1.12.tar.gz . # ls -l total 388 -rw-r--r-- 1 fdopstm users 389343 Nov 5 18:07 libusb-0.1.12.tar.gz # tar zxvf libusb-0.1.12.tar.gz 2>&1 | tee log-untar # cd libusb-0.1.12
少し 覗いてみる、以下に 適当か不適当か 抜粋してあります。
Building ======== It should be as simple as running these two commands: Installation ============ See the file 'INSTALL' ./configure make Simple install procedure ======================== % gzip -cd libusb-0.1.12.tar.gz | tar xvf - # unpack the sources % cd libusb-0.1.12 # change to the toplevel directoy % ./configure # run the `configure' script % make # build libusb [ Become root if necessary ] % make install # install libusb ./configure --help =========================================
各自色々な方法がおありでしょうが
# ./configure 2>&1 | tee log-configure # touch /tmp/20081105mark ; sleep 1 /* 通常 make では こんなことは しな い */ # make 2>&1 | tee log-make # find / -cnewer /tmp/20081105mark ! -type d -print >list-make find: /proc/7156/fd/4: No such file or directory # wc -l list-make 2015 list-make # sed -e '/^\/proc/d' list-make | wc -l 116 # sed -e '/^\/proc/d' list-make >list-list # rm list-make # cat list-list ... /usr/local/src/103_libusb/libusb-0.1.12/ ... ... # rm list-list /* 単にどのようなことが 行われたかを 確認しただけ */ # rm /tmp/20081105mark /* 後かたずけ */ # touch /tmp/20081105mark ; sleep 1 # make install 2>&1 | tee log-make-install /* インストールしてみる */ # find / -cnewer /tmp/20081105mark ! -type d -print >list-make-install find: /proc/7495/fd/4: No such file or directory # wc -l list-make-install 1918 list-make-install # sed -e '/^\/proc/d' list-make-install | wc -l 18 # sed -e '/^\/proc/d' list-make-install >qqqqq # mv qqqqq list-make-install # cat list-make-install /usr/local/bin/libusb-config /usr/local/lib/pkgconfig/libusb.pc /usr/local/lib/libusb-0.1.so.4.4.4 /usr/local/lib/libusb-0.1.so.4 /usr/local/lib/libusb.so /usr/local/lib/libusb.la /usr/local/lib/libusb.a /usr/local/lib/libusbpp-0.1.so.4.4.4 /usr/local/lib/libusbpp-0.1.so.4 /usr/local/lib/libusbpp.so /usr/local/lib/libusbpp.la /usr/local/lib/libusbpp.a /usr/local/src/103_libusb/libusb-0.1.12/log-make-install /usr/local/src/103_libusb/libusb-0.1.12/.libs/libusbpp-0.1.so.4.4.4 /usr/local/src/103_libusb/libusb-0.1.12/.libs/libusbpp-0.1.so.4.4.4T /usr/local/src/103_libusb/libusb-0.1.12/list-make-install /usr/local/include/usbpp.h /usr/local/include/usb.h # vi list-make-install # cat list-make-install /usr/local/bin/libusb-config /usr/local/lib/pkgconfig/libusb.pc /usr/local/lib/libusb-0.1.so.4.4.4 /usr/local/lib/libusb-0.1.so.4 /usr/local/lib/libusb.so /usr/local/lib/libusb.la /usr/local/lib/libusb.a /usr/local/lib/libusbpp-0.1.so.4.4.4 /usr/local/lib/libusbpp-0.1.so.4 /usr/local/lib/libusbpp.so /usr/local/lib/libusbpp.la /usr/local/lib/libusbpp.a /usr/local/include/usbpp.h /usr/local/include/usb.h /* 整理した後 tar で tgz 作成 */ # tar -T list-make-install -cvzf libusb-0.1.12.tgz 2>&1 | tee log-collect-tgz tar: Member names contain `..' tar: Removing leading `/' from member names usr/local/bin/libusb-config usr/local/lib/pkgconfig/libusb.pc usr/local/lib/libusb-0.1.so.4.4.4 usr/local/lib/libusb-0.1.so.4 usr/local/lib/libusb.so usr/local/lib/libusb.la usr/local/lib/libusb.a usr/local/lib/libusbpp-0.1.so.4.4.4 usr/local/lib/libusbpp-0.1.so.4 usr/local/lib/libusbpp.so usr/local/lib/libusbpp.la usr/local/lib/libusbpp.a usr/local/include/usbpp.h usr/local/include/usb.h /* 適当な場所に 格納 */ # mv libusb-0.1.12.tgz ../ # cd ../ # mkdir tgz-private # mv libusb-0.1.12.tgz tgz-private/ # cd tgz-private/ # ls /var/log/packages/ | grep libusb /* 要するに 登録されていないということ インストールはされている */ /* 上書きインストール */ # installpkg libusb-0.1.12.tgz libusb-0.1.12 のインストール中 PACKAGE DESCRIPTION: # ls /var/log/packages/ | grep libusb libusb-0.1.12
こうしておくと後で削除が 簡単になるのでそうしているだけです。このとお り行う必要は何らありません
そして 面倒なので
# shutdown -r now
一服しませう
にゃんたろう 拝!
2008年11月15日 (土) 21:37:59 JST 作成