How do I acquire the gcc compiler?

How does one get the ‘gcc compiler’ installed? I am trying to use a demo of PureBASIC and it requires the ‘gcc compiler’;

I searched the repositories in YaST for ‘gcc’, but so many listings came up, thus, I do not which one(s) to download, or even if what I need is even in my subscribed repositories.

It appears that PureBASIC is looking for an executable with the filename of ‘gcc’.

Regards,
Clifton

Hi
Select in YaST software management gcc it will pull in the correct
version for your system, or run;


sudo zypper in gcc


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 21 days 7:49, 4 users, load average: 1.37, 1.14, 0.72
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Hi,

The problem concerning the YaST software management is that there are too many titles of gcc listed there, and I don’t know which one(s) to select :frowning:

I tried “sudo zypper in gcc” and got the following output:

~ $ sudo zypper in gcc
Retrieving repository 'openSUSE BuildService - KDE:KDE4:Community' metadata [done]
Building repository 'openSUSE BuildService - KDE:KDE4:Community' cache [done]
Loading repository data...
Reading installed packages...
'gcc' not found.
Resolving package dependencies...

Nothing to do.

Maybe I need to add some other repository? :\

Thanks,
Clifton

Or maybe remove some repos.

Post the output of

zypper lr -d

Hi,

I have suspected that in the past - I thought some repositories might even be reduntant.

Post the output of

zypper lr -d

Here’s the output:

~ $ zypper lr -d
#  | Alias                           | Name                                       | Enabled | Refresh | Priority | Type   | URI                                                                                    | Service
---+---------------------------------+--------------------------------------------+---------+---------+----------+--------+----------------------------------------------------------------------------------------+--------
1  | Google_Linux                    | Google Linux                               | Yes     | Yes     |  101     | rpm-md | http://dl.google.com/linux/rpm/stable/i386                                             |        
2  | KDE:KDE4:Factory:Desktop        | KDE:KDE4:Factory:Desktop                   | Yes     | Yes     |   10     | rpm-md | http://download.opensuse.org/repositories/KDE:/KDE4:/Factory:/Desktop/openSUSE_11.2/   |        
3  | download.opensuse.org-Community | openSUSE BuildService - KDE:KDE4:Community | Yes     | Yes     |   10     | rpm-md | http://download.opensuse.org/repositories/KDE:/KDE4:/Community/openSUSE_11.2/          |        
4  | download.opensuse.org-STABLE    | openSUSE BuildService - OpenOffice.org     | Yes     | Yes     |   20     | rpm-md | http://download.opensuse.org/repositories/OpenOffice.org:/STABLE/openSUSE_11.2/        |        
5  | download.opensuse.org-mozilla   | openSUSE BuildService - Mozilla            | Yes     | Yes     |   30     | rpm-md | http://download.opensuse.org/repositories/mozilla/openSUSE_11.2/                       |        
6  | download.opensuse.org-standard  | Main Repository (Contrib)                  | Yes     | Yes     |    4     | rpm-md | http://download.opensuse.org/repositories/openSUSE:/11.2:/Contrib/standard/            |        
7  | ftp.skynet.be-suse              | Packman Repository                         | Yes     | Yes     |    9     | rpm-md | http://ftp.skynet.be/pub/packman/suse/11.2/                                            |        
8  | google-chrome                   | google-chrome                              | Yes     | Yes     |  100     | rpm-md | http://dl.google.com/linux/rpm/stable/i386                                             |        
9  | home:lrupp                      | home:lrupp                                 | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/lrupp/openSUSE_11.2/                   |        
10 | home:poletti_marco:KDE          | home:poletti_marco:KDE                     | Yes     | Yes     |  107     | rpm-md | http://download.opensuse.org/repositories/home:/poletti_marco:/KDE/KDE_Factory_11.2/   |        
11 | openSUSE:11.2:Update            | openSUSE:11.2:Update                       | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/11.2/                                              |        
12 | openSUSE_11.2:Contrib           | openSUSE_11.2:Contrib                      | Yes     | Yes     |    1     | rpm-md | http://download.opensuse.org/repositories/openSUSE%3a/Factory%3a/Contrib/openSUSE_11.2 |        
13 | repo-debug                      | openSUSE-11.2-Debug                        | Yes     | Yes     |    5     | yast2  | http://download.opensuse.org/debug/distribution/11.2/repo/oss/                         |        
14 | repo-non-oss                    | openSUSE-11.2-Non-Oss                      | No      | No      |  200     | yast2  | http://download.opensuse.org/distribution/11.2/repo/non-oss/                           |        
15 | repo-oss                        | openSUSE-11.2-Oss                          | No      | No      |  200     | yast2  | http://download.opensuse.org/distribution/11.2/repo/oss/                               |        
16 | repo-source                     | openSUSE-11.2-Source                       | Yes     | Yes     |    2     | yast2  | http://download.opensuse.org/source/distribution/11.2/repo/oss/                        |        
17 | repo-update                     | openSUSE-11.2-Update                       | No      | No      |  199     | rpm-md | http://download.opensuse.org/update/11.2/                                              |        

Thanks,
Clifton

Hi
Can you post the output from;


zypper lr -d

