How to install gdb 7.6.1 on CentOS

Source: Internet
Author: User

How to install gdb 7.6.1 on CentOS

1. Uninstall the old version of gdb if any

Rpm-qa | grep gdb

Rpm-e -- nodeps gdb-7.2-60.el6_4.1.i686

2. Install the Texinfo Document System

Yum install ncurses-devel

3. Download the source code package of gdb 7.6.1.

Http://ftp.gnu.org/gnu/gdb/gdb-7.6.1.tar.gz

Place the source code package in the Download directory of the home directory.

4. decompress the source code package of gdb 7.6.1.

Cd/root/Downloads/

Tar-zxvf gdb-7.6.1.tar.gz

5. Generate makefile

Cd/root/Downloads/gdb-7.6.1

./Configure

Make

Sudo make install

6. Copy the compiled gdb file to the/usr/bin directory.
Sudo cp/root/Downloads/gdb-7.6.1/gdb/usr/bin/gdb
7. Check whether the installation is successful.
Gdb-v

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.