您好,登錄后才能下訂單哦!
場景
# 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
網上的方案是更新源apt-get update,但是目前沒有更好的源地址
解決
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使用源碼安裝的時候遇到錯誤:no termcap library found,安裝termcap
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。