【问题标题】:Eclipse IDE - Gluon Plugin - cc1 not found - Debian GNU/LinuxEclipse IDE - Gluon 插件 - 找不到 cc1 - Debian GNU/Linux
【发布时间】:2020-09-23 15:44:39
【问题描述】:

我正在尝试在 Debian GNU/Linux 上的 Eclipse IDE 上使用 Gluon 插件...该项目配置为使用 maven 构建。然而,即使安装了 gcc 和 g++ 以及 build-essential,它也找不到“cc1”...

日志文件说:

[Wed Sep 23 10:34:17 COT 2020][INFO] ==================== COMPILE TASK ====================
[Wed Sep 23 10:34:18 COT 2020][FINE] PB Command for check version: /home/mateo/AppsFiles/graalvm-ce-java11-20.2.0/bin/java -version
[Wed Sep 23 10:34:18 COT 2020][FINE] Start process check version...
[Wed Sep 23 10:34:19 COT 2020][FINE] [SUB] openjdk version "11.0.8" 2020-07-14
[Wed Sep 23 10:34:19 COT 2020][FINE] [SUB] OpenJDK Runtime Environment GraalVM CE 20.2.0 (build 11.0.8+10-jvmci-20.2-b03)
[Wed Sep 23 10:34:19 COT 2020][FINE] [SUB] OpenJDK 64-Bit Server VM GraalVM CE 20.2.0 (build 11.0.8+10-jvmci-20.2-b03, mixed mode, sharing)
[Wed Sep 23 10:34:19 COT 2020][FINE] Result for check version: 0
[Wed Sep 23 10:34:19 COT 2020][INFO] We will now compile your code for x86_64-linux-linux. This may take some time.
[Wed Sep 23 10:34:19 COT 2020][FINE] Extracting native libs to: /home/mateo/Workspace/Java/TestGluon/target/client/x86_64-linux/gvm/lib
[Wed Sep 23 10:34:19 COT 2020][FINE] Looking for resource: /native/linux/launcher.c
[Wed Sep 23 10:34:19 COT 2020][FINE] PB Command for compile-additional-sources: gcc -c -DSUBSTRATE -I/home/mateo/AppsFiles/graalvm-ce-java11-20.2.0/include -I/home/mateo/AppsF$
[Wed Sep 23 10:34:19 COT 2020][FINE] Start process compile-additional-sources...
[Wed Sep 23 10:34:19 COT 2020][FINE] [SUB] gcc: error trying to exec 'cc1': execvp: No such file or directory
[Wed Sep 23 10:34:19 COT 2020][FINE] Result for compile-additional-sources: 1
[Wed Sep 23 10:34:19 COT 2020][SEVERE] Process compile-additional-sources failed with result: 1
Check the log files under /home/mateo/Workspace/Java/TestGluon/target/client/x86_64-linux/gvm/log
And please check https://docs.gluonhq.com/client/ for more information.
[Wed Sep 23 10:34:19 COT 2020][INFO] Logging process [compile-additional-sources] to file: /home/mateo/Workspace/Java/TestGluon/target/client/log/process-compile-additional-so$
[Wed Sep 23 10:34:19 COT 2020][SEVERE] Compiling failed.
Check the log files under /home/mateo/Workspace/Java/TestGluon/target/client/x86_64-linux/gvm/log
And please check https://docs.gluonhq.com/client/ for more information.

重要的部分是:

[SUB] gcc: error trying to exec 'cc1': execvp: No such file or directory

因为它没有找到 cc1... 有没有办法告诉 Eclipse IDE 它位于何处? 谢谢。

【问题讨论】:

  • 快速搜索你的issue可以看到这个SO answer,主要和gcc的正确安装有关。仅供参考,these 是 CI 安装的包,用于在 Linux 上由插件进行测试。
  • 感谢您的快速回答和纠正我糟糕的帖子...我安装了所有开发库,重新配置了 build-essential 包以及 g++ 和 gcc。然而问题仍然存在,日志文件是相同的......
  • 你是从终端运行的吗?什么给了你gcc -print-prog-name=cc1
  • 打印“cc1”。
  • 对我来说,它显示:/usr/lib/gcc/x86_64-linux-gnu/9/cc1,而which gcc 打印/usr/bin/gcc,这是gcc-9 的符号链接,它是x86_64-linux-gnu-gcc-9 的符号链接。你有这样的文件吗?

标签: linux eclipse gcc debian gluon


【解决方案1】:

为了让它发挥作用,我做了以下操作。

  1. 我重新安装了整个操作系统。
  2. 我安装了 build-essential、gcc 和 g++。 (即使我以前有过它们……)
  3. 我完全删除了我的工作区以及 Eclipse。
  4. 我删除了 GRAALVM_HOME 变量及其指向的所有文件。
  5. 我在 /opt 上安装了 GraalVM。
  6. 我安装了 Eclipse(不是 Snap 版本)Gluon 插件和 Efxclipse。
  7. 又不行了...我安装了maven,用新安装的替换了Eclipse。
  8. 它又一次不起作用,但我看到了日志,所以我不得不将 GRAALVM_HOME 变量导出为项目的环境变量...
  9. 我不得不安装更多的开发包:

xvfb tigervnc-standalone-server tigervnc-common at-spi2-core build-essential libgtk-3-dev libxtst-dev libavcodec-dev libavformat-dev libasound2-dev libgl-dev

(cmets 上的一个人帮我解决了这些问题。)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-01-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-29
    • 1970-01-01
    相关资源
    最近更新 更多