Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/CMakeMinGWFindMake.cmake:12 (message) #233

Open
JaneShenYY opened this issue Dec 7, 2018 · 1 comment

Comments

@JaneShenYY
Copy link

I'm trying to install LuaDist by following the instruction. But running:
$ bootstrap.bat
returned
bash: bootstrap.bat: command not found
Then, I run this command:
$ cmd "/C bootstrap.bat"
It started to work and everything seems fine until meeting the following errors:

CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/CMakeMinGWFindMake.cmake:12 (message):
sh.exe was found in your PATH, here:

C:/Program Files/Git/usr/bin/sh.exe

For MinGW make to work correctly sh.exe must NOT be in your path.

Run cmake from a shell that does not have sh.exe in your PATH.

If you want to use a UNIX shell, then use MSYS Makefiles.

Call Stack (most recent call first):
CMakeLists.txt:7 (project)

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
CMakeFiles\luafilesystem.dir\build.make:105: recipe for target 'luafilesystem/src/luafilesystem-stamp/luafilesystem-configure' failed
mingw32-make.exe[3]: *** [luafilesystem/src/luafilesystem-stamp/luafilesystem-configure] Error 1
CMakeFiles\Makefile2:108: recipe for target 'CMakeFiles/luafilesystem.dir/all' failed
mingw32-make.exe[2]: *** [CMakeFiles/luafilesystem.dir/all] Error 2
CMakeFiles\Makefile2:189: recipe for target 'CMakeFiles/install.dir/rule' failed
mingw32-make.exe[1]: *** [CMakeFiles/install.dir/rule] Error 2
Makefile:156: recipe for target 'install' failed
mingw32-make.exe: *** [install] Error 2
Bootstrap done, building LuaDist using LuaDist
'H:_bootstrap_bootstrap\bin\luadist.exe' is not recognized as an internal or external command,
operable program or batch file.
LuaDist is now built and can be found in H:_bootstrap_install

I have deleted sh.exe in that folder, but the same error persists. How to solve it?

@worwrefedwarzon
Copy link

worwrefedwarzon commented Sep 3, 2019

Check if you have your system dependencies, LuaDist file you downloaded, and Lua interpreter installed on the same drive (preferably system drive). If it is try renaming the sh.exe file located at C:/Program Files/Git/usr/bin and then building LuaDist. If that doesn't work try renaming the sh.exe back to it's original name and building LuaDist again. If that doesn't work just try it once more. That worked for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants