Upgrade to devtoolset-8-gdb done but gdb --version still 7.6

Issues related to applications and software problems
Post Reply
umen
Posts: 3
Joined: 2011/12/08 08:22:06

Upgrade to devtoolset-8-gdb done but gdb --version still 7.6

Post by umen » 2019/06/25 08:08:26

Hey
i need to upgrade to gdb 8
i done :

Code: Select all

yum --enablerepo=centos-sclo-rh-testing install devtoolset-8-gdb
sudo yum --enablerepo=centos-sclo-rh-testing install devtoolset-8-gdb
installation is successful

Code: Select all

Installed:
  devtoolset-8-gdb.x86_64 0:8.2-3.el7

Dependency Installed:
  devtoolset-8-runtime.x86_64 0:8.1-1.el7
but when i do gdb --version im getting version 7.6

Code: Select all

GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7
what im missing here ?
thanks

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Upgrade to devtoolset-8-gdb done but gdb --version still 7.6

Post by TrevorH » 2019/06/25 08:50:52

If it's an SCL then you need to use scl enable ... to invoke it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

umen
Posts: 3
Joined: 2011/12/08 08:22:06

Re: Upgrade to devtoolset-8-gdb done but gdb --version still 7.6

Post by umen » 2019/06/25 11:15:37

Thanks , yeah i found i need to enable it to use it , the problem i need to enable it each time i want to use gdb 8 .
can you please explain me why SCL needs to be enabled each time ?
how can i make it permanent ?
and what is SCL in general
thanks

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Upgrade to devtoolset-8-gdb done but gdb --version still 7.6

Post by TrevorH » 2019/06/25 14:58:35

You need to enable it every time because that's how SCLs work. They're designed to be parallel installable copies of things that are already part of the distro at a lower version.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: Upgrade to devtoolset-8-gdb done but gdb --version still 7.6

Post by chemal » 2019/06/25 15:40:11

To permanently enable an SCL put something like

Code: Select all

. scl_source enable devtoolset-8
in your ~/.bashrc.

Post Reply