问题标签 [software-collections]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
172 浏览

php - 来自软件集合的 PHP SSH2

我已经从 Software Collections 安装了 PHP 7.1 并在 rh-php71-php-fpm 上运行。现在我需要使用 ssh2 连接到我的 SFTP,它不附带 Software Collection 之一。我该如何安装它?

我尝试使用以下说明进行安装:http: //programster.blogspot.com/2013/06/centos-64-install-ssh2-extension-for-php.html

然后将 .so 文件复制到 SC 安装的其他模块所在的位置:/opt/rh/rh-php71/root/usr/lib64/php/modules/ssh2.so 然后给它 +x

然后添加ini,其他人所在的位置:/etc/opt/rh/rh-php71/php.d/ssh2.ini

重新启动 rh-php71-php-fpm 和 httpd 但函数 ssh2_connect 仍未定义。

有什么帮助吗?

0 投票
1 回答
222 浏览

ruby - 在 Ruby 脚本的命令调用中使用 SCL


我的雇主在 /usr/bin/ruby 中有 Ruby 1.8.7,并且只允许通过 SCL(软件集合)使用 Ruby 2.4。
这意味着当我运行 ruby​​ 时,我需要使用(来自 RH6 shell)scl enablde ruby-24 'ruby foo.rb'whenfoo.rb 是文件名。我想在第一个执行行上启用 ruby​​ 调用,即,而不是 Ruby 代码文件,如下所示:

代码看起来

其中 cmd 是通过 调用的,scl并为该puts命令运行 Ruby 2.4。我知道可以使用包装文件。我想要 1 个文件中的内容。

0 投票
1 回答
102 浏览

redhat - 如何构建 scl,示例是旧的并且 rpmlint 与文档相矛盾?

我阅读了官方文档、 githubatomicorp上的一些示例。但我还是一头雾水!

应该制作2个规格吗?一个用于构建工具,另一个用于元包?

如果是,为什么 atomicscorp 的规范文件似乎是规范和元规范文件的混合?

此外,元包上的 rpmlint 1.10 似乎与文档和示例相矛盾。我有这个错误:

并且示例使用 %scl_files 语句进入运行时部分(第 172 行)

欢迎任何帮助

谢谢

0 投票
0 回答
48 浏览

software-collections - 构建 perl526 程序的软件集合

我正在寻找使用 scl perl526 构建 perl526 程序的最佳实践。

我将使用 git clone 来拉取源代码,然后使用 scl rh-perl526 enable bash 构建它

我会 git clone 到 /opt/rh/rh-perl526/root/opt 还是更好地放在其他地方?

我正在构建的程序是https://github.com/Ensembl/ensembl-vep.git,它构建得非常好,但有各种可选的东西要添加。

最终程序需要在构建后可供所有用户访问。

谢谢

布莱恩

0 投票
3 回答
33769 浏览

gcc - 如何在 CentOS 上安装 GCC/G++ 8

我习惯于在 Debian/Ubuntu 发行版上安装软件包,但现在我需要安装gcc8. g++* 版本。CentOS 软件库中只有版本 4.*。手动安装它们的正确方法是什么?

0 投票
0 回答
147 浏览

software-collections - SCL Centos nodejs10 - 仍然“安全/最新”

我需要在 CentOS 7 机器上安装 nodejs10 - 所以我尝试使用 SCL 来实现这个目标:

所以这个版本不是最新的,但如果应用了所有必要的补丁,这应该没问题。

根据Red Hat Software Collections 产品生命周期,支持从 2018 年 11 月到 2021 年 4 月,所以我希望一切都很好。

所以我试图找出应用了哪个版本/哪些补丁。因为 rh-nodejs10 是一个 meta-rpm (?) 我查询了 rpm-db 以获取有关已安装包/依赖项的信息并显示了这些信息。

所以主包是在 2018 年 10 月构建的。rh-nodejs10-nodejs 是在 2018 年 11 月构建的,基于源包 rh-nodejs10-nodejs-10.10.0-2.el7.src.rpm。

我的问题是:自 11 月以来此软件包是否有任何更新?

