1.先查看bash版本
bash --version
If your version of bash is 4.3 or higher, use folder 4.3-0-91
If your version of bash is 4.2 or higher, use folder 4.2-0.8
If your version of bash is 4.1 or higher but less than 4.2 use folder 4.1-0.5
If your version of bash is 4.0 or higher but less than 4.1 use folder 4.0-0.4
If your version of bash is 3.1 or higher and less than 4.0, use folder 3.1-0.09.
If your version of bash is 3.0 or higher but less than 3.1, use the folder 3.00-0.05.
2.下载
wget https://sourceforge.net/projects/bashdb/files/bashdb/4.1-0.5/bashdb-4.1-0.5.tar.gz
可以替换版本如
wget https://sourceforge.net/projects/bashdb/files/bashdb/4.2-0.8/bashdb-4.2-0.8.tar.gz
3.解压 tar zxvf bashdb-4.1-0.5.tar.gz
4.配置 ./configure
5.编译并安装 make && make install