rpm管理软件包,以及源码安装详解

一、RPM包的管理    www.2cto.com

  rpm软件包的一个例子:

sudo-1.7.4p5-11.el6.i686.rpm

  其中包括软件名(sudo),版本号(1.7.4p5),发行号(11.el6)和硬件平台(i686)

  1、卸载

[[email protected] ~]# rpm -e sudo

  如果其它软件包有依赖关系,卸载时会产生提示信息,可以使用--nodeps强行卸载

[[email protected] ~]# rpm -e --nodeps samba

  2、安装

    光盘里面带有的软件包,可以直接从光盘安装

    1)挂载光盘

[[email protected] ~]# mkdir /mnt/cdrom
[[email protected] ~]# mount /dev/cdrom /mnt/cdrom
mount: block device /dev/sr0 is write-protected, mounting read-only
[[email protected] ~]#

    2)rpm的安装包都放在Packages目录中

[

[email protected] ~]# cd /mnt/cdrom
[[email protected] cdrom]# ls
CentOS_BuildTag  Packages  RPM-GPG-KEY-CentOS-Security-6
EULA RELEASE-NOTES-en-US.html  RPM-GPG-KEY-CentOS-Testing-6
GPL  repodata  TRANS.TBL
images RPM-GPG-KEY-CentOS-6
isolinux RPM-GPG-KEY-CentOS-Debug-6
[[email protected] cdrom]#

    3)找到sudo的安装包

[[email protected] cdrom]# cd Packages
[[email protected] Packages]# ls | grep sudo
sudo-1.7.4p5-11.el6.i686.rpm
[[email protected] Packages]#

    4)执行安装

[[email protected] Packages]# rpm -ivh sudo-1.7.4p5-11.el6.i686.rpm
warning: sudo-1.7.4p5-11.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...  ########################################### [100%]
1:sudo ########################################### [100%]
[[email protected] Packages]#

    5)查询软件包是否已安装

[[email protected] Packages]# rpm -q sudo
sudo-1.7.4p5-11.el6.i686
[[email protected] Packages]#

    没有安装的会给出提示

[[email protected] ~]# rpm -q samba
package samba is not installed
[[email protected] ~]#

    6)--excludedocs 不安装软件包中的文档文件

[[email protected] Packages]# rpm -ivh --excludedocs sudo-1.7.4p5-11.el6.i686.rpm

    7)--prefix PATH 将软件包安装到由PATH指定的路径下

[[email protected] Packages]# rpm -ivh --prefix=/usr/local/sudo sudo-1.7.4p5-11.el6.i686.rpm

    不过指定rpm包的安装路径意义不大,rpm一般都不允许改变安装目录,rpm包在设计的时候就已经指定好相应的安装目录了  www.2cto.com

    8)--test 只对安装进行测试,并不实际安装

[[email protected] Packages]# rpm -ivh --test sudo-1.7.4p5-11.el6.i686.rpm

    9)软件包已被安装

[[email protected] Packages]# rpm -ivh sudo-1.7.4p5-11.el6.i686.rpm
warning: sudo-1.7.4p5-11.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...  ########################################### [100%]
  package sudo-1.7.4p5-11.el6.i686 is already installed
[[email protected] Packages]#

    如果要覆盖安装该软件包,可以使用--replacepkgs选项

[[email protected] Packages]# rpm -ivh --replacepkgs sudo-1.7.4p5-11.el6.i686.rpm
warning: sudo-1.7.4p5-11.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...  ########################################### [100%]
1:sudo ########################################### [100%]
[[email protected] Packages]#

    10)文件冲突

    如果要安装的软件包中有一个文件已在安装其它软件包是安装了,就会出现文件冲突,可以使用--replacefiles选项

[[email protected] Packages]# rpm -ivh --replacefiles sudo-1.7.4p5-11.el6.i686.rpm

    11)未解决依赖关系

    RPM软件包可能依赖于其它软件包,在安装了依赖的软件包之后才能安装该软件包。强制安装使用--nodeps选项,如果依赖包没安装,强制安装的软件一般用不了。

  3、升级

    比如升级到 sudo-1.8.0p5-11.el6.i686.rpm

