Jump to content
Sign in to follow this  
chuckycharms

How to compile gcc without a compiler installed?!?!

Recommended Posts

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, 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.

Share this post


Link to post
Share on other sites

from a quick look on astlinux.org i can see very little documentation to explain how to do what you want to do,

 

have you tried to email/contact Kristian ?

 

perhaps you could compile a package into the distro by doing as they advise here

 

http://www.astlinux.org/node/24

Share this post


Link to post
Share on other sites

This is like the chicken and the egg. Without a compiler you cannot compile a compiler. If the distribution does not provide a package for installation then the only other solution is to make a package yourself.

 

Obviously this requires another distribution, which in itself can be a problem. One solution might be to use an RPM from another distribution and hope that the dependencies it requires are available. However in the case of AstLinux, I think you will find yourself installing loads of other tools in preparation for GCC. This is because AstLinux is a super-cut-down distribution intended for a single purpose.

 

Maybe a solution would be to do the following, get a LiveCD distribution that has GCC and the other development tools present (Knoppix for instance). Mount your existing distribution on the LiveCD. That way you can compile a static version of GCC on Knoppix then pack/copy it onto your existing distribution. Certainly not ideal but I believe it would work.

 

Ultimately the best solution would be for you to select a distribution that is more suited to your purpose.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...