在ubuntu上安装Flex SDK

时间:2014-03-17 16:47:17

标签: flex ubuntu air

我一直在关注这个article在ubuntu 12.04上安装apache flex,但遗憾的是最后一步对我不起作用。 成功安装adobe air之后,如果我运行dpkg -l adobeair我得到了预期的结果:

ii  adobeair  1:2.6.0.19170  Adobe AIR 2

也是为了确保,运行dpkg -l|grep adobeair会像上一个命令一样大喊。

就像在链接中提到的那样,尝试执行flex deb包会显示错误,表示不能满足adobe air依赖性。

尝试执行他们建议的解决方案:sudo dpkg -i --force-depends apache-flex-sdk-installer-2.7.0-bin.deb返回以下内容:

Selecting previously unselected package org.apache.flex.installapacheflex:i386.
dpkg: regarding apache-flex-sdk-installer-2.7.0-bin.deb containing org.apache.flex.installapacheflex:i386, pre-dependency problem:
org.apache.flex.installapacheflex:i386 pre-depends on adobeair (>= 1:2.6.0.0)
dpkg: warning: ignoring pre-dependency problem!
(Reading database ... 187989 files and directories currently installed.)
Unpacking org.apache.flex.installapacheflex:i386 (from apache-flex-sdk-installer-2.7.0-bin.deb) ...
dpkg: org.apache.flex.installapacheflex:i386: dependency problems, but configuring anyway as you requested:
org.apache.flex.installapacheflex:i386 depends on adobeair (>= 1:2.6.0.0).
Setting up org.apache.flex.installapacheflex:i386 (2.7.0) ...
Processing triggers for software-center ...
Updating software catalog...this may take a moment.
INFO:softwarecenter.db.pkginfo_impl.aptcache:aptcache.open()
Software catalog update was successful.

并且没有其他任何事情发生,安装向导无法启动。之后,双击flex包打开软件中心,显示错误“无法安装或删除项目,直到修复包目录”,并显示修复或取消选项。无论我选择什么选项,仍然不允许安装flex包......

我已经在这几个小时里苦苦挣扎,它让我疯了,任何输入都会非常感激! :)

1 个答案:

答案 0 :(得分:4)

所以我终于找到了问题,一旦完成问题中描述的所有步骤,你会发现安装程序位于/opt/Apache Flex/Apache Flex SDK Installer/bin所以基本上你只需要用root权限执行安装程序一切都将变得笨拙:

cd /opt/Apache\ Flex/Apache\ Flex\ SDK\ Installer/bin/
sudo ./Apache\ Flex\ SDK\ Installer

按照向导完成后,您可以通过执行mxmlc -help

来确保
Apache Flex Compiler (mxmlc)
Version 4.12.0 build 20140303
Copyright 2013 The Apache Software Foundation.

也许这将有助于未来的人:)