Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ubuntu16.04.6 LTS gdb source code installation

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Scene

# 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

The online solution is to update the source apt-get update, but there is no better source address at present

Solve

1) install termcap

Wget https://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz

. / configure

Make

Make install

2) install 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

Be careful

Gdb encountered an error when installing with source code: no termcap library found, installing termcap

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report