LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-25-2006, 01:39 AM   #1
kvamsee113
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Rep: Reputation: 0
Lightbulb please help me


hi all..
i am very new to SuSE linux. I installed SuSE and windows XP.(Dual booting). i have SuSE 9.1 pro. I have some problem with running GCC. I am unable to run c/c++ programs. I want to install GCC new vesion. I dont know how to install. Please any one can help me in this regard(i.e how to install it and what are the commands to use etc). i will be very thankful for your reply..
 
Old 10-25-2006, 02:17 AM   #2
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Never start a thread with a topic "Pls help me"
Read above line again.

Be clear about your problem in the topic.

Anyways, what do you mean by unable to run?
did you try 'gcc cfile.c' ?
 
Old 10-25-2006, 02:54 AM   #3
kvamsee113
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Original Poster
Rep: Reputation: 0
how to install GCC in Suse

ok. thanks for ur sugession..
unable to run means, it is giving a message that gcc command is not found..
i m not able to find GCC rpm file in the installation CD also. so i want to download GCC from NET. In that process i downloaded GCC file (with extension tar.bz2 version 4.1.x.x.). but unable to install. i dont know the commands to install as i am very new to the Suse.
in this reagrd i request the solution..
thanks.
 
Old 10-25-2006, 03:44 AM   #4
d2490n
Member
 
Registered: Jul 2005
Location: San Diego, CA
Distribution: RHEL, Debian, Gentoo when I'm brave.
Posts: 47

Rep: Reputation: 15
can you install from source? i dont know a thing about gcc but it should be the same as installing anything else from source.
 
Old 10-25-2006, 06:21 AM   #5
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Open Suse 10.1, Ubuntu (Feisty Fawn)
Posts: 87

Rep: Reputation: 15
hi,

i am also a newbee, but hope it helps. i use opensuse 10.1.
i think there should be also yast control center also in suse 9.1. so go there, go to: software -> software management, search for gcc, check the boxes, click the button for checking the dependencies, if ok, then accept.

this is how it goes on opensuse 10.1. I think thie method is reliable for newbee like us who want to install software on our suse linux system.

regards,
 
Old 10-25-2006, 06:31 AM   #6
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
Installing is most simple with a packmanager like YasT.
Go -> start -> system -> control center (YasT) (or something similar) fill in your root password when it asks for it -> software management -> do a search for gcc in the search box, tich the ones you need.
 
Old 10-25-2006, 08:27 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
For the beginner, DEFINITELY use the package manager to install new SW---especially something so common as the compiler tools. In the package manager, look for ONE package that automatically installs everything you need. These go by differnet names, so you may have to poke around a bit.
 
Old 10-25-2006, 08:41 AM   #8
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
Quote:
Originally Posted by d2490n
can you install from source? i dont know a thing about gcc but it should be the same as installing anything else from source.
I don't think he can. You need a compiler to install from source and I don't think he has any.

Since you don't have any compiler you need to install the binaries of gcc. It must be on the SuSE 9.1 pro CD's that you've got. You've got two options :

1) Either install the Gcc package from the installation CD's (recommended) or,
2) Download Gcc binaries for your distro (i.e. SuSE 9.1 pro) and install them.

I searched on some of the forums and it seems that SuSE 9.1 Personal didn't come with a compiler but 9.1 Pro has one.
Here, this link might be useful for you.

Hope this helps.

Regards,
Shishir.

Last edited by koodoo; 10-25-2006 at 08:44 AM.
 
Old 10-25-2006, 03:04 PM   #9
kvamsee113
LQ Newbie
 
Registered: Oct 2006
Posts: 3

Original Poster
Rep: Reputation: 0
thank you for your reply koodo(shishir)

hi thanks for your reply. u r right installation CD is not having any GCC rpm. i have downloaded the gcc what u have suggested..
thank you for your reply.
(i dont got the thanks button here. so i m expressing thanks like this)
 
Old 10-25-2006, 04:33 PM   #10
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
Thumbs up

My pleasure
Your most welcome mate...
 
Old 10-25-2006, 04:34 PM   #11
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
How can anyone install Linux and not have GCC? I mean isn't it necessary?
 
Old 10-25-2006, 04:41 PM   #12
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
Quote:
Originally Posted by duryodhan
How can anyone install Linux and not have GCC? I mean isn't it necessary?
It is "highly recommended" but it ain't "necessary". GCC is a compiler suite which you need if you wish to compile programs from source on your system. However, if you are content with using precompiled binaries (that our compiled for your arch./distro) you can very well do without a compiler.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off




All times are GMT -5. The time now is 03:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration