Linux的三种安装方式之一源码包安装

对于它的介绍 含义 可自行搜索
或者看这个 https://blog.csdn.net/C_time/article/details/90299724 内容贼多且乱 有耐心的可以看下 源码包安装在后半部分

1、源码包安装 一般下载 上传到服务器
或者知道链接 直接使用wget命令 直接下载到服务器

安装源码包可以进到目录读一下README 这里告诉会我们软件怎么安装

2.安装源码包步骤(这种类型安装可能比较费事 有的要安装好几个小时)
就几个命令
在这里插入图片描述
就像是这样 三个命令

[root@testsix bashdb-4.4-0.92]# ./configure 
[root@testsix bashdb-4.4-0.92]# make
[root@testsix bashdb-4.4-0.92]# make install

–prefix 是设置安装目录 不写就是安装到当前目录

./configure --prefix=/usr/local/bash

然后
具体介绍下
1.上传这个包
在这里插入图片描述
2,解压 -C 大写C 指定解压目录
tar -zxvf /home/bashdb-4.4-0.92.tar.gz -C /usr/local/
结果
很快 就几百kb 这个软件是shell用来调试的工具
在这里插入图片描述
3.进入软件目录 里面有个configure可执行文件
我们执行他 这样他就去检测我们的环境了
执行

[root@testsix bashdb-4.4-0.92]# ./configure

在这里插入图片描述

4.然后就有makefilie文件 我们就可使用make和make install命令

[root@testsix bashdb-4.4-0.92]# make
[root@testsix bashdb-4.4-0.92]# make install

在这里插入图片描述

5。这样就行了
先找configure这个可执行文件 执行后 找到Makefile这个文件
安装编译都依赖这个文件 它检测我们服务器的环境
然后我们进行编译
make
make install
这样的话 就算是装好了
我们验证一下

[root@testsix bashdb-4.4-0.92]# which bashdb
/usr/bin/which: no bashdb in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@testsix bashdb-4.4-0.92]# 

执行bashdb看一下 因为这也是个可执行文件
上面说我们以后要使用它 要加一个脚本
这个工具以后用于对shell脚本进行调试


[root@testsix bashdb-4.4-0.92]# ./bashdb
bash debugger, bashdb, release 4.4-0.92

Copyright 2002, 2003, 2004, 2006-2012, 2014 Rocky Bernstein
This is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.

bashdb: need to give a script to debug or use the -c option.
[root@testsix bashdb-4.4-0.92]# 

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值