[[email protected] Packages]# rpm -Uvh sudo-1.8.0p5-11.el6.i686.rpm

二、YUM包管理

  应用yum包的好处:

    自动解决软件包依赖关系

    方便的软件包升级

  1、安装 yum install  (需要网络访问)

[

[email protected] ~]# yum install sudoLoaded plugins: fastestmirror, securityDetermining fastest mirrors* base: mirror.neu.edu.cn* extras: mirror.neu.edu.cn* updates: mirror.neu.edu.cnbase | 3.7 kB 00:00base/primary_db  | 3.5 MB 00:07extras | 3.5 kB 00:00extras/primary_db  |  24 kB 00:00updates  | 3.5 kB 00:00updates/primary_db | 3.8 MB 00:08Setting up Install ProcessResolving Dependencies--> Running transaction check---> Package sudo.i686 0:1.7.4p5-13.el6_3 will be installed--> Finished Dependency Resolution
Dependencies Resolved
================================================================================Package Arch  Version Repository  Size================================================================================Installing:sudo  i686  1.7.4p5-13.el6_3  updates  419 k
Transaction Summary================================================================================Install 1 Package(s)
Total download size: 419 kInstalled size: 1.0 MIs this ok [y/N]: yDownloading Packages:sudo-1.7.4p5-13.el6_3.i686.rpm | 419 kB 00:01warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEYRetrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6Importing GPG key 0xC105B9DE:Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <[email protected]>Package: centos-release-6-3.el6.centos.9.i686 (@anaconda-CentOS-201207051201.i386/6.3)From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6Is this ok [y/N]: yRunning rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning TransactionWarning: RPMDB altered outside of yum.  Installing : sudo-1.7.4p5-13.el6_3.i686 1/1  Verifying  : sudo-1.7.4p5-13.el6_3.i686 1/1 
Installed:  sudo.i686 0:1.7.4p5-13.el6_3  
Complete![[email protected] ~]#

  2、检测升级 yum check-update

[

[email protected] ~]# yum check-update sudo
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.neu.edu.cn
* extras: mirror.neu.edu.cn
* updates: mirror.neu.edu.cn
[[email protected] ~]#

  3、升级 yum update

[[email protected] ~]# yum update sudo
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.neu.edu.cn
* extras: mirror.neu.edu.cn
* updates: mirror.neu.edu.cn
Setting up Update Process
No Packages marked for Update
[[email protected] ~]#

  4、软件包查询yum list

[[email protected] ~]# yum list | grep sudo
sudo.i686 1.7.4p5-13.el6_3 @updates
[[email protected] ~]#

  5、软件包信息yum info

[[email protected] ~]# yum info sudo
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.neu.edu.cn
* extras: mirror.neu.edu.cn
* updates: mirror.neu.edu.cn
Installed Packages
Name  : sudo
Arch  : i686
Version : 1.7.4p5
Release : 13.el6_3
Size  : 1.0 M
Repo  : installed
From repo : updates
Summary : Allows restricted root access for specified users
URL : http://www.courtesan.com/sudo/
License : ISC
Description : Sudo (superuser do) allows a system administrator to give certain
  : users (or groups of users) the ability to run some (or all)
  : commands as root while logging all commands and arguments. Sudo
  : operates on a per-command basis.  It is not a replacement for the
  : shell.  Features include: the ability to restrict what commands a
  : user may run on a per-host basis, copious logging of each command
  : (providing a clear audit trail of who did what), a configurable
  : timeout of the sudo command, and the ability to use the same
  : configuration file (sudoers) on many different machines.

  6、卸载 yum remove

