您的位置:首页 > 运维架构 > Linux

【操作系统】linux--怎么安装tar.gz文件

2011-08-22 20:31 429 查看


# 1: 未解压文件


To uncompress them, execute the following command(s) depending on the extension:

执行以下命令

$
 tar zxf file.tar.gz

$ tar zxf file.tgz

$ tar jxf file.tar.bz2

$ tar jxf file.tbz2


Now change directory
切换目录

$
 ls

$ cd path-to-software/


# 2: Build and install software

编译并安装,有的软件可以不用make,比如nasm,It depends


Generally you need to type 3 commands as follows for building and compiling software:

#
 ./configure

# make

# make install

Where,

./configure will configure the software to ensure your system has the necessary functionality and libraries to successfully compile the package
make will compile all the source files into executable binaries.
Finally, make install will install the binaries and any supporting files into the appropriate locations.


# 3: Read INSTALL / README file

阅读软件说明文档
Each tarball comes with installation and build instructions. Open INSTALL or README file for more information:
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: