bazel windows patch: command not found - bash

I followed the Installing Bazel on Windows, and everything work but the patch. I get the following error
/usr/bin/bash: line 1: patch: command not found.
I installed msys64 in C:\dev\msys64, and added C:\dev\msys64\usr\bin to my PATH. Bazel work fine, but when I open C:\dev\msys64\usr\bin\bash.exe and I type patch, the command is not found.
If I open mingw32.exe, mingw64.exe or msys2.exe, and type "patch" it works. it is well installed. I tried to reinstall it many time. but still the bash.exe does not have the patch command.
I used the following command pacman -S zip unzip patch diffutils git. Everything seems to be well installed.
The error occurs when building the rules_go, specifically the following element wrapper

Related

Can't run a package after installing it using pip

I have run the following command on a MacOS terminal:
pip install --user git+https://github.com/cwerner/fastclass.git#egg=fastclass
which seemingly installed that on my system (and according to the documentation added it to my PATH)
However, when I try to call the command 'fcd' it always says "command not found". I have tried to add the path of the file fcd (which is /Library/Python/2.7/bin) to my PATH using export, which works however, I still get 'command not found'.
I feel like there is something obvious I am missing. Any ideas?

MINGW64 "make build" error: "bash: make: command not found"

I am working on Windows 10. I want to run a "make build" in MINGW64 but following error comes up:
$ make build
bash: make: command not found
I want to build Glide for Golang
I tried following:
$ sudo yum install build-essential
bash: sudo: command not found
As well as:
$ yum install build-essential
bash: yum: command not found
And:
$ apt-cyg build-essential
bash: apt-cyg: command not found
How can I "work-around" this problem?
Go to ezwinports, https://sourceforge.net/projects/ezwinports/files/
Download make-4.2.1-without-guile-w32-bin.zip (get the version
without guile)
Extract zip
Copy the contents to C:\ProgramFiles\Git\mingw64\ merging the folders, but do NOT overwrite/replace any exisiting files.
You can also use Chocolatey.
Having it installed, just run:
choco install make
When it finishes, it is installed and available in Git for Bash / MinGW.
You have to install mingw-get and after that you can run mingw-get install msys-make to have the command make available.
Here is a link for what you want http://www.mingw.org/wiki/getting_started
We can't use the 'make' command on windows and we don't get it preinstalled with MINGW. So to use it, you need to download it first. The steps are as follows-
Go to https://sourceforge.net/projects/mingw/postdownload and download it.
After the installation is over, go and check if bin folder is present in the directory of MINGW .
If everything works well till now, change the environment variables- go to settings of your laptop and type Environment variables. Go to it's section and click on 'environment variables' at the end.
On the section where 'path' is written, add a new file - the location of the bin file and save.
Install make by typing the following on mingw command line :
mingw-get install mingw32-make
Now make is installed. To use it in command line just write "mingw32-make" in place of "make".
Try using cmake itself.
In the build directory, run:
cmake --build .
Go to downloads of jmeubank.github.io/tdm/gcc : https://jmeubank.github.io/tdm-gcc/download/
Download 64+32-bit MinGW-w64 edition.
Run the .exe file.
Click on Remove if you have tdm-gcc already.
Then Click on Create to install tdm-gcc.
Complete the installation.
Add path to environment variable if not added automatically.
Now run mingw32-make on your terminal / command prompt.
Hope this works
You have to install make first. Run any of the below commands and it will work.
pip install make
OR
conda install make

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?

How to use gitk with msys2?

I am using MSYS2 in Windows 10. git works fine, however gitk gives the error:
/usr/bin/gitk: line 3: exec: wish: not found
Some googling suggested this may be because TK is not installed, however I tried:
pacman -S tk
which gave the error:
error: target not found: tk
How do I get gitk to work in this environment?
Try running the 64-bit MinGW shell (one of the three environments provided by MSYS2), installing the package mingw-w64-x86_64-tk, and then running gitk.
Gitk works on my system, and wish is provided /mingw64/bin/wish.exe.
I confirm C:\prgs\git\PortableGit-2.7.0-64-bit\cmd\gitk.exe works just fine.
Make sure you are executing it from a regular CMD session or from C:\prgs\git\PortableGit-2.7.0-64-bit\git-bash.exe
I would not try and run it from a Cygwin session.

./configure command not found, pkg-config

When trying to install pkg-config on a brand new install of 10.8.5 i got a ./configure: no such file or directory.
first I downloaded the source with git
git clone git://anongit.freedesktop.org/pkg-config
then I switched to the directory
cd /Users/nah/Desktop/pkg-config
when I run ls I can see the configure file but when I run
./configure --with-internal-glib
I get ./configure: no such file or directory. Even though I see the file in the pkg-config directory.
When I searched for answers online The two i saw were are you in the correct directory which i clearly am, and the second answer i saw was to use homebrew or Macports. I know homebrew and macports will work but that doesn't really answer the question it's sort of a work around. I than realized that the configure file wasn't executable so I ran chmod on it to make it executable but I get the same thing. The other thing I thought of was the configure file is configure.ac , a quick glance at a bunch of other source files on my computer and they all have configure files with no .ac.
I also tried dragging the executable configure file to terminal to run it and I got
line 1: syntax error near unexpected token [2.62}
/Users/nah/pkg-config/configure.ac: line 1: 'AC_PREREQ([2.62])'
do you think there's a problem with the configure script for Mountain lion, i did this on snow leopard about a month ago with no problems.
so in conclusion, i can't install pkg-config using normal ./configure; make; make install;
And would like to know way to solve problem with out homebrew or Macports work around.

Resources