LinuxQuestions.org
Register a domain and help support LQ
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-02-2004, 02:36 AM   #1
Alpha-01
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
Question GCC Compiler Install


Heylo everybody

First up, I'm new to linux, been using it for four days or so.
I'm running Slackware which I installed from the LiveCD based SLAX using the "slax-install" command.

I'm trying to install the GCC Compiler, version 3.3.4, its in binary form, ".tgz" and the command I ran to install it was

"installpkg gcc-3.3.4_20040411.tgz"

It seems to install fine, no error messages or anything, but when I try to compile a program (Wesnoth-0.8) it comes up with this:

checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ compilercannot create executables

I've looked around and found applications named g++33, gcc33 etc in my "/bin" folder. So I created links to these files ("c++" linked to "g++33") to see what would happen when I ran "./configure" again:

checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking for g++... no
checking for c++... c++
checking for C++ compiler default output file name... configure: error: C++ compilercannot create executables

So I looked around some more, and found a folder "/bin/GCC/" theres some more folders inside of that one, but they're empty (at least the ones which I looked in are).

when I run the "gcc" command from the terminal it says:
-bash: gcc: command not found

I'm guessing I installed it incorrectly?
I don't know what I'm doing wrong, any help is appreciated
 
Old 10-02-2004, 02:47 AM   #2
prak_asam
LQ Newbie
 
Registered: Aug 2004
Location: india
Posts: 7

Rep: Reputation: 0
Unhappy install gcc libs

I hope you did not install the gcc-**-lib***.*** rpm if you have done so please read the man pages that come along with it for compiling or installation.

i think that the lib extensions for the c compiler especially gcc are stored in the gcc lib rpm please try to find the rpm and instal it

hpoe you find a solution to it.
 
Old 10-02-2004, 03:01 AM   #3
Alpha-01
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Original Poster
Rep: Reputation: 0
rpms?

rpms? Aren't they for Redhat, mandrake and so forth? And where would I get the gcc-lib?
 
Old 10-02-2004, 03:12 AM   #4
prak_asam
LQ Newbie
 
Registered: Aug 2004
Location: india
Posts: 7

Rep: Reputation: 0
Unhappy you can get it in any of the rh dist

you need to install the glibc** and the glib** including the devel support rpms

you can get it in the rh8 or 9 dist cds
 
Old 10-02-2004, 03:21 AM   #5
Alpha-01
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Unhappy Slackware based

I don't have any Redhat Dist CDs, or any Dist CDs for that matter. I installed linux via the Slackware based SLAX LiveCD using the "slax-install" command. Are there any sites where I can download what I need in Slackware ".tgz" format?
 
Old 10-03-2004, 04:53 AM   #6
prak_asam
LQ Newbie
 
Registered: Aug 2004
Location: india
Posts: 7

Rep: Reputation: 0
Thumbs down i hope there are

please search for them on the net. i hope there are some versions, but iam not sure of it please excuse me in this regard.

also check that wether rh series(stuff) are compatible and installable on your system.

you can find the rh stuff in www.redhat.com also you can download the primitive c compilers from them.

hope you can find the stuff from there and also try to tincure about with the package you got by reading the manual(provided you know what you do).

bye
 
Old 10-03-2004, 09:48 AM   #7
{O_o}
Member
 
Registered: Mar 2004
Distribution: Slackware 10.0 (mulinux)
Posts: 66

Rep: Reputation: 15
try here

ftp://ftp.planetmirror.com/pub/slack...0/slackware/d/

if its not slackware 10.0 you have installed then goto

ftp://ftp.planetmirror.com/pub/slackware/

and find the appropriate slack version and look in directory d. You will probably need some of the other things there depending on what you want to compile

If you can you should probably take everything

Last edited by {O_o}; 10-03-2004 at 09:50 AM.
 
  


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
no gcc in suse 9.1...how do i install a compiler? set235 Linux - Newbie 2 07-28-2005 11:34 PM
Can't install GCC compiler!??!?! MickBurke Linux - Newbie 3 03-07-2005 02:53 PM
why i can't install gcc or any other C compiler? HoreC Debian 3 11-21-2004 11:51 AM
Install GCC compiler on Mandrake 9.2 p4priya Linux - Software 1 02-19-2004 01:34 AM
gcc compiler install problem mla Linux - Software 4 10-11-2003 07:03 AM


All times are GMT -5. The time now is 04:46 AM.

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