ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: How to compile C codes in Debian OS?

To:
Subject: Re: [ts-7000] Re: How to compile C codes in Debian OS?
From: "Yuping Dong" <>
Date: Wed, 27 Aug 2008 15:54:33 -0400
I think there may not be gcc in the system...
I tried "which gcc", nothing happened, "gcc -v" responded with "-sh: gcc: not found"...

Anyway, thanks a lot! And sorry for bothering you so much...

Yuping

On Wed, Aug 27, 2008 at 11:31 AM, Jim Jackson <> wrote:



On Tue, 26 Aug 2008, Yuping Dong wrote:

> Thanks for your help, Jim!
> I tried list all directories under / , and I cd to "lib" "mnt" and "dev".
> There are libgcc_s.so and libgcc_s.so.1 in "lib".
> In "mnt", there is only "cf", and nothing in "cf".
> In "dev", there are a lot of stuffs, most are tty ports. And there is one
> called "usb" in "dev", but there's nothing in it...
> I don't know why there are so many ttys, and I still did not find gcc...
>
> btw, I did all these cd and ls in the Debian OS which is loaded from the USB
> stick.

type the command:

which gcc

it will tell you where it is. Or just invoke it...

gcc -v

happy hacking
Jim

>
> Thanks,
> Yuping
>
> On Tue, Aug 26, 2008 at 3:56 PM, Jim Jackson <jj%40franjam.org.uk> wrote:
>
>>
>>
>> On Tue, 26 Aug 2008, Yuping Dong wrote:
>>
>>> Thank you very much for your help!
>>> What I did is, I first logged in to the TS-Linux which is installed in
>> the
>>> on-board flash memory. Then I plugged in the USB stick which is shipped
>> as a
>>> component of the development kit, and run the scripts
>>> "/usr/bin/loadUSBModules.sh" and "/usr/bin/loadUSB.sh" and I was able to
>>> work with the Debian OS. I typed "help" to see what commands are
>> available,
>>> but it turns out that no "gcc" or "g++", even no "apt-get" available
>> there.
>>>
>>> I think the best way is to use a cross compiler...
>>
>> Ok. I sort of guessed that was what you had done.
>>
>> gcc and the rest are there.
>>
>> I'm not exactly sure where those scripts mount the USB flash stick.
>> But if they mount it in, for instance, /mnt/usbstick ,
>> then try this...
>>
>> login as usual, then try
>>
>> chroot /mnt/usbstick
>>
>> this will give you a shell where it thinks that /mnt/usbstick is '/' or
>> your file system root. Now you should be able to check what is there.
>>
>> which gcc
>>
>> should tell you where gcc is, and it should be executable.
>>
>> cheers
>> Jim
>>
>>
>

__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU