linux - 64 位操作系统中的 Linaro ARM 工具链预构建二进制文件

标签 linux raspberry-pi 32bit-64bit toolchain linaro

我有一台 Ubuntu 14.04 Trusty 64 位机器。我的操作系统和内核都是 64 位的

 uname -a
Linux --- 3.13.0-43-generic #72-Ubuntu SMP Mon Dec 8 19:35:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

我在使用 Raspberry Pi 时从 Linaro 下载了预构建的工具链二进制文件,但我无法编译我的代码,因为我下载的二进制文件是 32 位的,它没有得到在我的 64 位机器上被识别。

谁能给我一些指点? (如果我能从 Linaro 找到一个 64 位的预构建工具链)或我可以在我的 Ubuntu 上部署的任何其他解决方案来解决这个问题

我的错误如下

some@somemachine:~/tools/compilers/linaro/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin$ file ./arm-none-eabi-gcc-4.9.2 
./arm-none-eabi-gcc-4.9.2: ELF 32-bit LSB  executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped

文件(是的!它在目录中)

some@somemachine:~/tools/compilers/linaro/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin$ arm-none-eabi-gcc -v
bash: /home/some/tools/compilers/linaro/gcc-linaro-arm-none-eabi-4.9-2014.09_linux/bin/arm-none-eabi-gcc: No such file or directory

最佳答案

我发现了问题。我不得不做一些谷歌搜索。

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

将解决问题。这将使 32 位应用程序在 64 位机器上正常运行 + 可能必须安装其他 *.i386 库

关于linux - 64 位操作系统中的 Linaro ARM 工具链预构建二进制文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27585765/

相关文章:

c++ - 刷新排队的 GPIB 响应

linux - One-Liners 脚本用于 (1) 删除一行和下一行,(2) 更改文件中的值

c - 尝试扩展 golang Pigpio 包装函数 gpioWaveAddGeneric

python - Windows 到 Raspberry Pi 零串行问题

c++ - 如何以编程方式检索 C++ 中 64 位进程的详细信息?

c++ - 使用 distcc 在 Ubuntu 上的 i686 系统上交叉编译 x86_64

c++ - 在 32 位和 64 位中使用 for 循环反向迭代容器/字符串的元素而不发出警告

c++ - 启动程序和libocci.so.11.1 : cannot open shared object file: No such file or directory

python - 如何使用 Linux 将程序的输出重定向到 .txt 文件

Python读取输出声音未输入