无法在 Ubuntu 16.04 LTS 上的 Arduino IDE 中安装 Intel i586 库(Intel galileo gen 2)

无法在 Ubuntu 16.04 LTS 上的 Arduino IDE 中安装 Intel i586 库(Intel galileo gen 2)

我按照这篇博文中的说明在 Ubuntu 16.04 LTS 上安装最新的 Arduino IDE 1.6.8(http://ubuntuhandbook.org/index.php/2015/11/install-arduino-ide-1-6-6-ubuntu/)。 一切顺利。

但安装后,我尝试安装 Intel i586 库,因为我有一块英特尔 Galileo gen 2 主板。每次我尝试安装库时,都会收到此错误消息: 错误信息 因此,我也无法编译和运行草图到我的主板。

这是我在安装库时在 IDE 编译窗口中收到的警告消息列表。

Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/x86_64-pokysdk-linux/etc/ld.so.cache links to an absolute path /etc/ld.so.cache
Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/x86_64-pokysdk-linux/usr/libexec/i586-poky-linux-uclibc/gcc/i586-poky-linux-uclibc/4.7.2/ranlib links to an absolute path /opt/clanton-tiny/1.4.4/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ranlib
Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/x86_64-pokysdk-linux/usr/libexec/i586-poky-linux-uclibc/gcc/i586-poky-linux-uclibc/4.7.2/nm links to an absolute path /opt/clanton-tiny/1.4.4/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-nm
Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/x86_64-pokysdk-linux/usr/libexec/i586-poky-linux-uclibc/gcc/i586-poky-linux-uclibc/4.7.2/strip links to an absolute path /opt/clanton-tiny/1.4.4/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-strip
Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/x86_64-pokysdk-linux/usr/libexec/i586-poky-linux-uclibc/gcc/i586-poky-linux-uclibc/4.7.2/cpp links to an absolute path /opt/clanton-tiny/1.4.4/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-cpp
Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/x86_64-pokysdk-linux/usr/libexec/i586-poky-linux-uclibc/gcc/i586-poky-linux-uclibc/4.7.2/ar links to an absolute path /opt/clanton-tiny/1.4.4/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ar
Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/x86_64-pokysdk-linux/usr/libexec/i586-poky-linux-uclibc/gcc/i586-poky-linux-uclibc/4.7.2/objcopy links to an absolute path /opt/clanton-tiny/1.4.4/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-objcopy
Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/x86_64-pokysdk-linux/usr/libexec/i586-poky-linux-uclibc/gcc/i586-poky-linux-uclibc/4.7.2/gcc links to an absolute path /opt/clanton-tiny/1.4.4/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-gcc
Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/x86_64-pokysdk-linux/usr/libexec/i586-poky-linux-uclibc/gcc/i586-poky-linux-uclibc/4.7.2/objdump links to an absolute path /opt/clanton-tiny/1.4.4/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-objdump
Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/x86_64-pokysdk-linux/usr/libexec/i586-poky-linux-uclibc/gcc/i586-poky-linux-uclibc/4.7.2/ld links to an absolute path /opt/clanton-tiny/1.4.4/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-ld
Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/x86_64-pokysdk-linux/usr/libexec/i586-poky-linux-uclibc/gcc/i586-poky-linux-uclibc/4.7.2/as links to an absolute path /opt/clanton-tiny/1.4.4/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-as
Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/i586-poky-linux-uclibc/opt/clanton-tiny/1.4.4/sysroots/x86_64-pokysdk-linux/usr/bin/opkg links to an absolute path /opt/clanton-tiny/1.4.4/sysroots/x86_64-pokysdk-linux/usr/bin/opkg-cl
Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/i586-poky-linux-uclibc/usr/src/debug/libgcc/4.7.2-r20/build/libgcc/gthr-default.h links to an absolute path /jenkins_builder/workspace/GLLO_1.0.5-Toolchain-Linux64/yocto_build/tmp/work-shared/gcc-4.7.2-r20/gcc-4.7.2/libgcc/gthr-posix.h
Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/i586-poky-linux-uclibc/usr/src/debug/libgcc/4.7.2-r20/build/libgcc/unwind.h links to an absolute path /jenkins_builder/workspace/GLLO_1.0.5-Toolchain-Linux64/yocto_build/tmp/work-shared/gcc-4.7.2-r20/gcc-4.7.2/libgcc/unwind-generic.h
Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/i586-poky-linux-uclibc/usr/src/debug/libgcc/4.7.2-r20/build/libgcc/enable-execute-stack.c links to an absolute path /jenkins_builder/workspace/GLLO_1.0.5-Toolchain-Linux64/yocto_build/tmp/work-shared/gcc-4.7.2-r20/gcc-4.7.2/libgcc/enable-execute-stack-empty.c
Warning: file /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/sysroots/i586-poky-linux-uclibc/usr/src/debug/libgcc/4.7.2-r20/build/libgcc/md-unwind-support.h links to an absolute path /jenkins_builder/workspace/GLLO_1.0.5-Toolchain-Linux64/yocto_build/tmp/work-shared/gcc-4.7.2-r20/gcc-4.7.2/libgcc/config/i386/linux-unwind.h
Setting it up.../tmp/tmp.iPSRXYmbqY/relocate_sdk.sh /home/rishi/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/relocate_sdk.sh
SDK could not be set up. Relocate script failed. Abort!
find: invalid mode ‘+111’

答案1

根据以下信息https://communities.intel.com/thread/48053?start=0&tstart=0感谢 sulamita 和 digver,我终于可以在 Ubuntu 16.04 上安装并运行英特尔 Galileo gen2 主板

我遵循的步骤如下:

  1. 通过 arduino IDE 安装开发板。

    • 这是通过您在此帖子上放置的图片上显示的董事会经理完成的。
    • 安装电路板后出现错误,但不用担心,稍后会解决。
  2. 修改重新定位sdk的文件。

    • 打开终端ctrl + alt + T
    • 以 root 用户身份访问sudo su(并输入您的密码)
    • 移动到以下文件夹cd /root/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586
    • 然后执行以下操作:gedit install_script.sh
    • 在打开的文件中搜索以“executable_files”开头的行,并将“+111”字符更改为“/111”
    • 保存后回到终端执行./install_script.sh

享受您的英特尔伽利略 gen2 bord 的工作!

答案2

我也遇到了这个问题。Ignasi 的上述解决方案很好,非常感谢,谢谢。但是,遇到此问题的人可能还想做以下事情:

sudo apt-get remove modemmanager

这是为了消除调制解调器管理器对 tty 链接的干扰(实际上不太可能成为问题,但在我的 25 名学生的班级中似乎偶尔会发生这种情况)

sudo usermod -a -G dialout rishi

这是为了授予您足够的权限来写入 /dev/ttyACM0(因为您的用户名是 rishi)

答案3

对于发现此问题并且在将 更改为 后仍然遇到问题的人+111/111您可能需要检查目录中的任何其他脚本是否出现错误。

对我来说,以 而不是relocate_sdk.py为前缀,导致语法错误。#!/usr/bin/env python#!/usr/bin/env python2

已修复该问题并且现在一切正常。

相关内容