gcc
我在新的 SLES 12 盒子上安装时遇到问题。这里的目标实际上是让 R Shiny 运行,但是当我尝试安装任何软件包时,我收到以下错误:
sudo su - -c "R -e \"install.packages('Rcpp',repos='https://cran.rstudio.com/')\""
make: g++: Command not found
这让我相信我需要安装gcc
.
which gcc
:
which: no gcc in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/games)
gcc -version
:
If 'gcc' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf gcc
这就是麻烦开始的地方。当我zypper in gcc
:
Problem: gcc-4.7-7.1.1.x86_64 requires gcc47, but this requirement cannot be provided uninstallable providers: gcc47-4.7.2_20130108-2.1.6.i586[oss] gcc47-4.7.2_20130108-2.1.6.x86_64[oss]
好的..zypper in gcc47-4.7.2_20130108-2.1.6.x86_64
结果:
Problem: gcc47-4.7.2_20130108-2.1.6.x86_64 requires glibc-devel, but this requirement cannot be provided uninstallable providers: glibc-devel-2.17-4.4.1.i586[oss] glibc-devel-2.17-4.4.1.x86_64[oss]
就在那时...zypper in glibc-devel
结果:
Problem: glibc-devel-2.17-4.4.1.x86_64 requires glibc = 2.17, but this requirement cannot be provided uninstallable providers: glibc-2.17-4.4.1.i586[oss] glibc-2.17-4.4.1.x86_64[oss]
zypper in glibc
结果:“glibc”已安装。
No update candidate for 'glibc-2.19-17.72.x86_64'. The highest available version is already installed.
因此,在这个依赖链中的某个地方,RPM 需要我已经拥有的东西的较低版本。我不想降级系统。有什么方法可以获取可以使用的最新 GCC 吗glibc-2.19
?我在这里做错了什么吗?我错过了一个回购吗?
SLSE12:~ # cat /etc/os-release
NAME="SLES"
VERSION="12"
VERSION_ID="12"
PRETTY_NAME="SUSE Linux Enterprise Server 12"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:12"
# zypper lr -u
# | Alias | Name | Enabled | Refresh | URI
--+-----------+-----------+---------+---------+-------------------------------------------------------------------------------
1 | gcc | gcc | Yes | No | http://download.opensuse.org/repositories/devel:/gcc/SLE-12/
2 | oss | oss | Yes | No | http://download.opensuse.org/distribution/12.3/repo/oss/
3 | r-patched | r-patched | Yes | No | http://download.opensuse.org/repositories/devel:/languages:/R:/patched/SLE_12/
答案1
我们遇到了类似的问题(需要安装igraph
和tidygraph
)。
注册SLES 12 SP3 SDK
存储库后,可以从以下地址下载这个链接,我们安装了:
* gcc-c++
* gcc-fortran
从那时起,我们成功安装了所有有问题的软件包。