Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24

Thread: sencha generate app - crashes with build error!

  1. #21
    Sencha User
    Join Date
    Mar 2014
    Posts
    4
    Vote Rating
    1
      1  

    Default

    Solved problem for me:OS: windows 8.1 - 64bitsInstall Cmd in c:/users/xxx/

  2. #22
    Sencha User
    Join Date
    May 2014
    Posts
    7
    Vote Rating
    0
      0  

    Default

    I firstly installed Sencha in "C:/Program Files/Sencha", but got the error given in this thread:
    Code:
    >sencha -sdk "path/to/Sencha/touch-2.3.1" generate app MyApp .
    
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.BasicException: Cannot find file: 
    C:\Program Files\Sencha\bin\Sencha\Cmd\repo\.sencha\codegen.json
    Quote Originally Posted by umr.ashrf View Post
    This worked for me.
    Code:
    sudo chmod 777 /usr/bin/Sencha/Cmd
    If only I could do the same! (since I speak linux fluently!)

    But my OS is Windows 7... and I only speak a few words of Windows... which do not include how to change the rights on a directory (it seems much more complicated than linux imho...)

    So, I uninstalled and deleted the "C:/Program Files/Sencha" directory and reinstalled Sencha in the default directory proposed by the installer: "C:\Users\jduthen\bin"...

    The build process ended with no error

  3. #23
    Sencha User
    Join Date
    Sep 2014
    Posts
    1
    Vote Rating
    0
      0  

    Default Will giving permission to all the users cause any synchronization issues?

    I was wondering if there is any other alternative for this, other than giving permission to all the users? Will it cause any synchronization issues? Has anyone faced issues when two different users are building the app simultaneously?

  4. #24
    Sencha User
    Join Date
    Mar 2016
    Posts
    2
    Vote Rating
    0
      0  

    Default

    So here's a handy little shell file I wrote to simplify process of installing Sencha Cmd.

    The shell file
    installs Sencha Cmd to /opt/sencha/cmd/{version}.

    Code:
    #!/bin/bash
    set -x # echo on
    
    
    # Sencha Cmd is the cornerstone for building your Sencha Ext JS and Sencha Touch applications. 
    # Sencha Cmd provides a full set of lifecycle management features such as scaffolding, code minification, production build generation, and more, to complement your Sencha projects. 
    
    
    # Usage:
    #  $ ./sencha-cmd.sh
    #  $ ./sencha-cmd.sh --version="6.5.2" --architecture="amd64"
    #  $ ./sencha-cmd.sh --version="6.5.2" --architecture="i386"
    
    
    version="6.5.2"  # https://www.sencha.com/products/extjs/cmd-download/
    architecture="amd64"
    
    
    for i in "$@"
    do
    case $i in
        -v=*|--version=*)
        version="${i#*=}"
        shift # past argument=value
        ;;
        -a=*|--architecture=*)
        architecture="${i#*=}"
        shift # past argument=value
        ;;
    esac
    done
    
    
    installer_zip="SenchaCmd-$version-linux-$architecture.sh.zip"
    wget "http://cdn.sencha.com/cmd/$version/no-jre/$installer_zip" -P /tmp
    
    
    cd /tmp
    unzip -j "$installer_zip"  # extract all the files into the current directory
    
    
    installer_sh=$(zipinfo -1 "$installer_zip")
    #installer_sh="SenchaCmd-$version.15-linux-$architecture.sh"
    version=$(echo "$installer_sh" | pcregrep --only-matching=1 "SenchaCmd-(.*)-linux-(amd64|i386)\.sh")
    
    
    rm "/tmp/$installer_zip"
    
    
    installation_path="/opt/sencha/cmd/$version"  # By default, the installation path is: ~/bin/Sencha/Cmd/{version}
    sudo mkdir -p "$installation_path"
    sudo chmod a+rw -R "/opt/sencha"
    
    
    "./$installer_sh" -q -dir "$installation_path"  # https://docs.sencha.com/cmd/guides/intro_to_cmd.html#intro_to_cmd_-_installing_sencha_cmd_silently
    
    
    rm "/tmp/$installer_sh"

Page 3 of 3 FirstFirst 123

Posting Permissions

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