Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How to install GDB 8 in CentOS 7

Writer Olivia Zamora

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.

3

1 Answer

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy