1. Install JDK

  2. Download Adobe Flex SDK (Free Adobe Flex SDK)

http://opensource.adobe.com/wiki/display/flexsdk/Downloads

  1. if run as root, you can create directory in /opt/flexsdk or other places

cd /opt/flexsdk

unzip ~/flex_sdk_4.0.0.14159.zip

if work as normal user

mkdir ~/flexsdk

cd ~/flexsdk

unzip ~/flex_sdk_4.0.0.14159.zip

  1. change the variables

vi ~/.bashrc

#add the following lines

export PATH=$PATH:/opt/flexsdk/bin:~/flexsdk/bin

. ~/.bashrc

  1. Test

$mxmlc –help

Adobe Flex Compiler (mxmlc)

Version 4.0.0 build 14159

Copyright (c) 2004-2009 Adobe Systems, Inc. All rights reserved.