[[email protected] ~]# yum remove sudoLoaded plugins: fastestmirror, securitySetting up Remove ProcessResolving Dependencies--> Running transaction check---> Package sudo.i686 0:1.7.4p5-13.el6_3 will be erased--> Finished Dependency Resolution
Dependencies Resolved
================================================================================Package Arch  Version  Repository Size================================================================================Removing:sudo  i686  1.7.4p5-13.el6_3 @updates  1.0 M
Transaction Summary================================================================================Remove  1 Package(s)
Installed size: 1.0 MIs this ok [y/N]: yDownloading Packages:Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction  Erasing  : sudo-1.7.4p5-13.el6_3.i686 1/1  Verifying  : sudo-1.7.4p5-13.el6_3.i686 1/1 
Removed:  sudo.i686 0:1.7.4p5-13.el6_3  
Complete!

[[email protected] ~]#

  7、帮助yum -help、man yum

三、RPM查询应用案例

  1、查询文件隶属的软件包 rpm -qf

[[email protected] ~]# rpm -qf /etc/services
setup-2.8.14-16.el6.noarch
[[email protected] ~]# rpm -qf /bin/ls
coreutils-8.4-19.el6.i686
[[email protected] ~]#

  2、查询软件包信息 rpm -qi、rpm -qip(查询还未安装的软件包)

[[email protected] ~]# rpm -qi sudo
Name  : sudo Relocations: (not relocatable)
Version : 1.7.4p5 Vendor: CentOS
Release : 13.el6_3  Build Date: 2012年08月06日 星期一 22时43分51秒
Install Date: 2012年12月15日 星期六 15时24分40秒  Build Host: c6b7.bsys.dev.centos.org
Group : Applications/System Source RPM: sudo-1.7.4p5-13.el6_3.src.rpm
Size  : 1078427  License: ISC
Signature : RSA/SHA1, 2012年08月06日 星期一 23时31分02秒, Key ID 0946fca2c105b9de
Packager  : CentOS BuildSystem <http://bugs.centos.org>
URL : http://www.courtesan.com/sudo/
Summary : Allows restricted root access for specified users
Description :
Sudo (superuser do) allows a system administrator to give certain
users (or groups of users) the ability to run some (or all) commands
as root while logging all commands and arguments. Sudo operates on a
per-command basis.  It is not a replacement for the shell.  Features
include: the ability to restrict what commands a user may run on a
per-host basis, copious logging of each command (providing a clear
audit trail of who did what), a configurable timeout of the sudo
command, and the ability to use the same configuration file (sudoers)
on many different machines.

  3、查询软件包安装文件rpm -ql、rpm -qlp(查询还未安装的软件包)

[[email protected] ~]# rpm -ql sudo
/etc/pam.d/sudo
/etc/pam.d/sudo-i
/etc/sudo-ldap.conf
/etc/sudoers
/etc/sudoers.d
/usr/bin/sudo
/usr/bin/sudoedit
/usr/bin/sudoreplay
/usr/libexec/sesh
/usr/libexec/sudo_noexec.so
/usr/sbin/visudo
/usr/share/doc/sudo-1.7.4p5
/usr/share/doc/sudo-1.7.4p5/ChangeLog
/usr/share/doc/sudo-1.7.4p5/HISTORY
/usr/share/doc/sudo-1.7.4p5/LICENSE
/usr/share/doc/sudo-1.7.4p5/NEWS
/usr/share/doc/sudo-1.7.4p5/README
/usr/share/doc/sudo-1.7.4p5/README.LDAP
/usr/share/doc/sudo-1.7.4p5/TROUBLESHOOTING
/usr/share/doc/sudo-1.7.4p5/UPGRADE
/usr/share/doc/sudo-1.7.4p5/sample.pam
/usr/share/doc/sudo-1.7.4p5/sample.sudoers
/usr/share/doc/sudo-1.7.4p5/sample.syslog.conf
/usr/share/doc/sudo-1.7.4p5/schema.ActiveDirectory
/usr/share/doc/sudo-1.7.4p5/schema.OpenLDAP
/usr/share/doc/sudo-1.7.4p5/schema.iPlanet
/usr/share/doc/sudo-1.7.4p5/sudoers2ldif
/usr/share/man/man5/sudoers.5.gz
/usr/share/man/man5/sudoers.ldap.5.gz
/usr/share/man/man8/sudo.8.gz
/usr/share/man/man8/sudoedit.8.gz
/usr/share/man/man8/sudoreplay.8.gz
/usr/share/man/man8/visudo.8.gz
/var/db/sudo

  4、查询软件包帮助文档rpm -qd

