RHEL V6 and g++ compiler --- WHERE IS IT??

Latest response

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

Have you tried the package gcc-c++.

 

David

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.

Tony,

 

There's also a new gcc 4.7 in beta.  See here: 

 

https://access.redhat.com/notice/new-developer-toolset-beta-available-testing

 

Thanks to all !

 

As I said in the OP, since my YUM is not RHNing, most YUMming comes back with no matches found, including the 'whatprovides.' I have a 16-alphanumeric (subscription?) number for my RHEL V6 install - do I use that somehow to turn on RHN?

 

I went to the gcc beta but it appears to all be for SERVER and I have CLIENT --- does it matter?

 

regards,

tony

 

 

UPDATE:   rhn_register seems to be doing something useful !

 

 

UPDATE2:  With RHN employed now, yum search, yum whatprovides, etc for "g++", "*/g++", or "gcc-c++" all return no matches :<

 

 

UPDATE3:  The link provided to the Beta release of GCC sneds me to a PERMISSION ERROR page if I select the ".i386" or "x86_64"... I also note there is no ".i686" which seems to be the common extension for packages I am using.

 

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:

  1. Go to here:  https://rhn.redhat.com/rhn/software/channels/Beta.do.
  2. Click "+" to expand Red Hat Enterprise Linux Client 6:
  3. 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

Thanks to all!

 

I've taken Andrius' advice and went to the beta -- d/l the devtoolset-1.0-gcc and the devtoolset-1.0-gcc-c++

 

rpm -i devtoolset-1.0-gcc (etc)  

 

seems to require a slew of dependentcies ...  the ADD/REMOVE SOFTWARE app usually handles all that stuff for me... can I "point" the ADD/REMOVE to these .rpm files or must I manually d/l and install all of the dependencies myself in the terminal?

 

thanks!

 

 

UPDATE:  and I am just noticing (sorry)  that yum really doesn't like the .x86_64 extension and complains about the incompatible architecture. I am going to go back and look for .i686 versions of the beta.

 

UPDATE2:  yum returns "no package available" when I

 

yum install devtoolset-1.0

 

Any ideas?

 

regards,

tony

 

 

 

UPDATE3:  found the i686 versions of the devtools. It requires devtools-runtime --- I am on the hunt !

 

OK, so here's where we stand...

 

I found d/l and installed all of the DEVTOOLSET (.i686) packages from the BETA site that Andrius suggested.

 

My ADD/REMOVE SOFTWARE gui shows -->

 

GCC version 4.7

C++ Support for GCC

Header Files and Librarires for C++

Package that handles DevToolSet 1.0 software collection.

 

But yet in the terminal:

 

g++ 

 

returns "no command" found and there is still no /usr/bin/g++  

 

What am I missing?

 

 

regards,

tony

Tony, please check out the Beta documentation:

 

https://access.redhat.com/knowledge/docs/Red_Hat_Developer_Toolset/

 

Sounds like you haven't yet issued an 'scl enable' to enable the Developer Toolset.

 

Andrius.

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!