B
B
bubbleboom2015-08-01 21:20:16
GCC
bubbleboom, 2015-08-01 21:20:16

Where can I find a repository for Centos 7 with fresh GCC (5.2)?

Actually the whole point of the question is in the title. I don't want to build from source. True :)
There is a fresh compiler in Arch. Even ubuntu has it! What is it, for centos I can’t find a version fresher than 4.8?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
bubbleboom, 2015-08-03
@bubbleboom

Forgot to answer my own question.
It looks like the audience from Habr does not go here. Therefore, friend! Don't expect answers to questions more difficult than: - "home server: - Ubuntu vs Debian?" Oh yeah. And now wait for the raid of all sorts of nooooo similar (to you) fuckers :)
Now, actually, the answer to the question.
Because Centos is a branch of redcap, which in turn is based on Fedora. You can make a knight's move and slip its repository.
Create a file in the yum.repos.d directory : Put
the information about the repository:

[warning:fedora]
name=fedora
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-23&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=https://getfedora.org/static/34EC9CBA.txt

In this case, I needed the gcc-go (golang) package. When installing the subject, it will pull up all the dependencies from the Fedora 23 repository. After that, I advise you to disable it, i.e. specify enabled=0
What actually happened? Let's check.
# gccgo -v
Используются внутренние спецификации.
COLLECT_GCC=gccgo
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/5.1.1/lto-wrapper
Целевая архитектура: x86_64-redhat-linux
Параметры конфигурации: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --disable-libgcj --with-isl --enable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Модель многопоточности: posix
gcc версия 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

A
alexander sm1ly, 2015-09-04
@sm1ly

how did you do it ... I'm starting to cling to addictions

L
LuckySB, 2016-11-01
@LuckySB


yum install centos-release-scl-rh
yum install devtoolset-4-gcc-c++
cd /opt/rh/devtoolset-4
. enable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question