software-collections

How to install GCC/G++ 8 on CentOS

别来无恙 提交于 2020-08-21 05:32:07
问题 I'm used to install packages on Debian/Ubuntu distributions, but now I need to install gcc and g++ version 8.*. There is only version 4.* in CentOS repositories. What's the correct way to install them manually? 回答1: CentOS 8 already comes with GCC 8. On CentOS 7, you can install GCC 8 from Developer Toolset. First you need to enable the Software Collections repository: yum install centos-release-scl Then you can install GCC 8 and its C++ compiler: yum install devtoolset-8-gcc devtoolset-8-gcc

How do I enable python35 from Software Collections at login?

时光总嘲笑我的痴心妄想 提交于 2020-05-12 04:43:38
问题 I followed the Software Collections Quick Start and I now have Python 3.5 installed. How can I make it always enabled in my ~/.bashrc , so that I do not have to enable it manually with scl enable rh-python35 bash ? 回答1: Use the scl_source feature. Create a new file in /etc/profile.d/ to enable your collection automatically on start up: $ cat /etc/profile.d/enablepython35.sh #!/bin/bash source scl_source enable python35 See How can I make a Red Hat Software Collection persist after a reboot

(How) Can I use the new C++ 11 ABI with devtoolset-7 on Centos/RHEL?

时光怂恿深爱的人放手 提交于 2019-12-28 15:38:09
问题 My goal is to use gcc 7.2 (and clang 6) on Centos 7 to build executables compatible with Centos 7 targets without devtoolset installed but * using the newer C++ ABI *. The newer ABI fixed a couple of deficiencies in the lib that weren't able to be fixed without an ABI change. E.g list::size O(1) Vs O(n), no COW for strings. I speculated on an answer as to why this might not be possible in the following question. -D_GLIBCXX_USE_CXX11_ABI=1 ineffective for devtoolset-7 on CentOS 7 回答1: This

Install Obsolete Devtoolset Collection for CentOS

自古美人都是妖i 提交于 2019-12-22 12:33:15
问题 At present time Devtoolset-5 (and earlier) cannot be istalled from Software Collection Repository (centos-release-scl) using yum (only Devtoolset-6 and 7 are available). Nevertheless this collection can be downloaded as a list of rpm-packages. Is it possible to enable such EOL collections for yum, or maybe there is another way to install them correctly? 回答1: You can install the obsolete devtoolset-3 in this way: sudo yum --obsolete install devtoolset-3 回答2: There was no DTS 5 release. It was

How to use user's pipenv via systemd? Python is installed via SCL

。_饼干妹妹 提交于 2019-12-11 16:05:52
问题 On a CentOS 7 server, I have installed Python 3.6 via SCL. ( https://www.softwarecollections.org/en/scls/rhscl/rh-python36/) I have this line in .bashrc to enable SCL's Python 3.6 source scl_source enable rh-python36 I have installed pipenv: pip install --user pipenv I run Python programs via the command line: pipenv run python myprogram.py All these work great. I have a Flask application that uses the user's pipenv. I am trying to create a systemd unit file to start/stop/reload the Flask web

Install Obsolete Devtoolset Collection for CentOS

杀马特。学长 韩版系。学妹 提交于 2019-12-06 07:21:19
At present time Devtoolset-5 (and earlier) cannot be istalled from Software Collection Repository (centos-release-scl) using yum (only Devtoolset-6 and 7 are available). Nevertheless this collection can be downloaded as a list of rpm-packages. Is it possible to enable such EOL collections for yum, or maybe there is another way to install them correctly? You can install the obsolete devtoolset-3 in this way: sudo yum --obsolete install devtoolset-3 There was no DTS 5 release. It was skipped to align the DTS version with the GCC major release, once GCC switched to a yearly increasing version

Permanently enable RHEL scl

牧云@^-^@ 提交于 2019-12-03 11:15:03
问题 Is there a way to permanently enable custom Software Collections for RedHat? I have installed an scl to provide python27 in RHEL6 and don't want to have to enable the custom scl every time. 回答1: Well, you could add something to your startup script to source the enable script. Eg add to your .bash_profile (note space between initial dot and / ) . /opt/rh/python27/enable 回答2: This option sounds dangerous to me for root. I would think something like the following would be safer and more

Permanently enable RHEL scl

别等时光非礼了梦想. 提交于 2019-12-03 02:42:47
Is there a way to permanently enable custom Software Collections for RedHat? I have installed an scl to provide python27 in RHEL6 and don't want to have to enable the custom scl every time. Robert Cohen Well, you could add something to your startup script to source the enable script. Eg add to your .bash_profile (note space between initial dot and / ) . /opt/rh/python27/enable This option sounds dangerous to me for root. I would think something like the following would be safer and more appropriate: You can create a function that takes command line options. Think of this as an alias on

(How) Can I use the new C++ 11 ABI with devtoolset-7 on Centos/RHEL?

我与影子孤独终老i 提交于 2019-11-29 07:01:19
My goal is to use gcc 7.2 (and clang 6) on Centos 7 to build executables compatible with Centos 7 targets without devtoolset installed but * using the newer C++ ABI *. The newer ABI fixed a couple of deficiencies in the lib that weren't able to be fixed without an ABI change. E.g list::size O(1) Vs O(n), no COW for strings. I speculated on an answer as to why this might not be possible in the following question. -D_GLIBCXX_USE_CXX11_ABI=1 ineffective for devtoolset-7 on CentOS 7 This seems like a duplicate of the question you linked to, I don't see any reason to keep both open. Can I use the