【问题标题】:CentOS 7 install Octave 4.0.2 with GUI (OpenGL support)CentOS 7 安装带有 GUI 的 Octave 4.0.2(OpenGL 支持)
【发布时间】:2016-04-27 14:46:36
【问题描述】:

我正在尝试从 CentOS 7 中的源代码安装 Octave 4,但收到警告消息:

configure: WARNING: OpenGL libs (GL and GLU) not found.  Native graphics will be disabled.
configure: WARNING: OpenGL libs (GL and GLU) not found -- disabling GUI
configure: WARNING: 
configure: WARNING: I didn't find the necessary libraries to compile native
configure: WARNING: graphics.  It isn't necessary to have native graphics,
configure: WARNING: but you will need to have gnuplot installed or you won't
configure: WARNING: be able to use any of Octave's plotting commands
configure: WARNING: 
configure: 
configure: NOTE: Libraries or auxiliary programs may be skipped if they are
configure: NOTE: not found OR if they are missing required features on your
configure: NOTE: system.

我已经检查了这个QUESTION,但没有帮助。

我也做过yum install libqt4-opengl-dev,但遇到错误No package libqt4-opengl-dev available.

我有 mesa-libGL 和 mesa-libGL-devel,但似乎配置无法获取这些库。

编辑:回答我自己的问题 请参阅问题下方的 cmets。

【问题讨论】:

  • 是的,我有,但我仍然收到上述警告。
  • 然后将 config.log 上传到 pastebin 服务并在此处添加链接
  • 我还没有找到可以免费上传45k行日志的服务:(
  • 我认为这可能与我的源代码版本有关。在我克隆了最新的源代码后,运行 ./configure 不再给我 opengl 警告,并且打开了使用 GUI 选项构建。我仍然有一些编译错误,但至少取得了一些进展。

标签: centos octave centos7


【解决方案1】:

我知道这是一个老问题,但如果有人仍在寻找安装 Octave 4.x 的简单方法,我想留下它。 安装 Octave 4 最简单的方法是使用 Flatpack。它默认安装在 CentOS 7 中。

flatpak install flathub org.octave.Octave
flatpak run org.octave.Octave

如果您使用的是 Red Hat,您需要先安装 flatpak:

sudo yum install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-03-16
    • 2020-04-10
    • 2016-11-20
    • 1970-01-01
    • 2017-04-23
    • 1970-01-01
    • 1970-01-01
    • 2012-02-19
    相关资源
    最近更新 更多