TylerBrock / mongo-hacker

MongoDB Shell Enhancements for Hackers
tylerbrock.github.io/mongo-hacker
MIT License
1.79k stars 235 forks source link

'make' is not recognized as an internal or external command, operable program or batch file. #138

Closed wzup closed 5 years ago

wzup commented 9 years ago

Cannot install on Win 8.1 x64. Get this error:

'make' is not recognized as an internal or external command,
operable program or batch file.

How to solve it? Without installing Cygwin

TylerBrock commented 9 years ago

Sorry, it doesn't really work without make. Maybe I should re-write it to use node for concatenating the files together. If you want to take a stab at it i'd accept the pull request.

TylerBrock commented 9 years ago

Perhaps there is a node tool out there that already does this but I think it's fairly trivial.

feimosi commented 8 years ago

The same problem here, Windows 10, node v.5.5.0. After providing make from GnuWin32 I ended up with the following error:

helpers.js hacks/index_paranoia.js hacks/old_aggregation.js hacks/prompt.js hacks/sh_status.js hacks/show.js hacks/uuid.js hacks/verbose.js > mongo_hacker.js
      0 [main] sh 9328 C:\Program Files\Git\usr\bin\sh.exe: *** fatal error in forked process - fork: can't reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
    466 [main] sh 9328 cygwin_exception::open_stackdumpfile: Dumping stack trace to sh.exe.stackdump
      1 [main] sh 7800 fork: child -1 - forked process 9328 died unexpectedly, retry 0, exit code 0x100, errno 11
/usr/bin/sh: fork: retry: No child processes
gianpaj commented 8 years ago

Could this possibly help? https://github.com/shelljs/shelljs#make-tool (Portable Unix shell commands for Node.js) A convenience script shelljs/make is also provided to mimic the behavior of a Unix Makefile

TylerBrock commented 8 years ago

I need to remove make from the equation and just use node to cat the files together. On Wed, Jan 27, 2016 at 7:30 AM Gianfranco Palumbo notifications@github.com wrote:

Could this possibly help? https://github.com/shelljs/shelljs#make-tool (Portable Unix shell commands for Node.js) A convenience script shelljs/make is also provided to mimic the behavior of a Unix Makefile

— Reply to this email directly or view it on GitHub https://github.com/TylerBrock/mongo-hacker/issues/138#issuecomment-175689875 .

gaurav51289 commented 8 years ago

Any solution for installing it on windows? Error : 'make' is not recognized as an internal or external command, operable program or batch file.

seanpascoe commented 8 years ago

-Download 'Make for Windows' @ http://gnuwin32.sourceforge.net/packages/make.htm -Add the make.exe directory to your PATH variable

It worked for me, not sure why @feimosi had problems.

TylerBrock commented 8 years ago

Ugh I'm sorry, I REALLY need to do this just in pure node so we don't have to bother with make. It should be trivial, I'm going to try and find some time this week.

jg-digital-media commented 8 years ago

Any update on a timetable for this? Thanks :)

Wo1v3r commented 8 years ago

Any alternative meanwhile except for downloading make for windows? :x

cassmtnr commented 8 years ago

Actually I did made it work but can't remember how :/

ghost commented 7 years ago

I faced the same problem.So to install it properly I installed http://gnuwin32.sourceforge.net/packages/make.htm in my system and set path variable but after that I start getting cat is not recognized in my command prompt error .

So than I usedgitbash for installation and it works for me.

Secular12 commented 6 years ago

@TylerBrock Any updates on this?

stennie commented 5 years ago

By default Windows doesn't include the make command used to build Mongo Hacker.

On Windows It will likely be more straightforward to download make and install Mongo Hacker from GitHub (instead of via NPM).

Hspharwinder commented 4 years ago

Visit here https://sourceforge.net/projects/mingw/ download MinGW - Minimalist GNU for Windows and install it. Set system variable path C:\MinGW\bin

for detail paste this link in new tab - https://stackoverflow.com/questions/23723364/windows-7-make-is-not-recognized-as-an-internal-or-external-command-operabl/62450734#62450734 For help check video youtube.com/watch?v=sXW2VLrQ3Bs

WinterOfMaple2016 commented 2 years ago

-Download 'Make for Windows' @ http://gnuwin32.sourceforge.net/packages/make.htm -Add the make.exe directory to your PATH variable

It worked for me, not sure why @feimosi had problems. Set system variable path C:\Program Files (x86)\GnuWin32\bin but it still not work

hassy97 commented 2 years ago

make : The term 'make' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

stennie commented 2 years ago

@hassy97 I recommend using the new MongoDB Shell (mongosh) instead of Mongo Hacker and the legacy mongo shell: https://www.mongodb.com/docs/mongodb-shell/,

mongosh is built on top of the Node.js REPL and has more modern features including syntax highlighting, autocomplete, and support for npm packages: https://www.mongodb.com/blog/post/introducing-the-new-shell.

mongosh is also embedded into GUI tools like MongoDB Compass and Jetbrains DataGrip.

The legacy mongo shell has been fully deprecated by mongosh as of the MongoDB 6.0 release.