[[email protected] ~]# rpm -qd sudo
/usr/share/doc/sudo-1.7.4p5/ChangeLog
/usr/share/doc/sudo-1.7.4p5/HISTORY
/usr/share/doc/sudo-1.7.4p5/LICENSE
/usr/share/doc/sudo-1.7.4p5/NEWS
/usr/share/doc/sudo-1.7.4p5/README
/usr/share/doc/sudo-1.7.4p5/README.LDAP
/usr/share/doc/sudo-1.7.4p5/TROUBLESHOOTING
/usr/share/doc/sudo-1.7.4p5/UPGRADE
/usr/share/doc/sudo-1.7.4p5/sample.pam
/usr/share/doc/sudo-1.7.4p5/sample.sudoers
/usr/share/doc/sudo-1.7.4p5/sample.syslog.conf
/usr/share/doc/sudo-1.7.4p5/schema.ActiveDirectory
/usr/share/doc/sudo-1.7.4p5/schema.OpenLDAP
/usr/share/doc/sudo-1.7.4p5/schema.iPlanet
/usr/share/doc/sudo-1.7.4p5/sudoers2ldif
/usr/share/man/man5/sudoers.5.gz
/usr/share/man/man5/sudoers.ldap.5.gz
/usr/share/man/man8/sudo.8.gz
/usr/share/man/man8/sudoedit.8.gz
/usr/share/man/man8/sudoreplay.8.gz
/usr/share/man/man8/visudo.8.gz

  5、查询软件包配置文件

[[email protected] ~]# rpm -qc sudo
/etc/pam.d/sudo
/etc/pam.d/sudo-i
/etc/sudo-ldap.conf
/etc/sudoers
[[email protected] ~]#

  6、校验

[[email protected] tutor]# rpm -V sudo
[[email protected] tutor]#

  如果没有任何内容显示,说明sudo这个软件没有被改变过

  7、软件包文件提取

    比如不小心把/etc/inittab文件删除了,需要从软件包中重新提取恢复

    1)先查找/etc/inittab这个文件属于哪个软件包

[[email protected] backup]# rpm -qf /etc/inittab
initscripts-9.03.31-2.el6.centos.i686
[[email protected] backup]#

    2)从软件包中解压/etc/inittab文件到当前目录

[email protected] backup]# rpm2cpio /mnt/cdrom/Packages/initscripts-9.03.31-2.el6.centos.i686.rpm | cpio -idv ./etc/inittab
./etc/inittab
11182 块
[[email protected] backup]# ls
etc
[[email protected] backup]# ls etc
inittab
[[email protected] backup]#

    3)然后从当前目录复制到/etc/inittab

[[email protected] backup]# cp etc/inittab /etc/inittab

四、源代码包安装

  以安装proftpd为例子:

  1)解压解包

[[email protected] softs]# ls
proftpd-1.3.4b.tar.gz
[[email protected] softs]# tar -xzvf proftpd-1.3.4b.tar.gz

  2)进入解压后的目录

[[email protected] softs]# cd proftpd-1.3.4b
[[email protected] proftpd-1.3.4b]#

  3)先看看这个源码包中的文件

[[email protected] proftpd-1.3.4b]# ls
acconfig.h  include  README README.PAM
aclocal.m4  INSTALL  README.AIX README.ports
ChangeLog install-sh README.capabilities  README.Solaris2.5x
config.guess  lib  README.classes README.Unixware
config.h.in locale README.controls  RELEASE_NOTES
config.sub  ltmain.sh  README.cygwin  sample-configurations
configure m4 README.DSO src
configure.in  Makefile.in  README.facl  stamp-h.in
contrib Make.rules.in  README.FreeBSD tests
COPYING modules  README.IPv6  utils
CREDITS NEWS README.LDAP
doc proftpd.spec README.modules
[[email protected] proftpd-1.3.4b]#

  可以看到里面有一个源码包典型的可以执行文件 configure

  4)配置

