octave 4没有GUI和一些未安装的function
我按照如何在Ubuntu 14.04中安装Octave 4.0.0中给出的源码安装octave 4
但我无法使用GUI。 octave –force-gui只在终端给我命令行。 请指导我获取GUI和其他function。(如果缺少库请告诉我如何安装库并获得function)听到是日志文件config.log …通过在日志文件中查看我发现此列表:
- 构建Octave GUI:没有
-
循环的JIT编译器:没有
-
建立Javainterface:是的
-
内部数组边界检查:否
-
构建静态库:没有
-
构建共享库:是的
-
动态链接:是(dlopen)
-
包括对GNU readline的支持:是的
-
64位数组调暗和索引:否
-
OpenMP SMPmultithreading:是的
- 构建交叉工具:没有
谢谢
简单:
sudo apt-get install libqt4-opengl-dev
您的config.log
显示您的系统缺少构建octave-4.0 GUI所需的Qt开发组件:
configure:72095: checking for QT configure:72103: $PKG_CONFIG --exists --print-errors "$QT_MODULES" Package QtOpenGL was not found in the pkg-config search path. Perhaps you should add the directory containing `QtOpenGL.pc' to the PKG_CONFIG_PATH environment variable No package 'QtOpenGL' found configure:72106: $? = 1 configure:72121: $PKG_CONFIG --exists --print-errors "$QT_MODULES" Package QtOpenGL was not found in the pkg-config search path. Perhaps you should add the directory containing `QtOpenGL.pc' to the PKG_CONFIG_PATH environment variable No package 'QtOpenGL' found configure:72124: $? = 1 No package 'QtOpenGL' found configure:72152: result: no configure:73317: WARNING: Qt libraries not found -- disabling GUI
您将需要至少安装与octave-4.0.0源一起提供的INSTALL.OCTAVE
文件中记录的Qt工具包依赖项:
Qt GUI and utility libraries (). Qt is required for building the GUI. It is a large framework, but the only components required are the GUI, core, and network modules.
特定的Ubuntu软件包是libqtgui4
libqtcore4
和libqt4-network
但是除非磁盘空间受到严格限制,否则您可能希望安装全面的libqt4-dev
软件包
sudo apt-get install libqt4-dev
虽然它的目标是Debian而不是Ubuntu,但您可能会发现这个额外的资源对Debian系统有用Octave:从源代码编译 – 正确的方法 。
我安装了libqt4-dev
, libqt4-opengl-dev
和unixodbc-dev
软件包,然后就可以了。