LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 03-02-2012, 03:36 PM   #1
AllenKll
LQ Newbie
 
Registered: Mar 2012
Posts: 21

Rep: Reputation: Disabled
How do I install a compiler?


Hello,
I am using a stripped down version of Linux on a x86 machine. I have no compiler. Where can I get a binary compiler?

This seems like a basic thing, but I can find only find one answer to the question. And that involves building gcc on windows using a cross compiler, but again I am stuck as the "cygwin-gcc-linux.tar.bz2" file that everyone points to on the web is gone.

One would think that finding a simple binary x86 c compiler would be easy... alas I am stumped.

I do have rpm on the system, but no access to the internet from the linux box.

Any ideas, or weblinks to a precompiled x86 version of gcc? or even cc?

thanks,
-Allen

Last edited by AllenKll; 03-02-2012 at 03:39 PM.
 
Old 03-02-2012, 04:45 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by AllenKll View Post
Hello,
I am using a stripped down version of Linux on a x86 machine.
Specifically, what version of GNU/Linux are you using, and in what way is it "stripped down?"
Quote:
I have no compiler. Where can I get a binary compiler?
That depends on you answer to the prior question.
Quote:
This seems like a basic thing, but I can find only find one answer to the question. And that involves building gcc on windows using a cross compiler, but again I am stuck as the "cygwin-gcc-linux.tar.bz2" file that everyone points to on the web is gone.

One would think that finding a simple binary x86 c compiler would be easy... alas I am stumped.

I do have rpm on the system, but no access to the internet from the linux box.
Does your box have and external input devices? (CD, DVD, USB, . . .) If so, use another system to create the appropriate media containing the RPM and install from it.
Quote:
Any ideas, or weblinks to a precompiled x86 version of gcc? or even cc?

thanks,
-Allen
 
Old 03-02-2012, 04:56 PM   #3
AllenKll
LQ Newbie
 
Registered: Mar 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Thanks for the reply!

uname -r indicates version 2.6.29.6 kernel.

It is XLinux. It came from here: http://www.dmp.com.tw/tech/os-xlinux/
I believe it to be stripped down in the fact that it has no modules and boots in less than 10 seconds.

I do have access to a usb drive, and have been successful in getting files onto the box that way.
I would love to use another system to create the appropriate media containing the RPM, the problem
is that i do not have an RPM to transfer. That's what I'm looking for.

-Allen
 
Old 03-03-2012, 07:33 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
GCC has no dependencies except libc.so.6 ( Usually.)
So you can use any gcc / gcc-c++ rpm package which doesn't
depend on a later libc.so.6 than the installed one.

Please show the output from the command : ls /lib/libdl*

Then we can suggest packages that will fit your OS.

.

Last edited by knudfl; 03-03-2012 at 07:34 PM.
 
Old 03-04-2012, 07:06 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
I just looked at the Web site you mentioned in post #3, above, and it's clear from that site that the XLinux distribution is primarily intended for installation on Vortex embedded processors, and that it uses Busybox as its shell. Almost all the documentation on the site assumes that you will compile your code on some other system an import the resulting binary to the Vortex-based device. (And they do provide fairly clear instruction of how to write such code.)

They suggest, but don't recommend, that, if you want to work exclusively on a Vortex based system, that you install a Puppy Linux version, in install the necessary tool-chain under that.They do provide source code for drivers you might need to get Puppy to wag its tail for you.

They do explicitly state that they do not provide a tool chain for XLinux.

Oh, Puppy can be installed on a USB drive, so maybe you could do that, and see if you could boot your system from the USB port.
 
Old 03-05-2012, 02:55 PM   #6
AllenKll
LQ Newbie
 
Registered: Mar 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
All

Thank you for your help. I've decided to drop XLinux and go with TinyCore. It has the capability to install a compiler.

I thank you for your time and effort.

It does seem odd though that something as simple as a getting an x86 C compiler on a random piece of hardware could be so difficult. I have more respect now for the bare metal warriors out there.

thanks again,
-Allen
 
  


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
Uncertain how to configure/install packages & compiler before install VMware on FC8. Azazwa Linux - Newbie 1 03-28-2009 08:27 PM
So I need a C compiler to install a c compiler. Makes sense. vic305 Linux - Software 8 12-17-2008 11:30 PM
Install C compiler rollinpark Linux - Software 6 01-26-2005 03:03 AM
how to install c compiler albanas Linux - Newbie 5 12-25-2004 02:31 AM
Trying to install a c compiler Sabastian Linux - Software 4 06-25-2003 12:14 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration