1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    39
    Vote Rating
    3
    Rhoover is on a distinguished road

      1  

    Default Build Error in Ubuntu-Linux

    Build Error in Ubuntu-Linux


    Everything was working great with the Sencha Command SDK Tools:

    properly installed to /opt/, PATH environment correct, "sencha app create..." flies, the app works in Chrome w/o any errors.

    Until, following the docs and running "sencha app build testing" generates the following error:

    Code:
    [ERROR] /bin/sh: 1: /opt/SenchaSDKTools-2.0.0-beta3:/opt/SenchaSDKTools-2.0.0-beta3:/home/robin/.rvm/gems/ruby-1.9.3-p194/bin:/home/robin/.rvm/gems/ruby-1.9.3-p194@global/bin:/home/robin/.rvm/rubies/ruby-1.9.3-p194/bin:/home/robin/.rvm/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/robin/.rvm/bin/bin/phantomjs: not found
    Out of all those directories indeed the last one /home/robin/.rvm/bin/bin/phantomjs does not exist. Nor does /home/robin/.rvm/bin.

    That long list of directories seems to me to be Linux doing its thing and looking for the correct directory from which to run something, in this case phantomjs.

    I wonder why it did not find phantomjs w/in the /opt/SenchaSDKTools directory, where I've confirmed it exists.

    FWIW, I installed Ruby in Ubuntu 12.04 per these instructions:

    http://ryanbigg.com/2010/12/ubuntu-r...rails-and-you/

    without a hitch.

    My PATH Environments from .bashrc:

    Code:
    PATH=$PATH:$HOME/.rvm/bin
    [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
    
    export PATH=/opt/SenchaSDKTools-2.0.0-beta3:$PATH
    export SENCHA_SDK_TOOLS_2_0_0_BETA3=/opt/SenchaSDKTools-2.0.0-beta3:$PATH
    I wonder what gives? Thx for taking a look!

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Moved to SDK tools.

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Posts
    39
    Vote Rating
    3
    Rhoover is on a distinguished road

      0  

    Default


    A further test:

    Plain vanilla 32-bit Ubuntu 12.04 VM created. SDKTools installed, SDK ready.

    Again, "sencha app create...." works fine.

    "sencha app build testing" returns following:

    Code:
    [INFO] Deploying your application to /home/robin/Sites/MyApp/build/testing
    [INFO] Copied sdk/sencha-touch.js
    [INFO] Copied app.js
    [INFO] Copied resources/css/app.css
    [INFO] Copied resources/images
    [INFO] Copied resources/icons
    [INFO] Copied resources/startup
    [INFO] Resolving your application dependencies (file:////home/robin/Sites/MyApp/index.html)
    and then:

    Code:
    [ERROR] /bin/sh:
     1:
    /opt/SenchaSDKTools-2.0.0-beta3:
    /opt/SenchaSDKTools-2.0.0-beta3:
    /usr/lib/lightdm/lightdm:
    /usr/local/sbin:
    /usr/local/bin:
    /usr/sbin:
    /usr/bin:
    /sbin:
    /bin:
    /usr/games/bin/phantomjs: not found
    bummer . hope this helps though.

    any similar experiences? any known workarounds, for instance to /opt/SenchaSDKTools-2.0.0-beta3/sencha, which points to:
    /opt/SenchaSDKTools-2.0.0-beta3/bin/node, but not to
    /opt/SenchaSDKTools-2.0.0-beta3/bin/phantomjs, nor
    /opt/SenchaSDKTools-2.0.0-beta3/bin/phantom/bin/phantomjs

Thread Participants: 1