Entschuldigung für das Posten einer allgemeinen Frage. Ich versuche, ‚Rest-Client‘ für eine Ruby on Rails-Projekt als gem install rest-client
, zu installieren, die fehlschlägt sagenInstallieren von Paketen auf CentOS 6.5
make: g++: Command not found
make: *** [unf.o] Error 127
make failed, exit code 2
So überprüfe ich, um zu sehen, ob g ++ installiert ist oder nicht. Anscheinend ist gcc installiert (gcc (GCC) 4.4.7 20120313), aber nicht g ++. Ich habe versucht, es mit yum zu installieren, aber keinen Erfolg. Unten sind die Befehle, die ich verwendet habe.
yum install gcc-c++
yum groupinstall "Development Tools"
Später habe ich http://people.centos.org/tru/devtools-2/devtools-2.repo Repo und versuchte yum install devtoolset-2-gcc
zu laufen, die Requires: policycoreutils-python
sagen gescheitert Also versuchte ich es mit yum aber kein Glück zu installieren !. Dann habe ich versucht, g ++ und seine Abhängigkeiten manuell zu installieren (Download der RPMs), aber ich fühlte mich, als würde ich in ein Kaninchenloch gehen.
Bitte helfen Sie !! Ich bin mir nicht sicher, wo ich anfangen soll. Hier
ist der Ausgang
adobe-linux-x86_64 Adobe Systems Incorporated 2
base CentOS-6 - Base 352
centosplus CentOS-6 - Plus 68
contrib CentOS-6 - Contrib 0
couchbase Couchbase package repository 7
epel Extra Packages for Enterprise Linux 6 - x86_64 12,214
extras CentOS-6 - Extras 62
fasttrack CentOS - fasttrack 66
ius IUS Community Packages for Enterprise Linux 6 - x86_64 362
ius-debuginfo IUS Community Packages for Enterprise Linux 6 - x86_64 - Debug 71
ius-dev IUS Community Packages for Enterprise Linux 6 - x86_64 - Dev 11
ius-dev-debuginfo IUS Community Packages for Enterprise Linux 6 - x86_64 - Dev Debug Info 5
ius-dev-source IUS Community Packages for Enterprise Linux 6 - x86_64 - Dev Source 0
ius-source IUS Community Packages for Enterprise Linux 6 - x86_64 - Source 0
mysql-connectors-community MySQL Connectors Community 21
mysql-tools-community MySQL Tools Community 33
mysql56-community MySQL 5.6 Community Server 229
remi Les RPM de remi pour Enterprise Linux 6 - x86_64 3,230
remi-safe Safe Remi's RPM repository for Enterprise Linux 6 - x86_64 590
rpmforge Red Hat Enterprise 6 - RPMforge.net - dag 4,718
slc6-scl Scientific Linux CERN (SLC6) - SCL addons 2,472
testing-devtools-2-centos-6 testing 2 devtools for CentOS 6 119
updates CentOS-6 - Updates 1,555
webtatic Webtatic Repository EL6 - x86_64
Eine weitere seltsame Sache ist, wenn ich yum search all policycoreutils
tun es ein Ergebnis zurückgibt, aber wenn ich versuche, es zu installieren, sagt kein Paket
Was gibt 'yum repolist' aus? Ich denke nicht, dass das das offizielle Devtools Repo ist. Ich denke, dass du wahrscheinlich [das] willst (https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/3/html/User_Guide/sect-Red_Hat_Developer_Toolset-Install.html) oder [dies] (https: // www.softwarecollections.org/en/scls/rhscl/devtoolset-3/). Ich würde wahrscheinlich vorschlagen, das Devtools-2 Repo zu entfernen. –
Verwenden Sie diesen Befehl 'yum install gcc-C++' Quelle http://superuser.com/questions/590808/yum-install-gcc-g-doesnt-work-anymore-in-centos-6-4 – Kavin