SLES 12へのGCCのインストール

SLES 12へのGCCのインストール

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
それ以降、問題のあるすべてのパッケージを正常にインストールしました。

おすすめ記事