[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ttylinux:169] Re: [Ttylinux]How to build ttylinux



harryxiyou wrote:
> On Fri, Feb 10, 2012 at 8:53 AM, Douglas Jerome <[email protected]> wrote:
>> harryxiyou wrote:
>>> On Thu, Feb 9, 2012 at 9:05 AM, Douglas Jerome <[email protected]> wrote:
>>>> I think I see two problems:
>>>>
>>>> 1) Look at the *ttylinux-config.sh* file again, around
>>>>   line 155; why is the second TTYLINUX_PLATFORM
>>>>   commented-out? It shouldn't be.
>>> Yes, you are right. But, when it is uncomment, i run the command 'make
>>> dist', which
>>> also has something wrong shown like following.
>>>
>>> [email protected]:~/workshop1/ttylinux-src-mp9# make dist
>>> Remove the 12.7-x86_64-pc built items.
>>> ./ttylinux-config.sh: 200: [[: not found
>>>
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> site pre clean
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>
>>> => Removing file system image, boot CD image, SDCard image.
>>> => Removing boot CD-ROM, SD Card staging areas.
>>> => Removing kernel and module tree, if any.
>>> => Removing kernel modules package, if any.
>>> => Removing the packages:
>>>    -> Removing build-root/ contents.
>>>    -> Removing pkg-bin/ binary packages.
>>>    -> Removing var/log/ build logs.
>>> => Removing U-Boot, if any.
>>> => Removing x-load, if any.
>>> ./ttylinux-config.sh: 200: [[: not found
>> Look at this error in the line above. [[ is
>> not found. That indicates that your /bin/bash
>> is not really bash, or it has some configuration
>> that prevents it from having normal bash
>> capabilities.
> 
> But how can i fix the bash matter, please give me some
> suggestions.
> 
>> At the command line try typing:
>> /bin/bash --version
>>
> 
> [email protected]:~# /bin/bash --version
> /bin/bash --version
> GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)
> Copyright (C) 2009 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> 
> This is free software; you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.

Check to make sure line 200 of ttylinux-config.sh starts
with "if"; it should look like:
if [[ ${TTYLINUX_FSI_SIZE} -lt ${fsLb} ]]; then

I don't have any answer right now... thinking and using
Google and IRC...

Check /bin/sh, it should be a symlink to /bin/bash