对于它的介绍 含义 可自行搜索
或者看这个 https://blog.youkuaiyun.com/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]#