[root@dywHome2 src]# tar -jxvf kplayer-0.5.3.tar.bz2 kplayer-0.5.3/ kplayer-0.5.3/README kplayer-0.5.3/AUTHORS kplayer-0.5.3/COPYING kplayer-0.5.3/ChangeLog kplayer-0.5.3/INSTALL kplayer-0.5.3/Makefile.am kplayer-0.5.3/Makefile.in ----以下省略----
[root@dywHome2 src]# ls -ld kplayer* drwxrwxrwx 8 1002 1002 1024 Jan 9 2005 kplayer-0.5.3/ -rw-r--r-- 1 root root 3156593 Apr 3 08:50 kplayer-0.5.3.tar.bz2
[root@dywHome2 kplayer-0.5.3]# cat INSTALL # 截取 INSTALL 中之重要安裝訊息 Extract the tarball tar -xjf kplayer-0.5.3.tar.bz2 cd kplayer-0.5.3 Create configure script make -f Makefile.dist Configure ./configure --prefix=`kde-config --prefix` Compile make Install su -c 'make install' Run kplayer
[root@dywHome2 kplayer-0.5.3]# make -f Makefile.dist This Makefile is only for the CVS repository This will be deleted before making the distribution *** Creating acinclude.m4 *** Creating list of subdirectories *** Creating configure.files *** Creating configure.in *** Creating aclocal.m4 *** Creating configure *** Creating config.h template *** Creating Makefile templates *** Postprocessing Makefile templates *** Creating date/time stamp *** Finished Don't forget to run ./configure If you haven't done so in a while, run ./configure --help
./configure
:表示執行目前目錄下之自動偵測作業環境執行檔 configure;
--prefix=PATH
:指定安裝目錄為 PATH。
--prefix=/usr/local/kplayer
;
`kde-config --prefix`
:會先執行,以找到套件安裝目錄,在本系統為 /usr;
[root@dywHome2 kplayer-0.5.3]# ./configure --prefix=`kde-config --prefix` [root@dywHome2 kplayer-0.5.3]# ./configure --prefix=/usr/local/kplayer checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu ----中間省略---- configure: creating ./config.status fast creating Makefile fast creating admin/Makefile fast creating doc/Makefile fast creating doc/da/Makefile fast creating doc/en/Makefile fast creating doc/pt/Makefile fast creating doc/sv/Makefile fast creating icons/Makefile fast creating kplayer/Makefile fast creating po/Makefile config.pl: fast created 10 file(s). config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands Good - your configure finished. Start make now
[root@dywHome2 kplayer-0.5.3]# make ----以上省略---- make[2]: Entering directory `/usr/src/kplayer-0.5.3' make[2]: Leaving directory `/usr/src/kplayer-0.5.3' make[1]: Leaving directory `/usr/src/kplayer-0.5.3'
[root@dywHome2 kplayer-0.5.3]# make install ----以上省略---- make[2]: Leaving directory `/usr/src/kplayer-0.5.3' make[1]: Leaving directory `/usr/src/kplayer-0.5.3'
[root@dywHome2 src]# ll /usr/local/kplayer/ total 3 drwxr-xr-x 2 root root 1024 Apr 3 10:09 bin/ drwxr-xr-x 3 root root 1024 Apr 3 10:09 lib/ drwxr-xr-x 8 root root 1024 Apr 3 10:09 share/
[root@dywHome2 src]# cd kplayer-0.5.3
[root@dywHome2 kplayer-0.5.3]# cd.. [root@dywHome2 src]# tar -zcvf kplayer-0.5.3.systray.tar.gz ./kplayer-0.5.3 ./kplayer-0.5.3/ ./kplayer-0.5.3/README ./kplayer-0.5.3/AUTHORS ./kplayer-0.5.3/COPYING ./kplayer-0.5.3/ChangeLog ./kplayer-0.5.3/INSTALL ----中間省略---- ./kplayer-0.5.3/Makefile ./kplayer-0.5.3/libtool ./kplayer-0.5.3/config.status ./kplayer-0.5.3/config.h
[root@dywHome2 kplayer-0.5.3.systray]# vi Makefile VERSION = 0.5.3.systray ## 所有目錄 kplayer-0.5.3 皆改成 kplayer-0.5.3.systray ## 在 vi 環境下指令 :1,$s/kplayer-0.5.3/kplayer-0.5.3.systray/g install_sh = /usr/src/rpm/SOURCES/kplayer-0.5.3.systray/admin/install-sh
[root@dywHome2 kplayer-0.5.3.systray]# make dist-gzip { test ! -d kplayer-0.5.3.systray || { find kplayer-0.5.3.systray -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr kplayer-0.5.3.systray; }; } mkdir kplayer-0.5.3.systray ----以下省略----
[root@dywHome2 kplayer-0.5.3.systray]# mv kplayer-0.5.3.systray.tar.gz ../
[root@dywHome2 kplayer-0.5.3.systray]# cd.. [root@dywHome2 SOURCES]# ll total 6818 drwxr-xr-x 9 root root 1024 Apr 5 15:17 kplayer-0.5.3.systray/ -rw-r--r-- 1 root root 3793524 Apr 5 15:15 kplayer-0.5.3.systray.tar.gz -rw-r--r-- 1 root users 3156593 Jul 3 2006 kplayer-0.5.3.tar.bz2