RHEL V6 and g++ compiler --- WHERE IS IT??
Hi,
I think I have a couple of issues:
KNOWN ISSUE: I need a g++ compiler on my RHEL V6. I have the "Various Compilers" pkg gcc-4.4.6.el6.i686 installed but this did not seem to include the g++ (i.e. there is no /usr/bin/g++)
I cannot seem to locate the package where this compiler is contained.
Likely Other Issue: I don't think I have my YUM glued in correctly.... it doesn't report trying to attach to the RHN to look outside my box to find stuff if I do say: "yum search g++"
It looks locally and, of course, doesn't find anything.
When I use the ADD/REMOVE SOFTWARE GUI and search for g++ (with my RHEL V6 DVD in place) it returns nothing found as well ... so I assume that distro DVD doesn't have it either. (I know this works since it HAS FOUND other packages like EMACS, for example, on my DVD.
Can anyone offer advice on hooking in the RHN to my YUM and where I might find a g++ that is .el6.i686 compatible?
Thanks,
tony
Responses
Also note that any time you know the name of a file and need to find the package that provides it, you can use yum whatprovides:
# yum whatprovides "*/g++" Loaded plugins: refresh-packagekit, rhnplugin rhel-x86_64-server-6/filelists | 10 MB 00:12 rhel-x86_64-server-6-debuginfo/filelists | 12 MB 00:14 rhel-x86_64-server-ha-6/filelists | 75 kB 00:00 rhel-x86_64-server-rs-6/filelists | 68 kB 00:00 rhpkg/filelists_db | 15 kB 00:00 gcc-c++-4.4.4-13.el6.x86_64 : C++ support for GCC Repo : rhel-x86_64-server-6 Matched from: Filename : /usr/bin/g++ gcc-c++-4.4.6-3.el6.x86_64 : C++ support for GCC Repo : rhel-x86_64-server-6 Matched from: Filename : /usr/bin/g++ gcc-c++-4.4.5-6.el6.x86_64 : C++ support for GCC Repo : rhel-x86_64-server-6 Matched from: Filename : /usr/bin/g++ gcc-c++-4.4.5-6.el6.x86_64 : C++ support for GCC Repo : installed Matched from: Filename : /usr/bin/g++
Regards,
John Ruemker, RHCA
Software Maintenance Engineer
Red Hat, Inc.
My apologies. I missed the part of your post about not being registered to RHN.
You can use the following document to help you register your system to RHN:
https://access.redhat.com/knowledge/node/5023
Hope this helps.
Regards,
John Ruemker, RHCA
Software Maintenance Engineer
Red Hat, Inc.
Brian,
To download the Developer Toolset 1.0 Beta:
- Go to here: https://rhn.redhat.com/rhn/software/channels/Beta.do.
- Click "+" to expand Red Hat Enterprise Linux Client 6:
- Choose Red Hat Developer Toolset Client 6 Beta and/or Red Hat Developer Toolset Debuginfo Client 6 Beta
Or to install from yum:
- yum install devtoolset-1.0
http://docs.redhat.com/docs/en-US/Red_Hat_Developer_Toolset/1.0-Beta/html-single/User_Guide/index.html#sect-Red_Hat_Developer_Toolset-Install
Hi Tony and all,
I ran into the same problem with "yum install devtoolset-1.0".
How do you solve it?
Regards,
Sang
Hello everyone,
Like many other I also need the g++ compiler to install other packages (NVIDIA drivers).
I follow your intruction , used yum whatprovides "*/g++" to find the name of the package and used:
yum install gcc-c++-4.4.5-6.el6.x86_64 to install the package.
But I ran into an error:
"Error: Package: libstdc++-devel-4.4.5-6.el6.x86_64 (rhel-x86_64-workstation-6)
Requires: libstdc++(x86-64) = 4.4.5-6.el6
Installed: libstdc++-4.4.6-3.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201111171049.x86_64/6.2)
libstdc++(x86-64) = 4.4.6-3.el6
Available: libstdc++-4.4.4-13.el6.x86_64 (rhel-x86_64-workstation-6)
libstdc++(x86-64) = 4.4.4-13.el6
Available: libstdc++-4.4.5-6.el6.x86_64 (rhel-x86_64-workstation-6)
libstdc++(x86-64) = 4.4.5-6.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I tied to install the package for the library , did not work, and I check I had the devtool-set v1.0 and it is already install.
Can you help me going around the problem?
Also, important for you to know I am a new in installing Linux!
Hello everyone,
Like many other I also need the g++ compiler to install other packages (NVIDIA drivers).
I follow your intruction , used yum whatprovides "*/g++" to find the name of the package and used:
yum install gcc-c++-4.4.5-6.el6.x86_64 to install the package.
But I ran into an error:
"Error: Package: libstdc++-devel-4.4.5-6.el6.x86_64 (rhel-x86_64-workstation-6)
Requires: libstdc++(x86-64) = 4.4.5-6.el6
Installed: libstdc++-4.4.6-3.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201111171049.x86_64/6.2)
libstdc++(x86-64) = 4.4.6-3.el6
Available: libstdc++-4.4.4-13.el6.x86_64 (rhel-x86_64-workstation-6)
libstdc++(x86-64) = 4.4.4-13.el6
Available: libstdc++-4.4.5-6.el6.x86_64 (rhel-x86_64-workstation-6)
libstdc++(x86-64) = 4.4.5-6.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I tied to install the package for the library , did not work, and I check I had the devtool-set v1.0 and it is already install.
Can you help me going around the problem?
Also, important for you to know I am new in installing Linux!
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