[[email protected] proftpd-1.3.4b]# ./configure --prefix=/usr/local/proftpd
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log‘ for more details.
[[email protected] proftpd-1.3.4b]#

  ./configure  在当前目录下执行

  --prefix  指定安装目录

  执行上述的配置命令后,出现错误,没有找到c编译器

  使用yum安装gcc编译器,可以方便的解决gcc依赖的问题

[[email protected] proftpd-1.3.4b]#yum install gcc

  安装好gcc编译器之后,重新执行配置

[[email protected] proftpd-1.3.4b]# ./configure --prefix=/usr/local/proftpd

  5)编译

[[email protected] proftpd-1.3.4b]# make

  把源代码编译成可执行文件

  6)安装

[[email protected] proftpd-1.3.4b]# make install

五、脚本安装

  以安装webmin为例子:

  1)解压解包

[[email protected] softs]# tar -xzvf webmin-1.610.tar.gz

  2)进入解压目录

[[email protected] softs]# cd webmin-1.610

  3)可以查看一下README文件,路面有安装方式的说明

[[email protected] webmin-1.610]# more README

  4)执行脚本安装

[[email protected] webmin-1.610]# ./setup.sh

  安装过程会有一些交互,安装目录、日志文件存放目录、设置用户名密码之类的

[[email protected] webmin-1.610]# ./setup.sh
***********************************************************************
*  Welcome to the Webmin setup script, version 1.610  *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.

Installing Webmin in /softs/webmin-1.610 ...

***********************************************************************
Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.

Config file directory [/etc/webmin]:
Log file directory [/var/webmin]:

***********************************************************************
Webmin is written entirely in Perl. Please enter the full path to the
Perl 5 interpreter on your system.

Full path to perl (default /usr/bin/perl):

Testing Perl ...
Perl seems to be installed ok

***********************************************************************
Operating system name:  CentOS Linux
Operating system version: 6.3

***********************************************************************
Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
- What port to run the web server on. There must not be another
web server already using this port.
- The login name required to access the web server.
- The password required to access the web server.
- If the webserver should use SSL (if your system supports it).
- Whether to start webmin at boot time.

Web server port (default 10000):
Login name (default admin):
Login password:
Password again:
The Perl SSLeay library is not installed. SSL not available.
Start Webmin at boot time (y/n): n
***********************************************************************
Creating web server config files..
..done

  安装完成我们就看见在远程用浏览器登录来管理服务器了

  webmin是一个非常强大基于Web的Unix/Linux系统管理工具

时间: 2024-12-30 18:08:09

rpm管理软件包,以及源码安装详解的相关文章

linux 基础入门(8) 软件安装 rpm、yum与源码安装详解

8.软件 RPM包安装 8.1rpm安装 rpm[选项]软件包名称 主选项 -i 安装 -e卸载 -U升级 -q查找 辅助选项 -ⅴ显示过程 -h --hash 查询 -a-all查询所有安装的包 -f-file查询拥有<-file的包 -p查询一个没有安装的包 卸载 -nodeps忽略依赖 安装的时候要把centos7的iso文件拿过来,为什么要拿过来呢,因为里面的Packages里面就是rpm包. 具体路径是/run/media/wangzirui/Centos 7 X86_64/Packa

MySQL5.6.16二进制源码安装详解及一键安装实现

