william

Keep Calm and Markdown.

cgdb: 安装与使用

安装

安装 cgdb

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
git clone git@github.com:cgdb/cgdb.git
cd cgdb

./autogen.sh

## 安装依赖包
## CentOS
yum install ncurses-devel
yum install texinfo
## 如果是 CentOS8
yum config-manager --set-enabled PowerTools
yum install help2man
yum install readline-devel
yum install flex

## Ubuntu
sudo apt-get install texinfo
sudo apt-get install flex

./configure --prefix=/usr/local
make -j
sudo make install

GLIBCXX: not found

无法找到 GLIBCXX 的解决方法。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Ubuntu
cd /usr/lib/x86_64-linux-gnu/
## CentOS
cd /usr/lib64

ll |grep libstd
strings libstdc++.so.6 | grep GLIBCXX
## 有可能找不到 GLIBCXX_3.2.26

locate libstdc++.so.6

strings /usr/local/gcc/lib64/libstdc++.so.6 | grep GLIBCXX
cp /usr/local/gcc/lib64/libstdc++.so.6 /usr/lib/x86_64-linux-gnu
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
0%