[maemo-developers] [maemo-developers] SDK, installer tool script gives this error: trap: 47721: SIGINT: bad trap

From: Marius Gedminas marius at pov.lt
Date: Tue Nov 21 14:08:00 EET 2006
On Tue, Nov 21, 2006 at 10:29:24AM +0100, Beth wrote:
> Well this morning I wake up with the idea of re-installing the sdk
> (last night ...) and get a fresh working copy.
> 
> So I go for the installer tool script
> http://repository.maemo.org/stable/2.1/installer/installer and it
> gives me when I try to execute it this annoying error: trap: 47721:
> SIGINT: bad trap
> 
> I am with ubuntu 6.10 and  I remember that I installed successfully
> with the installer tool the 2.0 SDK (it fails too).

I am certain this is caused by /bin/sh being a simple POSIX shell (dash)
instead of the more featureful bash.  To pin the blame: if the installer
wants to use bashisms, it should say #!/bin/bash at the top, and if it
says #!/bin/sh, it should work with any POSIX shell.  Somebody should
file a bug in Maemo bugzilla (read: "I'm too lazy to do it").

You can try running 'bash installer' instead of './installer'.  Or, even
better, install from debs:

  sudo vi /etc/apt/sources.list
    # a line in my /etc/apt/sources.list
    deb http://scratchbox.org/download/files/sbox-releases/0.9.8/deb/ ./

  sudo apt-get update
  sudo apt-get install scratchbox-core scratchbox-devkit-debian \
                       scratchbox-libs \
                       scratchbox-toolchain-cs2005q3.2-glibc-i386 \
                       scratchbox-toolchain-cs2005q3.2-glibc-arm

  sudo adduser $USER sbox
  sudo /scratchbox/bin/sbox_adduser $USER

Now log out and log back in (or start a subshell with 'newgrp sbox')
and then continue the tutorial from the '/scratchbox/login' step.

HTH,
Marius Gedminas
-- 
Perl is hard for most people to write. They write PERL or Pearl.
        -- Abigail
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20061121/69b6256c/attachment.pgp 
More information about the maemo-developers mailing list