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

(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

Can you post the output of

$ cat /etc/*release*

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

$ 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=mikewillis;17910]Can you post the output of

$ cat /etc/*release*

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

$ 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!

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

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.

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 The relevant repo is
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.

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++) The relevant repo is
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/

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.

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

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),
try 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.

[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++) The relevant repo is
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/
[/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.

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.

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