LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-04-2005, 04:27 AM   #1
enigmatic
LQ Newbie
 
Registered: Sep 2005
Location: Tamil Nadu,India
Distribution: SuSe 9.1
Posts: 5

Rep: Reputation: 0
Installing gcc and g++ on suse 9.1


Hey i am new to suse and need a little help installing gcc and g++ ( c and cpp compiler)

I downloaded gcc-4.0.1.tar.bz2

now some1 can please guide me thru the process

i found the gcc.gnu.org to confusing ..
1. Prerequisites
2. Downloading the source
3. Configuration
4. Building
5. Testing (optional)
6. Final install
 
Old 09-04-2005, 05:02 AM   #2
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
Re: Installing gcc and g++ on suse 9.1

Quote:
Originally posted by enigmatic
Hey i am new to suse and need a little help installing gcc and g++ ( c and cpp compiler)

I downloaded gcc-4.0.1.tar.bz2

now some1 can please guide me thru the process

Final install
Hey ! are you trying to upgrade or do a fresh install ? Check if you have gcc already present. Open up a terminal and type :
Code:
koodoo@knapsacker:~$ gcc --version
The file gcc-4.0.1.tar.bz2 is a source file, inorder to install from it you need to build it and for that you need to have a compiler already installed. If you do not have it already installed you would have to find binaries of the particular package (for your distro)

In general for installing any source package follow this :

1) Extract the package a) Using gui or,
b) tar -xzvf <package_name.tar.gz>
c) tar -xjvf <package name.tar.bz2>

2) cd into the newly extracted directory.
3) type ./configure (press enter here)
4) type make (press enter)
5) as root type make install (press enter)

You could aslo type ./configure --help to see all the configure options you have.

Hope this helps.
 
Old 09-04-2005, 08:11 AM   #3
enigmatic
LQ Newbie
 
Registered: Sep 2005
Location: Tamil Nadu,India
Distribution: SuSe 9.1
Posts: 5

Original Poster
Rep: Reputation: 0
I am doing a fresh install not a upgrade


koodoo@knapsacker:~$ gcc --version
when i give this it give "bash command gcc not found"



3) type ./configure
It says building in source directory is not supported in this release


i didnt get the part about finding the binaries....i am using suse 9.1 ..please provide me links
 
Old 09-04-2005, 11:08 AM   #4
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
hi there,
once you downloaded the tar file, you have to untar and unzip it using the command "tar -zxvf package name".after that cd into the new directory and read the INSTALL files. options may change,, thats y......
 
Old 09-04-2005, 02:05 PM   #5
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
Hey Enigmatic, you need to install rpm packages of gcc for SUSE 9.1

Here take a look at the following two threads, they deal with the exact problem you are facing :

HowTo: Install a C compiler and make, for SuSE 9.1 Personal

and

http://www.linuxquestions.org/questi...5&pagenumber=2

I think these would be enough to solve your problem.

Here are some places from where you can download gcc rpm's for SUSE 9.1

Package List "gcc-c++" (94 rpms)

ftp://mirror.mcs.anl.gov/pub/suse/i386/9.1/suse/i586/

While installing these rpm's you might have some dependency problems, for which you would have to download and install the required packages also. You could also use tools like yum which do this automatically for you.

You may also like to google this : download gcc rpm for SUSE 9.1
( Actually use http://www.google.com/linux )

Try this out and tell us what happened.

Hope this helps

Last edited by koodoo; 09-04-2005 at 02:10 PM.
 
Old 09-04-2005, 02:18 PM   #6
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 vimal
hi there,
once you downloaded the tar file, you have to untar and unzip it using the command "tar -zxvf package name".after that cd into the new directory and read the INSTALL files. options may change,, thats y......
BTW he doesn't have gcc installed, so I do not think source files would be any good to him.
 
Old 09-05-2005, 04:16 AM   #7
enigmatic
LQ Newbie
 
Registered: Sep 2005
Location: Tamil Nadu,India
Distribution: SuSe 9.1
Posts: 5

Original Poster
Rep: Reputation: 0
thanks koodoo....i really appreciate it man!
 
Old 09-05-2005, 08:05 PM   #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
My Pleasure
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help installing GCC on SuSE 9.1 MisterESauce Suse/Novell 9 11-19-2004 03:02 PM
Installing GCC SUSE 9.1 jonwatson Suse/Novell 13 11-01-2004 05:38 PM
Installing GCC 3.4.2 w/ SUSE 9.1 personal justin0820 Linux - Newbie 1 10-05-2004 04:33 PM
Installing GCC and glibc on Suse 9.1 Personal Edition rocketdude Linux - Software 5 07-17-2004 07:47 AM
Installing GCC on SuSE 9.1 Kiajin Linux - Newbie 4 07-13-2004 11:23 PM


All times are GMT -5. The time now is 09:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration