# I can't get the gcc-c++ compiler installed..

**URL:** <https://forums.suse.com/t/i-cant-get-the-gcc-c-compiler-installed/24862>\
**Category:** SLES Configure-Administer\
**Created:** [December 9, 2013, 12:24pm UTC](https://forums.suse.com/t/i-cant-get-the-gcc-c-compiler-installed/24862 "2013-12-09T12:24:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![adzy](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@adzy](https://forums.suse.com/u/adzy)\
**Post date:** [December 9, 2013, 12:24pm UTC](https://forums.suse.com/t/i-cant-get-the-gcc-c-compiler-installed/24862/1 "2013-12-09T12:24:09Z")

</div>

(actually… I don’t know where to find it…)

SUSE Linux Enterprise Server 11 (i586)

Hi,

I need to get an Eclipse C++ up and running on my SUSE Linux Enterprise Server 11 (i586)

Eclipse install went well, but I can’t get the gcc-c++ compiler installed…

Just to see what is there:

[INDENT]susehost:~ # rpm -q gcc  
gcc-4.3-62.198  
susehost:~ # rpm -q gcc-c++  
package gcc-c++ is not installed  
susehost:~ #[/INDENT]

```
[B]Went to YaST2 Software Management where found "gcc-c++"[/B]

```

[INDENT]The system GNU C++ Compiler"  
Install failed… it tried to find the install on CDRom Drive[/INDENT]

Tried zypper

[INDENT]  
Same story, no media:

susehost:~ # zypper install gcc-c++  
Loading repository data…  
Reading installed packages…  
Resolving package dependencies…

The following NEW packages are going to be installed:  
gcc43-c++ gcc-c++

Overall download size: 3.0 M. After the operation, additional 7.9 M will be used. (\<\<\< download from where??)  
Continue? [YES/no]: YES  
Retrieving package gcc43-c+±4.3.3\_20081022-11.18.i586 (1/2), 3.0 M (7.9 M unpacked)  
Failed to mount cd:///?devices=/dev/sr0 on /var/adm/mount/AP\_0x00000001: No medium found (mount: No medium found on /dev/sr0)

Abort, retry, ignore? [A/r/i]:  
[/INDENT]

```
[B]Found the gcc-c++.ymp on software.opensuse.org.. [/B]

```

[INDENT]did download… but no clue was found how to install that image.[/INDENT]

Long story short…

Obviously, I have no install media…  
I need to find a way to change media from /dev/sr0 to internet… I found that in Yast, Software, Software repositories where I could see the /dev/sr0, and I can add a line…  
HTTP, HTTPS, FTP… etc… but where do I go?? It needs repository name…Server name… Directory on server Where is my “gcc-c++” ??

Many thanks,  
Adzy

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://forums.suse.com/u/mikewillis)\
**Post date:** [December 9, 2013, 12:55pm UTC](https://forums.suse.com/t/i-cant-get-the-gcc-c-compiler-installed/24862/2 "2013-12-09T12:55:08Z")

</div>

Can you post the output of

```auto
$ cat /etc/*release*
```

So we can see exactly which version of SLES 11 you are using  
and also

```auto
$ zypper lr -u
```

so we can see which repos you have set up.  
When posting output please wrap in CODE tags as it makes it much easier to read. (Look for # button in toolbar when composing post.)

It sounds to me like you have no repos set up otherwise installing you would have been able to install gcc+c++ using the method you described. Repos should be set up automatically when the machine is registered. Is your machine registered?

---

<div class="post-metadata">

**Author:** ![adzy](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@adzy](https://forums.suse.com/u/adzy)\
**Post date:** [December 9, 2013, 2:06pm UTC](https://forums.suse.com/t/i-cant-get-the-gcc-c-compiler-installed/24862/3 "2013-12-09T14:06:53Z")

</div>

[QUOTE=mikewillis;17910]Can you post the output of

```auto
$ cat /etc/*release*
```

So we can see exactly which version of SLES 11 you are using  
and also

```auto
$ zypper lr -u
```

so we can see which repos you have set up.  
When posting output please wrap in CODE tags as it makes it much easier to read. (Look for # button in toolbar when composing post.)

It sounds to me like you have no repos set up otherwise installing you would have been able to install gcc+c++ using the method you described. Repos should be set up automatically when the machine is registered. Is your machine registered?[/QUOTE]

Hi Mike,

Here the output as requested:

[CODE]/localuser@susehost:~\> cat /etc/_release_  
LSB\_VERSION=“core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-ia32:core-3.2-ia32:core-4.0-ia32”  
cat: /etc/lsb-release.d: Is a directory  
SUSE Linux Enterprise Server 11 (i586)  
VERSION = 11  
PATCHLEVEL = 0  
localuser@susehost:~\> zypper lr -u

# | Alias | Name | Enabled | Refresh | URI

–±-------------------------------------±-------------------------------------±--------±--------±-----------------------  
1 | SUSE-Linux-Enterprise-Server-11 11-0 | SUSE-Linux-Enterprise-Server-11 11-0 | Yes | No | cd:///?devices=/dev/sr0  
localuser@susehost:~\> [/CODE]

About the registration: no hope.. I had a look into the process and wht is required to registrate..its not done I guess. The image is a VMware with several “non SUSE” applications pre-installed. Eclipse as mentioned has plugins for these apps..

Is this c++ complier not ‘open source’?

So.. no registartion, no c++ for me?

Thanks!

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://forums.suse.com/u/mikewillis)\
**Post date:** [December 9, 2013, 2:53pm UTC](https://forums.suse.com/t/i-cant-get-the-gcc-c-compiler-installed/24862/4 "2013-12-09T14:53:41Z")

</div>

That version of SLES went End Of Life about three years ago. Current version is SLES 11 Service Pack 3 which can be downloaded from [https://www.suse.com/products/server/eval.html](https://www.suse.com/products/server/eval.html)

It’s not a question of open source or not, if you don’t register a SLES install you don’t get access to the SLES repos. That of course means you don’t get any updates.

When you download SLES from the url above you get an activation code that you can use to register the machine with and get updates for 60 days. After that the machine will keep working but you won’t have access to updates or support unless you buy a license.

> [@adzy;17912](#):
>
> The image is a VMware with several “non SUSE” applications pre-installed.

I’m not sure exactly what you mean by that. Where did this image come from?

I found a gcc-c++ package for SLE 11 via the [openSUSE Build Service](http://software.opensuse.org/package/gcc-c++) The relevant repo is  
[http://download.opensuse.org/repositories/home:/zhy20120210:/SLES-11-SP1-x86-64/SLE\_11/](http://download.opensuse.org/repositories/home:/zhy20120210:/SLES-11-SP1-x86-64/SLE_11/)  
I’ve no idea if it works and it certainly isn’t supported by SUSE.

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [December 9, 2013, 5:04pm UTC](https://forums.suse.com/t/i-cant-get-the-gcc-c-compiler-installed/24862/5 "2013-12-09T17:04:09Z")

</div>

On 09/12/2013 12:54, mikewillis wrote:  
[color=blue]

> I found a gcc-c++ package for SLE 11 via the ‘openSUSE Build Service’  
> ([http://software.opensuse.org/package/gcc-c++](http://software.opensuse.org/package/gcc-c++)) The relevant repo is  
> [http://download.opensuse.org/repositories/home:/zhy20120210:/SLES-11-SP1-x86-64/SLE\_11/](http://download.opensuse.org/repositories/home:/zhy20120210:/SLES-11-SP1-x86-64/SLE_11/)  
> I’ve no idea if it works and it certainly isn’t supported by SUSE.[/color]

The above repo is for SLES11 SP1 but they do have one for SLES11 (no SP)  
@  
[http://download.opensuse.org/repositories/home:/zhy20120210:/SLES-11-SP1-x86-64/SLE\_11/](http://download.opensuse.org/repositories/home:/zhy20120210:/SLES-11-SP1-x86-64/SLE_11/)

## HTH.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [December 9, 2013, 6:17pm UTC](https://forums.suse.com/t/i-cant-get-the-gcc-c-compiler-installed/24862/6 "2013-12-09T18:17:14Z")

</div>

Hi adzy,

[QUOTE=adzy;17912]  
Is this c++ complier not ‘open source’?

So… no registartion, no c++ for me?

Thanks![/QUOTE]

in addition to was what said here, please note that the gcc is part of the “SLE SDK” add-on product, which can be downloaded free of charge from the suse site. Please remember to add the ISO as an add-on product via YaST, as it will want to add a few repositories to receive updates (once you have registered your SLES copy for updates, that is).

Many of the development packages required to do anything useful with even Eclipse C++ are on that ISO.

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [December 9, 2013, 7:01pm UTC](https://forums.suse.com/t/i-cant-get-the-gcc-c-compiler-installed/24862/7 "2013-12-09T19:01:26Z")

</div>

On 09/12/2013 16:24, jmozdzen wrote:  
[color=blue]

> in addition to was what said here, please note that the gcc is part of  
> the “SLE SDK” add-on product, which can be downloaded free of charge  
> from the suse site. Please remember to add the ISO as an add-on product  
> via YaST, as it will want to add a few repositories to receive updates  
> (once you have registered your SLES copy for updates, that is).[/color]

To pre-empt the next question asking where to download an ISO for SUSE  
Linux Enterprise 11 SDK (since it isn’t listed on [download.novell.com](http://download.novell.com)),  
try [http://download.novell.com/Download?buildid=fQKpDcAhPVY](http://download.novell.com/Download?buildid=fQKpDcAhPVY)

## HTH.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://forums.suse.com/u/mikewillis)\
**Post date:** [December 9, 2013, 8:42pm UTC](https://forums.suse.com/t/i-cant-get-the-gcc-c-compiler-installed/24862/8 "2013-12-09T20:42:04Z")

</div>

[QUOTE=smflood;17918]On 09/12/2013 12:54, mikewillis wrote:  
[color=blue]

> I found a gcc-c++ package for SLE 11 via the ‘openSUSE Build Service’  
> ([http://software.opensuse.org/package/gcc-c++](http://software.opensuse.org/package/gcc-c++)) The relevant repo is  
> [http://download.opensuse.org/repositories/home:/zhy20120210:/SLES-11-SP1-x86-64/SLE\_11/](http://download.opensuse.org/repositories/home:/zhy20120210:/SLES-11-SP1-x86-64/SLE_11/)  
> I’ve no idea if it works and it certainly isn’t supported by SUSE.[/color]

The above repo is for SLES11 SP1 but they do have one for SLES11 (no SP)  
@  
[http://download.opensuse.org/repositories/home:/zhy20120210:/SLES-11-SP1-x86-64/SLE\_11/](http://download.opensuse.org/repositories/home:/zhy20120210:/SLES-11-SP1-x86-64/SLE_11/)  
[/QUOTE]

That’s the same url I posted… I hadn’t noticed the SP1 earlier in the URL. i just checked the Package Search again and it does come up under the heading SLE 11 rather than SLE 11 SP1, but the same url also appears under the heading SLE 11 SP1. Hmmm. I’d go with the SDK, which I should have thought of.

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [December 10, 2013, 3:22pm UTC](https://forums.suse.com/t/i-cant-get-the-gcc-c-compiler-installed/24862/9 "2013-12-10T15:22:38Z")

</div>

On 09/12/2013 18:44, mikewillis wrote:  
[color=blue]

> That’s the same url I posted… I hadn’t noticed the SP1 earlier in the  
> URL. i just checked the Package Search again and it does come up under  
> the heading SLE 11 rather than SLE 11 SP1, but the same url also appears  
> under the heading SLE 11 SP1. Hmmm. I’d go with the SDK, which I should  
> have thought of.[/color]

Oops my bad, it’s that SP1 in the subproject name which confused me!

## Sorry.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.

---

<div class="post-metadata">

**Author:** ![adzy](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@adzy](https://forums.suse.com/u/adzy)\
**Post date:** [December 13, 2013, 1:48pm UTC](https://forums.suse.com/t/i-cant-get-the-gcc-c-compiler-installed/24862/10 "2013-12-13T13:48:08Z")

</div>

Thanks so much mikewillis, smflood and jmozdzen for your posts.

I tried to find out how to get that older version replaced and keep all the application already installed, then get access to my compiler. I got stuck several times, and it all became too much of a pain (I think by now you figured out I’m not a real SUSE guru…) I’ll try to get a fresh install, and maybe I can get all my apps installed as well, latest versions!

Thanks,  
adzy

```
09-Dec-2013, 10:24
```
