UPDATE! Official Flex Builder 3 for Linux!!
Check it out here!
The stuff below is left here for posterity’s sake…but you probably want the link above, and forget everything below…
With a bit of tweaking, I’ve gotten Flex Builder 2.01 working under Linux. Everything seems to work, including debugging, except for the Design view.
Here is a brief outline:
- Download and extract Eclipse. I used Eclipse SDK 3.2.2 NOTE: I could not get it to work when eclipse was installed in /usr. Unless you can figure it out, do not install eclipse via your OS, simply download the .tgz and extract it to your home directory.
- Download and extract the free Flex 2.01 SDK.
- Download and install the Flex Charting Components (same link as above) Run the installer by
java -jar flex_charting_2_installer.jar and install it to the root of your Flex2 SDK directory.
- Download the Flash 9 Debugging player
- install the plugin into your browser by running plugin/debugger/install_flash_player_9_linux/flashplayer-installer.
- (as root) copy standalone/debugger/flashplayer to /usr/local/bin
- create a symlink for gflashplayer, (as root)
ln -s /usr/local/bin/flashplayer /usr/local/bin/gflashplayer
- Download the FlexBuilder 2.01 Plugin for Linux (mirror)
- Extract this to the root eclipse install folder. It will create files in the configuration, plugins, and features directories which are already part of eclipse.
- Open
eclipse/configuration/com.adobe.flexbuilder/flexbuilder2.xml and change the value of <sdkpath> to point to the root directory where you installed the Flex 2 SDK
- (OPTIONAL) Fix the annoying ‘Incorrect flash player installed’ popup every time you run your project:
- Download debugui.jar
- Overwrite the file eclipse/plugins/com.adobe.flexbuilder.debug.ui_2.0.155577/debugui.jar with the downloaded one
- (OPTIONAL) Use the windows flash player with WINE instead of native linux flash player.
- Make sure you have WINE installed correctly
- Download the windows standalone projector debugger (see link at top for player downloads)
- Download this flashplayer script and place in your path, as well as rename the linux player so it doesn’t interfere. You probably still need the symlink to gflashplayer as above.
- (OPTIONAL) If you already use eclipse, it’s possible it wont see the new Flex plugins. Simply run the following command to get eclipse to search for your newly installed stuff:
- “./eclips -clean”
That should be it! The only problem I’ve had is switching to design view messes everything up. Just stay in source view and you’ll be fine. Also, whenever I try to debug, it says I don’t have flash 9 installed, but I just press continue, and debugging works like normal (catching traces, breakpoint on crash, etc).
Thanks to this chinese guy’s post for figuring it out. He has a few more posts on the issue ([1], [2]), but I didn’t seem to need any of the info in them.
Somewhat related, this post talks about other ways of using Flex 2 / AS3 under linux.