atomsInstall can't find the mingw compiler installed through chocolatey

左心房为你撑大大i 提交于 2019-12-11 09:07:32

问题


Following this question, I'm not quite sure where the problem is so I add tags for all the components involved. I'm trying to use the MinGw compiler inside Scilab. There is a mingw atom which supposedly should be installed by

atomsInstall('mingw')

which returns empty and

atomsLoad('mingw');

which returns the error:

Mingw Compiler support for Scilab

Load macros

WARNING: MinGW Compiler not detected.

Load help

and the haveacompiler() returns false F, although I have the compiler installed through Chocolatey. What could be the problem:

  1. the compiler needs to be added to Windows environment variables or something like that? I suppose Chocolatey should take care of that by default. I have reflected this issue here on mingw chocolatey page.
  2. there is a bug in the mingw Scilab atom. I have contacted the maintainers Antoine Elias and Allan Cornet for that possibility.
  3. It is a mingw bug as some have sugested. I have shared this issue also here on the mingw mailing list.

P.S.1. I have reported a bug over here.

P.S.2. I have opened a new feature request over here.


回答1:


Solution: Tested on Scilab 6.0.1, Windows 7

  1. first of all, download the Equation Solution compiler gcc-6.2.0 package 32 or 64
  2. install it. It will just copy gcc and related binuntils in C:/Users/yourUserId.
  3. Then start Scilab and install the MinGW Atoms module.
  4. Then logout/login your Windows session. Restart Scilab. When loading, MinGW module takes some time (maybe some compilations), but does not complain.
  5. Then the dynamic link example of ilib_for_link runs fine !

Explanations: The Equation Solution package was developed by Jenn-Ching Luo, the MinGW Atoms package was developed over this particular distribution of MinGW.



来源:https://stackoverflow.com/questions/55063203/atomsinstall-cant-find-the-mingw-compiler-installed-through-chocolatey

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