メモ、Ubuntu 10.04 に Flex 4 SDK を導入する

ちなみに

コマンドシェルには zsh を使っています。

コンパイル時に JDK (sun-java6-jdk)が必要となるらしい

% dpkg -l | grep sun-java6-jdk
ii  sun-java6-jdk                                                       6.20dlj-1ubuntu3                                               Sun Java(TM) Development Kit (JDK) 6

ii なのでインストール済み。

Flex 4 SDK のダウンロード

Download Adobe Flex SDK にアクセスし、「Download now」をクリックする。
※ライセンスは Flex SDK License Agreement にあるが、ダウンロードしたアーカイブ中にも含まれている。

導入

ダウンロードディレクトリで

% unzip flex_sdk_4.1.zip -d ./flex-4.1
% sudo mv flex-4.1 /opt
% cd /opt
% sudo ln -sn flex-4.1 /opt/flex

展開したものは /opt/flex-4.1 に移し、シンボリックリンクを作成する。
ここで一旦、確認。

% PATH=/opt/flex/bin:$PATH
% mxmlc --help
Adobe Flex Compiler (mxmlc)
Version 4.1.0 build 16076
Copyright (c) 2004-2009 Adobe Systems, Inc. All rights reserved.


-help [keyword] [...]
    For information on command line syntax and descriptions of
    configuration variables, specify a search string, or one of the
    following special keywords:
       syntax   - describe the general syntax of the command line
       list     - show a list of all basic configuration variables
       advanced - also match advanced configuration variables
       aliases  - sort using the short alias for the variable
       details  - always display the full details for each item
    Any other help keyword provided is used to match a full or partial
    configuration variable, alias, or text to search for in the
    description of the configuration variable.
    
    For example, '-help advanced aliases foo' would show all
    configuration options (both basic and advanced) containing the text
    'foo', sorted by alias name.
    
    In the description of individual configuration variables, required
    values are marked with angle brackets, and optional values are marked
    with square brackets.  The notation [...] is used to indicate that
    the values are a list of arbitrary length.

%

大丈夫なようなので ~/.zshrc に PATH=/opt/flex/bin:$PATH を追記。
パスが通っていない場合は

% mxmlc --help
zsh: command not found: mxmlc

と出る。
これで導入は完了。今日はここまで。