0

I run 32 bit Centos 6.9 Linux with installed development tools for it with command:

yum groupinstall 'Development Tools'

But it installs very old GCC and GDB. What is the best way to install newer tools supported by my system?

  • 1
    Try to create a Virtual Machine or a container (virtualbox, qemu, docker, vagrant etc...) – Gilles Quenot Mar 13 '18 at 16:20
  • Build e.g. gcc-5.4.0 drive.google.com/file/d/1bJY1P6C16zveBwWyu0h771ufee-aGIjo/… ,,, and use $ export CC=gcc53 CXX=g++53 (&& ./configure) when building a later GDB. – Knud Larsen Mar 13 '18 at 18:14
  • I decided to make project on old Centos since I will need need to run this application on current machine. I was expecting that compiled code in original machine will use most native libraries from Centos 6.9 – vico Mar 14 '18 at 9:28
0

You should never replace the packages in the base repositories, however, you can get newer compilers and development tools out of Software Collections. They install alongside the OS packages.

See: https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/

  • Does it men I can use old GCC/GDB and newer one from Software Collections? – vico Mar 14 '18 at 9:24
  • They install side by side. You’d have to invoke the scl command to see the new versions. – jsbillings Mar 14 '18 at 13:26

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.