当我搜索 CVE 时,我在NodeJS主页上发现了一些内容,上面说 NodeJS10 易受 CVE-2019-5737 攻击。文字说:

“此漏洞是 CVE-2018-12121 的扩展,已于 2018 年 11 月解决。40 秒超时及其通过 server.headersTimeout 进行的调整适用于此修复程序,如 CVE-2018-12121 中一样。”

作为非母语人士,我猜一个已经针对 CVE-2018-12121 打过补丁的系统是无懈可击的?

如果是这样:在 SCL 版本中是否应用了所需的补丁?

最后一个条目是从 2018 年 10 月 / 2018 年。所以我猜没有修补?

问候马库斯

0 投票
2 回答
2070 浏览

python - How can I make Python3.6, Red Hat Software Collection, persist after a reboot/logout/login?

I am trying to enable rh-python36 software collection after reboot So I can avoid calling "scl enable" all the time.
After unzipping and installing the package:

yum install -y tmp/rpms/*

I created a new file "python36.sh" under /etc/profile.d with the following script:

After restarting or rebooting the instance, I am getting : No such file or directoryenable
I am using CentOS release 6.10 (Final)

0 投票
0 回答
86 浏览

centos - PHP 7.2 没有从易受攻击的 7.2.10 更新?

当前软件合集(3.2 版)中的 PHP 7.2 版本为 7.2.10,存在多个安全漏洞。从即将发布的 3.3 版本的发行说明来看,SCL 3.3 似乎将保持 7.2.10 不变。我不明白这一点。PHP 7.2.11 于 2018 年 10 月发布,PHP 7.2 分支上的最新版本是 7.2.18。如果 SCL 选择不跟上,解决这些漏洞的建议是什么?

0 投票
1 回答
1269 浏览

boost - CentOS 7 Base Repo 中缺少 boost 日志库

我正在学习使用 boost log 并且我正在使用 centOs7 环境。

我在 CentOS7 上安装了 boost-devel 包,并yum从 CentOS7 Base Repo 下载了它。安装后,我检查并发现 boost 日志标题和 .so 丢失。在网上探索时发现了 CentOS 特别兴趣小组的 Software Collections Repo 并在 mariadb rpm 中找到了 boost 日志:
1. rh-mariadb102-boost-log.x86_64
2. rh-mariadb101-boost-log.x86_64

以上两个都给出了 boost 日志,所以它是 Boost 1.58 源的依赖项。但是基本的 boost-devel 包是基于 Boost 1.53 源代码的。

由于版本不匹配,它可能会导致现有项目中出现很多错误,我不能这样做。

请有任何想法/建议。

或者完全从 mariadb rpm 使用 boost 库是否安全?

0 投票
1 回答
3139 浏览

apache - How to replace a standard httpd package with httpd24-httpd from Software Collections?

I am setting up a CentOS 7 server as the migration target of my old CentOS 6 server.

With the state of system updates being so slow, I was thinking of using a more reactive or up-to-date repository for Apache httpd. This is out of security concerns (https://httpd.apache.org/security/vulnerabilities_24.html).

I came across SCL months ago but despite hours and hours of documentation reading and web browsing, I haven't yet found a way to have httpd24-http from SCL replace the standard httpd package, in the same way that mariadb packages are a drop-in replacement for mysql packages.

Is it possible to do without httpd from the default repository and instead have httpd24-httpd from SCL and how?

The thing that has me asking this question is that some packages (e.g. phpMyAdmin and roundcubemail) seem to not see the package from SCL and pull in httpd, which gets installed as a dependency.

I am still somehow confused as to whether Apache httpd (2.4.39 atm) from the SCL is a replacement or whether it's supposed to be installed alongside httpd (2.4.6 atm), in which case, I am wondering whether there is much use since both programs will try to bind to port 80 and port 443. I'm surely missing a few key points in understanding the SCL ecosystem, specifically concerning httpd or similar daemons.

EDIT I finally understood that the SCL version is to be installed alongside the standard httpd. Also, the standard http receives security backports, which answers my initial need.