Results 1 to 2 of 2

Thread: I can not Deploying application for ubuntu

  1. #1
    Join Date
    Oct 2010
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default I can not Deploying application for ubuntu

    I want Deploying "hello" application on ubuntu, so i use the Deploying an Application on X11 Platforms on Qt Assistant,the said great hello.sh file in the application dir:


    #!/bin/sh
    appname=`basename $0 | sed s,\.sh$,,`

    dirname=`dirname $0`
    tmp="${dirname#?}"

    if [ "${dirname%$tmp}" != "/" ]; then
    dirname=$PWD/$dirname
    fi
    LD_LIBRARY_PATH=$dirname
    export LD_LIBRARY_PATH
    $dirname/$appname $*

    when i running this hello.sh in other ubuntu(do not install any thing software).the error is:
    : not found:#!/bin/sh
    hello.sh:11: Syntax error:and of file unexpected(expection "then")

    how can i fix it?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: I can not Deploying application for ubuntu

    Install sh.
    I guess the default for Ubuntu (like most other distributions) is bash.

    Edit: or /bin/sh is not the correct location
    Last edited by tbscope; 7th November 2010 at 08:32.

Similar Threads

  1. Deploying qt application under mac osx
    By lechoo in forum Installation and Deployment
    Replies: 0
    Last Post: 24th September 2010, 16:56
  2. deploying my qt application
    By arunredi in forum Installation and Deployment
    Replies: 1
    Last Post: 22nd May 2008, 12:34
  3. Deploying Qt application on Mac OS X
    By mourad in forum Installation and Deployment
    Replies: 1
    Last Post: 30th March 2008, 17:19
  4. Deploying Qt 4.2 Application on Mac 10.3.5?
    By vishal.chauhan in forum Installation and Deployment
    Replies: 0
    Last Post: 11th May 2007, 12:33
  5. Deploying Qt Application on Mac?
    By vishal.chauhan in forum Installation and Deployment
    Replies: 2
    Last Post: 30th March 2007, 10:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.