LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to compile gcc when there is no c compiler installed!? So confused... (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-compile-gcc-when-there-is-no-c-compiler-installed-so-confused-769195/)

chuckycharms 11-14-2009 06:40 PM

How to compile gcc when there is no c compiler installed!? So confused...
 
Hey all!

I'm pretty fresh with linux, especially when it comes to installing stuff without rpm or yum. So i have a AstLinux distro, which is very slimmed down, on a alix3d2 board and does not come with a c complier installed. Sooo, I try to install gcc, and when running the ./configure script simply results in an error of no c compiler installed!

SO, I need some detailed help in how to get this thing installed.

This is my biggest downfall with being proficient with linux, I always seem to get stumped with installing the many pre-requisites for the one program i need. ANY help would be awesome!

Thanks,
Adam R.J.

AuroraZero 11-14-2009 06:51 PM

Quote:

Originally Posted by chuckycharms (Post 3757315)
Hey all!

I'm pretty fresh with linux, especially when it comes to installing stuff without rpm or yum. So i have a AstLinux distro, which is very slimmed down, on a alix3d2 board and does not come with a c complier installed. Sooo, I try to install gcc, and when running the ./configure script simply results in an error of no c compiler installed!

SO, I need some detailed help in how to get this thing installed.

This is my biggest downfall with being proficient with linux, I always seem to get stumped with installing the many pre-requisites for the one program i need. ANY help would be awesome!

Thanks,
Adam R.J.

I am not too familiar with this linux distro but here is my two cents. Go download yum and install it. Get the rpm and use that. That way you can use yum to install the rest of the files you need including the c compiler stuff.

fib11235 11-14-2009 06:51 PM

Install gcc using install manager and then use installed to compile new one.

chuckycharms 11-14-2009 06:54 PM

Thanks for the replies, however I can not install yum and have no package manager, I can not install yum without a c compiler already installed.

lazlow 11-14-2009 07:01 PM

You will either need to get a precompiled binary from AstLinux or compile (statically) one on another machine(that does have gcc).

You might be better off just compiling the packages that you need for the machine on the other box.

chuckycharms 11-14-2009 07:20 PM

Ok, so Astlinux does not have a binary version of gcc available that I can find. However, they do have a liveCD of astlinux available. I could use this to gain the enviroment needed to compile gcc IF gcc is already installed on this liveCD??

I am a little confused. Sorry, I dont normally need my hand held, but this time i do.

Also, I do have a debian install on a vmworkstation available also, could i cross-compile? Not sure how this works.

Thanks,
Adam

AuroraZero 11-14-2009 07:23 PM

Quote:

Originally Posted by lazlow (Post 3757328)
You will either need to get a precompiled binary from AstLinux or compile (statically) one on another machine(that does have gcc).

You might be better off just compiling the packages that you need for the machine on the other box.

That I do not think will work as AST is a custom linux distro tailored to commercial settings on rom chips. I do not think this distro will work on a regular box as they do not include enough programs to start.

You can try the command up2date it might work. I am not for sure though.

chuckycharms 11-14-2009 07:30 PM

Thanks for the reply again. No go on the up2date, this is my bin dir:

addgroup chmod echo install-shOLD mkdir pidof sh umount
adduser chown egrep ipcalc mknod ping sleep uname
ash cp false kill mktemp ping6 stat usleep
bash date fgrep ln more ps stty uuidgen
bashbug dd getopt login mount pwd su vi
busybox delgroup grep ls mt rm sync watch
cat deluser gunzip lsattr mv rmdir tar zcat
chattr df gzip lsmod netstat run-parts touch
chgrp dmesg hostname mail nice sed true

chuckycharms 11-14-2009 07:30 PM

the install-shOLD is a script i put there....

AuroraZero 11-14-2009 07:41 PM

What is in your sbin directory?

lazlow 11-14-2009 09:02 PM

IF the binary is on the LiveCD then just copy it to your system.

Wim Sturkenboom 11-14-2009 10:38 PM

I can imagine your confused. This is a chicken and egg problem. I found AstLinux Development and AstLinux Development - Getting started which is the starting point to roll your own AstLinux image that (I guess) can include gcc.

Smartpatrol 11-14-2009 11:54 PM

...

Wim Sturkenboom 11-15-2009 05:20 AM

@Smartpatrol
Did you figure out what kind of HW chuckycharms is using? And maybe AstLinux is exactly what chuckycharms needs for his purpose; so why would he bother with something else.

What I'm trying to say is:
don't judge somebodies decisions without having background info; thank you

fib11235 11-15-2009 05:43 AM

chuckycharms try mail to authors of AstLinux and ask them about gcc compiler.

Regards


All times are GMT -5. The time now is 06:33 AM.