Looks like you may have disabled the install source, oss and non-oss
repositories.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 21 days 8:27, 4 users, load average: 0.21, 0.29, 0.42
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Hi
You need to enable 14 and 15. I can’t comment further on your
repository selection and to what other issues may occur as a result of
enabling them to get gcc installed… Suggest you backup your data
just in case!


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 21 days 8:39, 4 users, load average: 1.32, 1.01, 0.60
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Got it folks … a many thanks to you all for helping me get this issue resolved.

gcc now installed. :good:

Best Regards,
Clifton

I hope you realy “got it”. When you are not even aware of the fact that you disable the main repos, how do you think to manage all that other stuff. The fact that you could install gcc now is a (very) short term joy, but long term messes are almost for sure.

/usr/bin/gcc

I really got it - however, pureBASIC is belly aching about some other issues now, and freezes up at on least one of its examples. I may just ‘give up the ghost’ on pureBASIC.

When you are not even aware of the fact that you disable the main repos, how do you think to manage all that other stuff. The fact that you could install gcc now is a (very) short term joy, but long term messes are almost for sure.

What are the ‘main repos’? I thought I had disabled ones that were basically ones that where duplicates of another… I enabled #14 and #15 as you suggested. Any other suggestions to the zypper lr -d output in my previous post?

Thanks,
Clifton

Sorry, but you completely misunderstood my post. My fault :shame: .

I ment if you got the message of the underlying mess of your repos? And I suppose you made the mess (when you did not reveal the root password to other people).

This is a quote from our documentation for new users:

IMPORTANT: Note repositories are in essence file servers on the internet containing applications, drivers, codecs, … etc … in this case, for openSUSE. and as a new user, when setting up your repositories by following the guidance in that page, initially set up only 4 repositories (repos). Just 4. No others. None! Those 4 are OSS, Non-OSS, Update, and Packman. Likely the 1st three (OSS,Non-OSS, and Update) are already in place and you only need to add Packman. Please note that adding other repositories can cause compatibility problems. You may add others when the time comes when you learn how to solve problems that may arise from having others. Until then, stick to only the 4 repositories. One may also have to briefly add other repos, install an app, and then remove the repos (for example for installing a graphic driver, or installing an updated alsa sound driver). Once those 4 repos are setup, one can go to YaST > Software > Software Management and change the “filter” to “search” and do searches for specific applications for installation.

Now when this tries to tell you not to use more then the 4 standard repos, you are not only ingnoring that by having a lot more, but even by switching off some of the standard ones. This is a new attitude to me. And I hoped that you at least would contemplate on why you could not install gcc and not just be satisfied because it is there now…

In System Administration his is know as: “the incident is solved, but is the underlying problem?”

Well, of course I was not gonna to reveal the root password. :wink:

This is a quote from our documentation for new users:

I read that after the fact, unfortunately, when trying to remedy the issue, there turned out to be more than one OSS and Non-OSS.

The Linux Distro I used to use before converting to openSUSE only needed one repository configured, though at times it was necessary to temporarily add one (say, for OpenOffice).

pureBasic has a checkinstall.sh script, and it expressed the only thing lacking was the gcc compiler. It’s current ‘belly-aching’ as I called it was suggestions concerning issues after I had to terminate (“kill”) one of it’s windows (via Alt-Ctrl-Esc):


tk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
Package gthread-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gthread-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gthread-2.0' found
Terminated

In time I will due with that if I continue to try pureBASIC.

Now when this tries to tell you not to use more then the 4 standard repos, you are not only ingnoring that by having a lot more, but even by switching off some of the standard ones.

Yea - I just did not know I had the standard ones disabled - I assumed (evidently incorrectly) that they were just repos that had the same files as some other ones.

This is a new attitude to me. And I hoped that you at least would contemplate on why you could not install gcc and not just be satisfied because it is there now…

Given the fact that there is a checkbox for “enabled” for each repository, I don’t see how it could be a new attitude - it is there, and nothing to indicate it is there to be pretty or whatever - IOW, if I want to disable google, I should be able to uncheck the ‘enabled’ so the URL can stay there so I don’t need to find out where the repo is located at (just a matter of convience - nuthin’ that would shut my life down :slight_smile: ).

In System Administration his is know as: “the incident is solved, but is the underlying problem?”

Well, I believe the underlying problem got fixed when you folks pointed out that Repos #14 and #15 need to be enabled.

If you have suggestions as to which in the list of repositories I should be subscribed to, I heartily welcome those - I thought that repos #2,3,4 & 6 were the defaults that were installed, but I just don’t remember.

Thanks,
Clifton

Hi
gtk±2.0.pc means you need the gtk2-devel package installed and
gthread-2.0.pc means you need the glib-devel package installed.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 22 days 3:52, 4 users, load average: 4.22, 2.10, 1.04
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

Thank you for the info - I’ll deal with that now.

Regards,
Clifton

What is now 13 - 17 are those originly left there by the install. source and debug switched off completely by default. You disabled Update and later added a new Update with the same URL. Remove one of them. You added Packman (as recommended).

All others are added because you did not want to stick to the standerd 11.2 software, but wanted to experiment with newer and newest versions, or with software that is not in the standard repo.

You have read that it is advised to use them for those packages you think you need and then disable them.

That is all.

The underlying problem is not the messed up repos. It is only a symptom.

Thanks for the input - I believe I got it cleaned up now - I noticed I also duplicated the google repository as well.

Regards,
Clifton