一.系统环境 1.1操作系统 [[email protected] ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [[email protected] ~]# uname -rm 10.0-693.el7.x86_64 x86_64 [[email protected] ~]# 1.2 安装前环境监测 1.2.1.SELinux和系统防火墙关闭 检查selinux [[email protected] ~]# s

linux 源码安装详解

./configure是用来检测你的安装平台的目标特征的.比如它会检测你是不是有CC或GCC,并不是需要CC或GCC,它是个shell脚本.make是用来编译的,它从Makefile中读取指令,然后编译.make install是用来安装的,它也从Makefile中读取指令,安装到指定的位置. AUTOMAKE和AUTOCONF是非常有用的用来发布C程序的东西. -----1.configure,这一步一般用来生成 Makefile,为下一步的编译做准备,你可以通过在 configure 后加上

NopCommerce源码架构详解--初识高性能的开源商城系统cms

很多人都说通过阅读.学习大神们高质量的代码是提高自己技术能力最快的方式之一.我觉得通过阅读NopCommerce的源码,可以从中学习很多企业系统.软件开发的规范和一些新的技术.技巧,可以快速地提高我们的技术能力.所以我最近决定写一个“NopCommerce源码架构详解”的系列,来详细剖析NopCommerce的架构和原理. Nopcommerce主要用到的技术及特点: 1.Entity Framework 2.ASP.NET mvc 3.IoC容器+依赖注入(Autofac) 4.使用EF中的E

NopCommerce源码架构详解

NopCommerce源码架构详解--初识高性能的开源商城系统cms 很多人都说通过阅读.学习大神们高质量的代码是提高自己技术能力最快的方式之一.我觉得通过阅读NopCommerce的源码,可以从中学习很多企业系统.软件开发的规范和一些新的技术.技巧,可以快速地提高我们的技术能力.所以我最近决定写一个“NopCommerce源码架构详解”的系列,来详细剖析NopCommerce的架构和原理. Nopcommerce主要用到的技术及特点: 1.Entity Framework 2.ASP.NET 

Nop--NopCommerce源码架构详解专题目录

最近在研究外国优秀的ASP.NET mvc电子商务网站系统NopCommerce源码架构.这个系统无论是代码组织结构.思想及分层都值得我们学习.对于没有一定开发经验的人要完全搞懂这个源码还是有一定的难度的,所以也打算写一个跟蓝狐学习Nop--NopCommerce源码架构详解系列文章. 以下文章主要针对NopCommerce版本:Nop3.4 NopCommerce源码架构详解--初识高性能的开源商城系统cms NopCommerce源码架构详解--Autofac依赖注入分析 NopCommer

Hadoop3.1.1源码Client详解 : Packet入队后消息系统运作之DataStreamer(Packet发送) : 主干

该系列总览: Hadoop3.1.1架构体系——设计原理阐述与Client源码图文详解 : 总览 在上一章(Hadoop3.1.1源码Client详解 : 写入准备-RPC调用与流的建立) 我们提到,在输出流DFSOutputStream创建后,DataStreamer也随之创建,并且被启动 下文主要是围绕DataStreamer进行讲解 DataStreamer是一个守护线程类,继承关系如下.       观察DataStreamer的run方法,没有意外的,我们可以发现他和普通的做法一样,用

Linux基础--------监控系统、进程管理、软件包管理-------free、dd、kill、 rpm、yum、源码安装python

作业一:1) 开启Linux系统前添加一块大小为15G的SCSI硬盘 2) 开启系统,右击桌面,打开终端 3) 为新加的硬盘分区,一个主分区大小为5G,剩余空间给扩展分区,在扩展分区上划分1个逻辑分区,大小为5G fdisk -l /dev/sdb       查看新增加硬盘sdb的详细信息     第一个硬盘叫sda,新建的第二个就叫sdb,再增加一个就叫sdc,依此类推 fdisk /dev/sdb      给/dev目录下的sdb硬盘座磁盘分区      m  查看帮助 n  添加一个新

Linux软件管理之src源码安装编译

在很多时候我们需要自定义软件的特性,这时就需要用到源码安装.那么,网上有很多编译源码的工具,那么,我们怎么知道别人使用的是什么工具呢.其实我也不知道(*^▽^*). 那么本篇博客主要是写C代码的源码安装. 什么都不说,直接先上来总结源码安装的四步骤: 第一步:./configure:    [当然,我们在这步骤之前还必须解压源码包]     (1) 通过选项传递参数,指定启用特性.安装路径等:执行时会参考用户的指定以及Makefile.in文件生成makefile     (2) 检查依赖到的外