LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GCC Compiler Install (https://www.linuxquestions.org/questions/linux-newbie-8/gcc-compiler-install-237793/)

Alpha-01 10-02-2004 02:36 AM

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

prak_asam 10-02-2004 02:47 AM

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.

Alpha-01 10-02-2004 03:01 AM

rpms?
 
rpms? Aren't they for Redhat, mandrake and so forth? And where would I get the gcc-lib?

prak_asam 10-02-2004 03:12 AM

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

Alpha-01 10-02-2004 03:21 AM

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?

prak_asam 10-03-2004 04:53 AM

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

{O_o} 10-03-2004 09:48 AM

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


All times are GMT -5. The time now is 07:11 PM.