Warnings after octave installation

走远了吗. 提交于 2019-12-21 20:44:28

问题


I am getting following warning after launching octave. i used installation instruction from here.

What could be the issue? Are these major warnings? I am using windows.

warning: gmsh does not seem to be present some functionalities will be disabled
warning: dx does not seem to be present some functionalities will be disabled
warning: function C:\Octave\Octave3.6.0_gcc4.6.2\share\octave\packages\statistics- 
1.1.0\fstat.m shadows a core library function

回答1:


That's because you have installed packages that you probably do not need (otherwise you would already noticed more than just the warning message)

warning: gmsh does not seem to be present some functionalities will be disabled

You have the msh package installed and loaded. This package uses gmsh hence the warning. If you don't use this package remove it pkg uninstall msh or turn off its automatic loading at startup with pkg rebuild -noauto msh

warning: dx does not seem to be present some functionalities will be disabled

I don't know exactly which package uses dx but I'm guessing the problem is same as the msh. Run pkg unload all and then try to load them one by one until you find the warning. Fix as in the case of msh package.

warning: function C:\Octave\Octave3.6.0_gcc4.6.2\share\octave\packages\statistics- 
1.1.0\fstat.m shadows a core library function

The fstat() function from the statistics package is shadowing the same function with same name from Octave core. The one in core is already deprecated so don't worry about this warning. It will go away after Octave 3.8 is released.




回答2:


To solve the

warning: dx does not seem to be present some functionalities will be disabled

in Ubuntu, you have to edit the following file

sudo nano /usr/share/octave/3.8.1/m/startup/octaverc

and you should comment this line pkg ("load", "auto");

This is the solution for this warning .



来源:https://stackoverflow.com/questions/9255286/warnings-after-octave-installation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!