CentOS 6.6 + GDB 7.5 + Python 2.7

Issues related to applications and software problems
Post Reply
baloo
Posts: 1
Joined: 2015/07/10 16:27:36

CentOS 6.6 + GDB 7.5 + Python 2.7

Post by baloo » 2015/07/10 16:34:48

I need the configuration in subject to work properly with gdb inside QtCreator 3.4, but i have many issues with rpms dependencies.
Someone could help me?

thanks in advance

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

Re: CentOS 6.6 + GDB 7.5 + Python 2.7

Post by TrevorH » 2015/07/10 17:19:20

You can find sane parallel installable python27* packages in the IUS Community repo for CentOS 6. CentOS 6 ships gdb 7.2-75 and I am not aware that any reputable repo ships a newer version. You cannot just grab random RPMs intended for different distributions and expect them to install on CentOS 6 - things have to be built specifically for your distro. You can find instructions in the wiki about how to setup an rpmbuild environment and how to rebuild an SRPM for e.g. Fedora so that it works on CentOS but you will be responsible for the support of your own packages.
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: CentOS 6.6 + GDB 7.5 + Python 2.7

Post by chemal » 2015/07/10 21:43:20

RH's devtoolsets have gdb 7.5.0, 7.6.1, and 7.8.2 in 1.1, 2.1, and 3.1, respectively. You can get 1.1 and 2.1 from CERN and 3.1 from softwarecollections.org. Softwarecollections.org also has a python 2.7 package which I prefer to the IUS one, because they have more python modules available.

MzK
Posts: 2
Joined: 2015/06/07 21:56:49

Re: CentOS 6.6 + GDB 7.5 + Python 2.7

Post by MzK » 2015/07/31 15:30:57

TrevorH wrote:You can find sane parallel installable python27* packages in the IUS Community repo for CentOS 6. CentOS 6 ships gdb 7.2-75 and I am not aware that any reputable repo ships a newer version. You cannot just grab random RPMs intended for different distributions and expect them to install on CentOS 6 - things have to be built specifically for your distro. You can find instructions in the wiki about how to setup an rpmbuild environment and how to rebuild an SRPM for e.g. Fedora so that it works on CentOS but you will be responsible for the support of your own packages.
Thanks TrevorH -- I will check this out!

MzK
Posts: 2
Joined: 2015/06/07 21:56:49

Re: CentOS 6.6 + GDB 7.5 + Python 2.7

Post by MzK » 2015/08/04 21:32:08

MzK wrote:
TrevorH wrote:You can find sane parallel installable python27* packages in the IUS Community repo for CentOS 6. CentOS 6 ships gdb 7.2-75 and I am not aware that any reputable repo ships a newer version. You cannot just grab random RPMs intended for different distributions and expect them to install on CentOS 6 - things have to be built specifically for your distro. You can find instructions in the wiki about how to setup an rpmbuild environment and how to rebuild an SRPM for e.g. Fedora so that it works on CentOS but you will be responsible for the support of your own packages.
Thanks TrevorH -- I will check this out!
I was able to successfully install python 2.7 without destroying the system required python 2.6. I went to IUS but installed the individual rpms, through yum, that I wanted rather than enabling the entire repo, noting their warnings about replacement. So, with a bit of futzing with the scripts I had, etc., all good!

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

Re: CentOS 6.6 + GDB 7.5 + Python 2.7

Post by TrevorH » 2015/08/04 23:29:04

The problem with downloading individual rpms and installing them and not using the repo is that you will now not get an update for the packages you downloaded next time they are updated. You would do better to install the ius-release package and then edit .etc.yum.repos.d/ius.repo and use includepkgs= inside that to restrict which packages are selected. Then when IUS next update python for some hiseous security vulnerability, you will ne notified and offered the update next you yum update.
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

Post Reply