分类:
2008-10-17 13:43:33
原作者:
1、 安装*.src.rpm形式的源代码软件包
#rpm –e packgename(删除原来相关文件)
#rpm –ivh *.src.rpm
#cd /usr/src/redhat/SPECS
#rpmbuild –bb *.spec
#cd ../RPMS/i386
#rpm –ivh *.rpm
2、 安装*.tar.gz / *.tgz / *.bz2 形式的源代码软件包
#gunzip *.tar.gz —>#tar *.tar / #tar zxvf *.tgz / #tar –jxvf *.bz2
然后进入解压后的目录
①./configure --prefix=/usr /*配置——执行文件会安装在/usr/bin,而不是默认 的/usr/local/bin(查看configure的用法用 ./configure --help)*/
②make /*编译*/
③make install /*安装*/
**卸载 :make clean (make完时运行)
make uninstall 或 rm –rf 手动删除软件目录名
3、安装其它类型软件
①基于perl 和python 的程序的安装;
一般情况下,用 #perl file.pl安装;比如:VMware 的Linux版本的安装; [root@localhost vmware-distrib]# perl vmware-install.pl
基于python 开发,也得用 python file.py 来安装
一般软件包都有README和INSTALL 或者 DOC 文档,看文档安装;
②有些安装程序是脚本型的调用;要用 #sh 文件名
比如NVdia驱动的安装就是这样的; [beinan@localhost ~]# sh NFORCE-Linux-x86-1.0-0306-pkg1.run
当然也能通过 chmod 755 NFORCE-Linux-x86-1.0-0306-pkg1.run ,然后 ./NFORCE-Linux-x86-1.0-0306-pkg1.run 来安装;
③也有一些是以file.bin 文件 [beinan@localhost ~]# chmod 755 file.bin
[beinan@localhost ~]# ./file.bin