It is possible that '(a)mxmlc' executable was not found or there are compilation

用Restfulx开发flex运用,执行如下命令:
rake rx:flex:build

报如下错误:
(in /media/disk/software/ework/ruby/cucumberwithflex)
Compiling /media/disk/software/ework/ruby/cucumberwithflex/app/flex/Cucumberwithflex.mxml
The application was not compiled. Check console for errors. It is possible that '(a)mxmlc' executable was not found or there are compilation errors.


原因:
没有设置flex builder的bin到系统变量中,执行如下命令即可:
export PATH=$PATH:/opt/Adobe_Flex_Builder_Linux/sdks/3.0.0/bin

看看是否设置成功:
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/real/realplayer:/opt/Adobe_Flex_Builder_Linux/sdks/3.0.0/bin


重新执行rake rx:flex:build打印出如下信息:
(in /media/disk/software/ework/ruby/cucumberwithflex)
Compiling /media/disk/software/ework/ruby/cucumberwithflex/app/flex/Cucumberwithflex.mxml
Loading configuration file /opt/Adobe_Flex_Builder_Linux/sdks/3.0.0/frameworks/flex-config.xml
Loading configuration file /media/disk/software/ework/ruby/cucumberwithflex/app/flex/Cucumberwithflex-config.xml
/media/disk/software/ework/ruby/cucumberwithflex/app/flex/Cucumberwithflex.swf (371136 bytes)
Moving /media/disk/software/ework/ruby/cucumberwithflex/app/flex/Cucumberwithflex.swf to /media/disk/software/ework/ruby/cucumberwithflex/public/bin
Done!


一切正常了

你可能感兴趣的:(linux,xml,Flex,Ruby,Adobe)