欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2024-01-31 08:39:07
...
用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!


一切正常了