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

本文介绍了如何解压文件,并提供了编译和安装软件的基本步骤。涵盖了从解压缩到配置、编译、安装的完整流程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

# 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:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值