Skip to main content
Participant
November 17, 2008
Question

Error running source setup.sh

  • November 17, 2008
  • 3 replies
  • 749 views
This is my first time to get in touch with flex at all. So I am a blind rookie, hungry fro some action. I had two problems sourcing the setup.sh

1. The source.sh was unable to find the flash player gz.
# 2. I dont have the default ant and jdk on my ubuntu. and it always points to the defaults where as I even set them in the environment for this session. The error trace is at the bottom of the post.

Solution to first problem: I gave a path for the player. Does this mean the path is incorrect in the current version
Solution to second problem: I am checking if the HOME paths are missing only then use the defaults otherwise dont.

Changes are as follows:

Currently I have solved like this, Applications compile and run fine.
It could be wrong and thats why I am posting here.

=============================================
# This was tested on Ubuntu
elif [ $OS = "Linux" ]; then

#If ANT_HOME is not there then take the default one.
if [ ! -d "$ANT_HOME" ]; then
ANT_HOME=/usr/share/ant
fi
#If JAVA_HOME is not there then take the default one.
if [ ! -d "$JAVA_HOME" ]; then
JAVA_HOME=`readlink /etc/alternatives/javac | sed -n 's/[\\\/]bin[\\\/]javac$//p'`
fi

# Add player PATH for reuse eliminate chances of copy errors.
PLAYER_PATH=in/player/10/lnx

# Don't unpack the player every time, unless it's been updated
find $PLAYER_PATH -name flashplayer ! -cnewer $PLAYER_PATH/flashplayer.tar.gz -exec rm {} \;
if [ ! -f "$PLAYER_PATH/flashplayer" ]; then
echo "setup.sh: Unpacking player to in/player/lnx/flashplayer"
tar zxf $PLAYER_PATH/flashplayer.tar.gz
mv flashplayer $PLAYER_PATH/flashplayer
fi
=============================================

Trace of errors from the console, faced before changes.

/media/data/dev/flex-sdk/branches/gumbo_alpha$ source setup.sh
find: in/player/lnx/flashplayer.tar.gz: No such file or directory
setup.sh: Unpacking player to in/player/lnx/flashplayer
tar: in/player/lnx/flashplayer.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
mv: cannot stat `flashplayer': No such file or directory
setup.sh: Setting default ANT_HOME=/usr/share/ant
setup.sh: Setting default JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
setup.sh: WARNING: ANT_HOME does not exist:
/usr/share/ant
This topic has been closed for replies.

3 replies

Inspiring
November 18, 2008
On Monday 17 Nov 2008, Shaaf wrote:
> The player is still there in SVN. Its just the script that needs some
> changes and those I posted in my last message :)

I logged #SDK-18131

--
Tom Chiverton
Helping to economically brand performance-oriented holistic viral
design-patterns



****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.
_Shaaf_Author
Participant
November 17, 2008
Yep I agree with you. Its always nice for things to work that our documented, its motivating for someone to quickly adapt if the said stuff is working.

I agree with you about just making it work. I just did that.

The player is still there in SVN. Its just the script that needs some changes and those I posted in my last message :)

Thanks for your reply. Just that its my first few hours on flex I wasn't sure if I was in the right direction.

Regards,
-- Shaaf
Inspiring
November 17, 2008
On Monday 17 Nov 2008, Shaaf wrote:
> # 2. I dont have the default ant and jdk on my ubuntu. and it always
> points to the defaults where as I even set them in the environment for this
> session. The error trace is at the bottom of the post.

setup.sh is intend to help you out, rather than always work.
Just set the required environment variables yourself and skip this step if
your setup is non-default.

> Solution to first problem: I gave a path for the player. Does this mean the
> path is incorrect in the current version Solution to second problem: I am

I *believe* the player is no longer in SVN because people were pulling from
there pre-public release and the Adobe folks needed to reduce load.
Unfortunately they are all busy at the mo @ MAX, but if you copy a recent
player into the correct place it should be fine.

--
Tom Chiverton
Helping to competently benchmark world-class distributed open-source
attention-grabbing services



****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.