On a Fresh OS Install, gcc Cannot Be Added

I’m new to SLES and have a fresh VM created in SuSE Studio. I’ve added the Tumbleweed oss and non-oss repositories in zypper, as well as the same for my 13.1 distribution. These are the only changes I’ve made to the new VM.

When I do zypper in gcc I get the following error:

# zypper in gcc
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: solvable libtsan0-5.1.1+r225724-1.2.x86_64 conflicts with libtsan0 provided by itself
  Solution 1: do not install gcc-5-1.24.x86_64
  Solution 2: do not install gcc-5-1.24.x86_64
...

Choosing either of the solutions results in gcc not being installed.

Any ideas?

Thanks very much.

On 10/14/2015 12:34 PM, mattcarp wrote:[color=blue]

I’m new to SLES and have a fresh VM created in SuSE Studio. I’ve added[/color]

Which version of SLES are you using in this case?
[color=blue]

the Tumbleweed oss and non-oss repositories in zypper, as well as the[/color]

Tumbleweed repositories are for openSUSE only, not for SUSE Linux
Enterprise Server (SLES). Take those out and install the gcc options
available from the SLES media and you will probably have better luck.
Also, I’d recommend against mixing/matching SLES/openSUSE stuff unless you
are really sure things will work.
[color=blue]

same for my 13.1 distribution. These are the only changes I’ve made to
the new VM.[/color]

13.1 implies openSUSE, so the rules are pretty different because of the
versions of software included in openSUSE vs. SLES.
[color=blue]

Code:

zypper in gcc

Loading repository data…
Reading installed packages…
Resolving package dependencies…

Problem: solvable libtsan0-5.1.1+r225724-1.2.x86_64 conflicts with libtsan0 provided by itself
Solution 1: do not install gcc-5-1.24.x86_64
Solution 2: do not install gcc-5-1.24.x86_64

--------------------[/color]

SLES 11 does not have gcc up to version 5 yet, but perhaps SLES 12 does
(cannot tell right now, and I’m not sure what you are using). If this is
a package pulled from openSUSE, that may explain the problem so see
solution above.


Good luck.

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

On 14/10/2015 20:31, ab wrote:
[color=blue]

SLES 11 does not have gcc up to version 5 yet, but perhaps SLES 12 does
(cannot tell right now, and I’m not sure what you are using). If this is
a package pulled from openSUSE, that may explain the problem so see
solution above.[/color]

SLES12 originally included GCC 4.8 but the recent Toolchain Module for
SLES12 provides GCC 5.2 - see
https://www.suse.com/communities/conversations/suse-linux-enterprise-server-12-toolchain-module-released/

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.

My apologies - I mistyped the version number. I’m using SLES 11 SP 3.

# cat /etc/SuSE/-release
SuSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 3

I’ve removed the Tumbleweed and OpenSuSE repositories from zypper. As I’ve downloaded the VM for this distribution from SuSE Studio, I don’t have the physical install media, from which I assume I could install gcc (is that correct?).

When I do zypper in gcc I get:

Warning: no repositories defined. Operating only with the installed resolvables. Nothing can be installed.

Sorry to ask such a basic question; google has been of little help on this ;-).

On 15/10/2015 15:44, mattcarp wrote:
[color=blue]

My apologies - I mistyped the version number. I’m using SLES 11 SP 3.

Code:

cat /etc/SuSE/-release

SuSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 3

--------------------[/color]

Okay SLES11 SP3 offers GCC 3.3 and 4.3.
[color=blue]

I’ve removed the Tumbleweed and OpenSuSE repositories from zypper. As
I’ve downloaded the VM for this distribution from SuSE Studio, I don’t
have the physical install media, from which I assume I could install gcc
(is that correct?).

When I do zypper in gcc I get:

Code:

Warning: no repositories defined. Operating only with the installed resolvables. Nothing can be installed.


Sorry to ask such a basic question; google has been of little help on
this ;-).[/color]

My guess is because you downloaded an appliance for licensing reasons
they couldn’t register the system with the Novell/SUSE Customer Center
so it doesn’t have access to any repositories.

If you don’t have a license for SLES11 you can register for a 60-day
free trial @ https://www.suse.com/products/server/download/ which whilst
aimed at you downloading the media and installing your server should
also allow you to register the SUSE Studio appliance.

This however will still only give you access to GCC 3.3 and 4.3 as
offered by SUSE for SLES11 SP3. If you particularly want GCC 5.2 you’ll
either need to compile from source or use a compiled version from the
OpenSUSE Build Service specifically built for SLE11 SP3 (or at least SLE11).

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.