Find the answer to your Linux question:
Results 1 to 2 of 2
Greetings, I'm trying to install a SDK iso image onto an embedded linux platform. I was able to mount the image on the platform without problems. I also created a ...
  1. #1
    Just Joined!
    Join Date
    Jun 2011
    Posts
    1

    Installing SDK on embedded linux platform

    Greetings,

    I'm trying to install a SDK iso image onto an embedded linux platform. I was able to mount the image on the platform without problems. I also created a symbolic link called "bash" in the bin directory and had that point to busybox to satisfy the first line of code in the installer: "#!/bin/bash". However, when I run the installer, I get an error:

    "installer: applet not found"

    I get the same error when I type "bash" on the command line. Is there a way to fix this?

    Here is the first few lines of code that causes the error:

    #!/bin/bash

    DEBUG=${DEBUG:="0"} # Enables debugging options
    LC_OPTION=${LC_OPTION:="prompt"} # Licensing related variable
    INSTALL_PATH=${INSTALL_PATH:=$HOME} # Default installation path

    declare -r SCRIPT_NAME="`basename $0`"
    declare -r SCRIPT_CALLED="$0 $*"
    declare -r START_DIR="$PWD"
    declare -r SCRIPT_ROOT=`cd $( dirname $0 ); pwd`
    declare SDK_NAME
    declare INTELCE_PKG_CONFIG=""
    declare INTELCE_TFS_DEPS=""




    Thank you

  2. #2
    Linux Guru
    Join Date
    May 2011
    Posts
    1,838
    That error means that the busybox binary you are using was not built with the applet 'bash'. This is normal. Typically, there is an 'ash' or 'msh' shell built in, though. Just run 'busybox' by itself without args, and it'll spit out all the built in applets. Say 'ash' is available. Then create a link to it like this:
    Code:
    cd /bin;ln -s busybox ash
    Then put this at the top of your code:
    Code:
    #!/bin/ash
    There is another problem, though. I believe your script is calling functions, etc. that are only available in full-on Bash, not ash/msh. So you may need to recompile busybox to support this Bash, or even compile Bash itself for your embedded platform. It is no big ordeal, i've done it before, for the very same reason.

    hth

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...