How to install GDB 8 in CentOS 7

9,779

I would suggest you to follow below mentioned steps, which have been referred from here.

Step 1. Install a package with repository for your system:

On CentOS, install package centos-release-scl available in CentOS repository:

sudo yum -y install centos-release-scl

On RHEL, enable RHSCL repository for you system:

sudo yum-config-manager --enable rhel-server-rhscl-7-rpms

Step 2. Install the collection:

sudo yum -y install devtoolset-7

Step 3. Start using software collections:

scl enable devtoolset-7 bash
Share:
9,779

Related videos on Youtube

jww
Author by

jww

Updated on September 18, 2022

Comments

  • jww
    jww almost 2 years

    I need to install GDB 8.0 or above in my CentOS 7. My current version of gdb is 7.6.1.

    I have followed the guide at devtoolset-7-gdb | Install HowTo:

    1. yum install centos-release-scl-rh

    2. yum --enablerepo=centos-sclo-rh-testing install devtoolset-7-gdb

    but when I hit gdb -v, I get my old version: 7.6.1 and not 8.0.

    • jww
      jww about 5 years
      Are you certain devtoolset-7-gdb is installing GDB 8? If it is GDB 8, then you need to source the new version of GDB at init. Also see How to update Apache and PHP using SCL? on U&L.SE. It is doing the same thing, but for Apache, Python and PHP.
    • user71020
      user71020 about 5 years
      have the same problem installed devtoolset-8 -gdb but gdb --version give 7.6 , any solution ?
    • user71020
      user71020 about 5 years
      @AgnosticCucumber ok i found the answer you need to enable SCL look here , i run it and its working softwarecollections.org/en/scls/rhscl/devtoolset-7