【问题标题】:GNU ARM Embedded Toolchain Installation IssueGNU ARM 嵌入式工具链安装问题
【发布时间】:2016-11-09 13:37:13
【问题描述】:

我正在尝试安装一个 GNU ARM Embedded Toolchain,以便将它与 Ubuntu 机器中的 Sublime Text 3 集成。

我按照以下步骤操作,但出现错误:

1.从“https://launchpad.net/gcc-arm-embedded/+downloadGo”下载数据包,然后将数据包解压到主目录:

cd ~/
tar -xvjf ~/Downloads/gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2

2.测试文件是否存在,权限是否正常。

ll ~/gcc-arm-none-eabi-5_4-2016q3/bin
-rwxrwxrwx 2 root root  776368 set 26 19:36 arm-none-eabi-gcc*

--- I obmited the others files... ---

3.测试是否有效:

sudo ~/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gcc --version

但是我收到了这个错误:

bash: /home/fabio/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gcc: No such file or directory

我该如何解决这个问题?我的用户是“fabio”,但文件的所有者是 root。

【问题讨论】:

  • 这不是您的问题,但您可能不应该必须以root 运行此编译器(即使用sudo)。
  • 在 Ubuntu 机器上,只需按正常方式安装 gcc-arm-none-eabi 包,如果您确实需要最新版本,请使用启动板站点提供的 PPA .这可能更像是Ask Ubuntu 的事情。
  • 正常的方式是什么?
  • 如果我不使用“sudo”,我会得到同样的错误。
  • @FabioDev :正如他所说,使用 sudo 不是您的问题,这只是一个坏主意并且没有必要。如果它打算成为一个解决方案,它会被发布并且答案不是评论。

标签: c arm embedded gnu-toolchain


【解决方案1】:

问题解决了。

"No such file or directory" error when executing a binary

我缺少运行 32 位应用程序所需的 /lib/ld-linux.so.2 文件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-05-29
    • 2020-12-12
    • 2018-09-16
    • 2015-07-01
    • 2010-11-20
    • 2018-08-21
    • 2019-06-10
    相关资源
    最近更新 更多