Make on windows - windows

I am trying to run the make command on windows 10. Downloaded the make setup from here and installed it on my system.
I am trying to compile the git-subrepo library but not able to do so.
I get the following error
> make
process_begin: CreateProcess(NULL, which git, ...) failed.
makefile:3: *** 'git' is not installed on this system. Stop.
Git is installed on the system.
> git --version
git version 2.17.0.windows.1
I have never used make before. Sorry, if this is a silly thing I am asking.

Related

'make' commands don't work in WebStorm Makfile Language Plugin

I've faced an issue which I don't understand how to solve.
I use WebStorm on Windows. There I've installed Makefile Language plugin to launch commands automatically
install:
npm ci
brain-games:
node bin/brain-games.js
publish:
npm publish --dry-run
lint:
npx eslint
but I cannot do that, it returns error
C:\ProgramData\chocolatey\bin\make.exe -f *way-to-the-project*/Makefile publish
process_begin: CreateProcess(NULL, npm publish --dry-run, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [*way-to-the-project*/Makefile:6: publish] Error 2
I've tried to run 'make' commands using Powershell and Ubuntu from Microsoft Store and it has worked well, I just cannot understand what is the problem with the plugin and how to use it properly.
Please help me with any advice :)
If you have the issue like this one when you use WebStorm on Windows and try to run Makefile, make sure that in IDE you don't have checked option Add 'node_modules/.bin' from the project root to %PATH% in File -> Settings -> Tools -> Terminal.
Maybe it will save hours for you :)

FreeBSD install ejabberd from source missing yaml.h

I understand that in order to develop ejabberd module I must be able to compile it from the source.
I have FreeBSD 11.0-RELEASE-p9, as a guest OS on a VirtualBox. So the followings are my attempts.
Using git, I clone the source to /usr/local/ejabberd as:
I run the following commands:
git clone git://github.com/processone/ejabberd.git ejabberd
cd ejabberd
./autogen.sh
./configure --enable-user=ejabberd --enable-mysql
gmake install
But I have the following error:
Compiling /usr/local/ejabberd/deps/fast_yaml/c_src/fast_yaml.c
/usr/local/ejabberd/deps/fast_yaml/c_src/fast_yaml.c:18:10: fatal error: 'yaml.h' file not found
ERROR: compile failed while processing /usr/local/ejabberd/deps/fast_yaml/:rebar_abort
Fyi, I have installed libyaml-0.1.7 using ports - I guess successully?
Any tips/advise.
Thank you.
You can take a look at what FreeBSD port does: it passes -I/usr/local/include into CFLAGS when running make. There are also a bunch of patches for ejabberd, that are applied before compilation.
If you want to compile development version from source, you can try first running make -C /usr/ports/net-im/ejabberd extract and then putting sources from git into /usr/ports/net-im/ejabberd/work directory. Then running make -C /usr/ports/net-im/ejabberd install should install development package.

What is this error `make.exe": no_c_compiler: Command not found`

I'm trying to build grpc from source on Windows 2012 Server edition. I downloaded and installed Python 3.5 from the Python website and installed the entire MinGW package as well as git along with git bash. Following the instructions for building from source:
$ git clone https://github.com/grpc/grpc.git
$ cd grpc
$ git submodule update --init
$ make
$ [sudo] make install
I get the aforementioned error after executing make. Here's the shell output for your perusal.
PS C:\Users\thunderboltsid\grpc> make
[MAKE] Generating /c/Users/thunderboltsid/grpc/libs/opt/pkgconfig/grpc.pc
[MAKE] Generating /c/Users/thunderboltsid/grpc/libs/opt/pkgconfig/grpc_unsecure.pc
[MAKE] Generating cache.mk
[C] Compiling third_party/zlib/adler32.c
make.exe": no_c_compiler: Command not found
make.exe": *** [/c/Users/thunderboltsid/grpc/objs/opt/third_party/zlib/adler32.o] Error 127
I really can't understand what is this error supposed to be. Tried googling but that didn't help. Any input will be appreciated.
you may need run apt-get install which
install build-base in your system, example:
apt-get install build-base
You may simply have no C compiler installed, not even gcc. If that's the reason then installing gcc resolves the issue:
apt get install gcc

Unable to `make` on CygWin

I am trying to do a configure-make-make install using Cygwin on my Windows 7 32 bit machine. I have checked, and I have the make package installed (version 4.1-1).
I am able to configure using ./configure --prefix=/home/user/myfolder. Next when I run the make command, I get the following: -bash: make: command not found. I am unable to figure out if this is due to the ./configure not executing properly, or it has something to do with my make package. How do I find out which it is? Does ./configure create an output file at the location prefix=/home/user/myfolder? If so, what is the extension of this file (.in? .am?)? Is there a way to manually point the make command to a file?

Compiling Unix Version 6 in Snow Leopard

Hi i downloaded souce for unix version 6, i want to study it and test it. I am running Snow Leopard on a macbook pro.
1)Is there a way to compile it in mac. If i comile using make or gmake i am getting the following error.
*** Error: Couldn't find an i386-*-elf version of GCC/binutils.
*** Is the directory with i386-jos-elf-gcc in your PATH?
*** If your i386-*-elf toolchain is installed with a command
*** prefix other than 'i386-jos-elf-', set your GCCPREFIX
*** environment variable to that prefix and run 'make' again.
*** To turn off this error, run 'gmake GCCPREFIX= ...'.
2)I also want to run it in a virtual machine,I have VMWare installed on my machine. I don't know how to do that.
Download tarballs for gcc and binutils, expand them, then:
$ cd binutils-2.15
$ ./configure --target=i386-jos-elf
$ make
$ make install
$ cd ../gcc-3.4.1
$ ./configure --target=i386-jos-elf
$ make
$ make install
You will of course need to update the paths. (I got these instructions from MIT's OpenCourseWare.)
You'll have to go through the process of creating a new virtual machine and formatting and installing the OS onto its disk. I've used VirtualBox with some success, but I have no experience with VMWare; you're on your own there.
You might look into macports.org. It has several packages that look useful, notably "i386-elf-binutils". It installs into /opt/local/*, so you may need to make sure /opt/local/bin/ is in your path. (Although I believe it takes care of that by default.)
EDIT: Or maybe not. After a little more research, I wonder if these instructions and downloads are what you're looking for.
EDIT again: Corrected the download link. Sorry about that!
The build system you are using seems to require an ELF tool chain (used by Linux).
You could try to figure out if that can be changed, but since you have VMWare, try to compile it under a virtualized Linux (minimal Debian is quite light-weight).
As an alternative you may compile bournesh on Mac OS X.
http://freshmeat.net/projects/bournesh/

Resources