您好,登錄后才能下訂單哦!
場(chǎng)景
# sudo apt-get install gdb
Reading package lists... Done
Building dependency tree??????
Reading state information... Done
Package gdb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'gdb' has no installation candidate
網(wǎng)上的方案是更新源apt-get update,但是目前沒(méi)有更好的源地址
解決
1)安裝termcap
wget https://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz
./configure
make
make install
2) 安裝gdb
wget http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.xz
tar -xf gdb-7.8.tar.xz????
cd gdb-7.8/????
./configure
make
sudo cp gdb/gdb /usr/local/bin/gdb
注意
gdb使用源碼安裝的時(shí)候遇到錯(cuò)誤:no termcap library found,安裝termcap
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。