分类: LINUX
2010-07-14 18:20:23
CODE: $ tar zxvf XXXX.tar.gz (or tar jxvf XXXX.tar.bz2) $ cd XXXX $ ./configure $ make # make install |
CODE: $ make clean |
CODE: # make uninstall |
CODE: $ tar zcvf XXXX.tar.gz XXXX(or tar jcvf XXXX.tar.bz2
XXXX) |
CODE: $ tar zxvf XXXX.tar.gz $ tar jxvf XXXX.tar.bz2 |
CODE: $ ./configure
--prefix=/opt/XXX |
CODE: $ make |
CODE: #make install |
CODE: [root@localhost ~]#
head -n 1 /etc/issue CentOS release 5.4 (Final) [root@localhost ~]# uname -sr Linux 2.6.18-164.el5 [root@localhost ~]# gcc --version gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46) Copyright (C) 2006 Free Software Foundation, Inc. |
CODE: [root@localhost tools]#
pwd /root/tools [root@localhost tools]# ls tar-1.23.tar.bz2 [root@localhost tools]# tar jxvf tar-1.23.tar.bz2 ...... [root@localhost tools]# ls tar-1.23 tar-1.23.tar.bz2 [root@localhost tools]# cd tar-1.23 [root@localhost tar-1.23]# ls ABOUT-NLS build-aux configure gnu Makefile.am po src acinclude.m4 ChangeLog configure.ac INSTALL Makefile.in README tests aclocal.m4 ChangeLog.1 COPYING lib Make.rules rmt THANKS AUTHORS config.h.in doc m4 NEWS scripts TODO |
CODE: [root@localhost
tar-1.23]# mkdir -v ~/tar mkdir: 已创建目录 “/root/tar” [root@localhost tar-1.23]# ./configure --prefix=/root/tar ...... [root@localhost tar-1.23]# echo $? 0 |
CODE: [root@localhost
tar-1.23]# ls -F ABOUT-NLS ChangeLog.1 configure.ac m4/ po/ tests/ acinclude.m4 config.h COPYING Makefile README THANKS aclocal.m4 config.h.in doc/ Makefile.am rmt/ TODO AUTHORS config.log gnu/ Makefile.in scripts/ build-aux/ config.status* INSTALL Make.rules src/ ChangeLog configure* lib/ NEWS stamp-h1 |
CODE: [root@localhost
tar-1.23]# less Makefile | grep install: || { echo "ERROR: files left after uninstall:" ; \ install: install-recursive uninstall: uninstall-recursive |
CODE: [root@localhost tar-1.23]#make ...... [root@localhost tar-1.23]#echo &? 0 |
CODE: [root@localhost
tar-1.23]#make install ...... [root@localhost tar-1.23]# ls /root/tar bin libexec sbin share [root@localhost tar]# cd /root/tar/bin [root@localhost bin]# ls tar [root@localhost bin]# ./tar --help ...... [root@localhost tar-1.23]#echo &? 0 |
QUOTE: |
可是我的没有./configure,也不能用make是怎么回事呢,楼主?是不是linux版本不对呢? 846969004 发表于 2010-7-1 18:03 |
QUOTE: |
2种可能: 1,您下载的不是源码包,有可能是可以直接运行的二进制包 2,配置脚本不是configure 2种情况都可以在README或INSTALL文档中一探究竟,,{:3_115:} 奶茶dsk 发表于 2010-7-1 21:05 |
QUOTE: |
第二种我见过,7-zip没有配置脚本,直接make就行了 pl_014 发表于 2010-7-3 12:56 |