On Tue, 26 Aug 2008, Fred wrote:
> --- In "yupingdong" <> wrote:
>> I am using TS-7250, and booted to the Debian OS
>> which is pre-installed in the USB flash drive.
>> I want to compile and run my C codes in the Debian
>> system, but I didn't find the gcc compiler which
>> was said to be included in the Debian OS. Anyone
>> can tell me how to use the gcc and g++ compiler?
You use it the same way you use it on any other linux system.
It sounds like you need some tutorial type stuff on compiling with GCC.
Gogole is your friend. I typed in - linux compiling with gcc tutorial -
into google and came up with lots of articles, e.g.
http://pages.cs.wisc.edu/~beechung/ref/gcc-intro.html
As to why you couldn't find the compiler, it has to be in a directory that
is in your PATH environment variable. You say you "boot"ed to the debian
OS, does that mean that the USB disk is the root partition? If so then I'm
surprized you didn't find it. If you just booted the BSC and cd'ed into the
USB flash disk, then I'm not surprized. You may want to try "chroot"ing
into the drive, or similar.
Explain you setup more clearly and people maybe able to help further.
> The TS-7300 can be acquired completely installed with Debian and gcc
> however the TS-7250 did not come with gcc installed -- at least none
> of the many units that I purchased did.
On the TS7200, technologics provide a debian based image that can be run
native. It's on the CD they provided and on their website for download -
you can even pay them to provide it preinstalled on CFDisk for the TS7200.
As the TS7250 is very very similar, I'd be surprized if the same Debian
image doesn't work there, on SD flash of course, or maybe on USB flash.
I did a couple of test compiles of small programs and got native compiles.
The big problem is not having swap space - swapping to flash memory is a
really bad idea. I did think about arranging swapping over nfs, but it
never got beyond a thought experiment. Gcc can be a memory hog.
So I agree that the best way is to setup a cross compile environment, but
I'd very strongly recommend you run your cross-compile environment on a
desktop linux box. The quicker you acclimatise to doing things the *nix
way, the quicker you get to grips with the linux environment on your SBC.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|