LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 11-14-2009, 06:40 PM   #1
chuckycharms
LQ Newbie
 
Registered: Nov 2009
Posts: 11

Rep: Reputation: 0
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.
 
Old 11-14-2009, 06:51 PM   #2
AuroraZero
Member
 
Registered: Oct 2009
Location: Michigan
Distribution: SlackWare 13.37, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 187

Rep: Reputation: 31
Quote:
Originally Posted by chuckycharms View Post
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.
 
Old 11-14-2009, 06:51 PM   #3
fib11235
LQ Newbie
 
Registered: Sep 2009
Distribution: Gentoo, openSUSE
Posts: 20

Rep: Reputation: 0
Install gcc using install manager and then use installed to compile new one.
 
Old 11-14-2009, 06:54 PM   #4
chuckycharms
LQ Newbie
 
Registered: Nov 2009
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 11-14-2009, 07:01 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
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.

Last edited by lazlow; 11-14-2009 at 07:02 PM.
 
Old 11-14-2009, 07:20 PM   #6
chuckycharms
LQ Newbie
 
Registered: Nov 2009
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
Old 11-14-2009, 07:23 PM   #7
AuroraZero
Member
 
Registered: Oct 2009
Location: Michigan
Distribution: SlackWare 13.37, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 187

Rep: Reputation: 31
Quote:
Originally Posted by lazlow View Post
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.
 
Old 11-14-2009, 07:30 PM   #8
chuckycharms
LQ Newbie
 
Registered: Nov 2009
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
Old 11-14-2009, 07:30 PM   #9
chuckycharms
LQ Newbie
 
Registered: Nov 2009
Posts: 11

Original Poster
Rep: Reputation: 0
the install-shOLD is a script i put there....
 
Old 11-14-2009, 07:41 PM   #10
AuroraZero
Member
 
Registered: Oct 2009
Location: Michigan
Distribution: SlackWare 13.37, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 187

Rep: Reputation: 31
What is in your sbin directory?
 
Old 11-14-2009, 09:02 PM   #11
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
IF the binary is on the LiveCD then just copy it to your system.
 
Old 11-14-2009, 10:38 PM   #12
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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.
 
Old 11-14-2009, 11:54 PM   #13
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 09:47 PM.
 
Old 11-15-2009, 05:20 AM   #14
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
@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
 
Old 11-15-2009, 05:43 AM   #15
fib11235
LQ Newbie
 
Registered: Sep 2009
Distribution: Gentoo, openSUSE
Posts: 20

Rep: Reputation: 0
chuckycharms try mail to authors of AstLinux and ask them about gcc compiler.

Regards
 
  


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
configure not finding ansi c compiler even though I have gcc installed lilmike Linux - Newbie 5 11-02-2009 06:18 PM
how do i install gcc from a tar.bz2 file when i have no C/C++ compiler installed sagitalk Linux - Newbie 52 08-04-2008 03:31 PM
??? Make sure the C compiler gcc -O is properly installed pascalover Linux - Newbie 1 08-03-2008 04:39 PM
how do find out whether i have gcc compiler installed? ashlesha Linux - Newbie 3 06-27-2006 03:42 PM
SuSE Linux 9.1, YaST says GCC installed, but Installers Say No Compiler Available Desert Linux - Software 1 07-24-2004 10:54 AM


All times are GMT -5. The time now is 05:56 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