How do I install md5deep in Git Bash (Windows 7) - windows

How do I install md5deep in Git Bash as the make command is not working in Git Bash.
I tried with wget, apt-get and a few other methods.

Git Bash does not ship with GNU Make or package utilities. For that you would need Cygwin.
If you would like a more "official" means, try Bash on Ubuntu for Windows which I find more streamlined and easier to use.
If you'd like the latter, Windows 10 is still free for Windows 7 users.

Related

How to install jrnl on git bash?

I am trying to have the "jrnl" command line application installed in my git bash, but I couldn't manage to do it. Is it possible to have it installed somehow? I am running Windows 10 at the moment.
The jrnl application I am mentioning is this one:
https://jrnl.sh/en/stable/
The git bash I am using is this one:
https://git-scm.com/downloads
Thanks!
I have found a way! I did not know about pipx. As soon as I got it installed, I was able to run:
pipx install jrnl
Then I configured this in my .bashrc:
alias journal='winpty jrnl'
After that I just had to restart my git bash, using jrnl through the "journal" command.
journal at 8pm: done
Thanks

How to install git on Windows 10 without Git Bash or GUI?

I am trying to install Git on Windows 10, but without Git Bash or GUI. I want to use Git in PowerShell and I would like not to bloat my PC. I know the install size is small, but that's not the issue.
I've tried going through the installer from git-SMC/Git for Windows a couple times, but it appears I can not opt out of GUI and Bash. Any idea how I can do this? Perhaps Chocolatey is of any use?
Thanks in advance!
You can use MinGit
MinGit is provided on the Git for Windows repository
https://github.com/git-for-windows/git/releases
It does not come preinstalled with Git Bash, GitK or Vi etc.
The github repo publishes portable and minimum versions of the binary releases which don't require installation. You could prune out the parts you don't want if you need to cut it down further.
https://github.com/git-for-windows/git/releases
Or instalation Using Chocolatey, if that will be ok for you
https://www.jamessturtevant.com/posts/5-Ways-to-install-git-on-Windows/#using-chocolatey
I started with Git and then removed everything except the following dirs:
\mingw64\libexec\git-core
\ssl
Rename git-core to cmd and move it up 2 levels and you don't even have to edit your .gitconfig.
Works like a charm for me.

How to process json in bash script in windows environment

I am writing bash script that is supposed to work both on linux and windows environment. To enable bash on windows we have installed cygwin.
Seems jq lib can handle json but not sure will it work on windows environment too?
Same with sed not sure how to enable it in windows environment?
Some other libraries?
I have jq installed on cygwin and it can handle json data in Windows.
You can install jq on Cygwin by two ways
1) Run this in cmd. setup-x86_64.exe is your cygwin installation binary
setup-x86_64.exe -q -P jq
2) Install apt-cyg(the package manager of cygwin similar to yum) and run on cygwin
apt-cyg install jq
NOTE: The details of installing packages on Cygwin is mentioned How do I install cygwin components from the command line?

Bower Init Register requires an interactive shell error

this is what I get when I use bower init
what could be the problem??
The problem is with the terminal/console you're using to.
I ran into this same problem other day, I was using Git bash as my terminal, and trying to run this command with Node.js command prompt worked normally.
Try to use another terminal, like cmder (I really recommend this to Windows users), Node.js command prompt or even Windows cmd itself. Hope to have helped you. Best wishes!
The solution is to install GIT bash and avoid
using MinTTY and follow the documentation. Here is the solution:
Uninstall existing GIT bash Reinstall GIT bash Set up during
installation:
Select Use Git from the Windows Command Prompt
Select Checkout Windows-style, commit Unix-style line endings
Select Use Windows' default console window
Okay this works for sure -
Go to https://cygwin.com/install.html and download either the
32 or 64 bit version of Cygwin.
Run the install and install it onto one of your drives.
Run the Cygwin.bat and you will get the same command line
interface.
When you run bower init, it will work just fine. The Mintty that
comes with GIT is broken for somethings. Use the shell that comes
with Cygwin and you will be fine.
It works for me no problem. I used the 64 bit version on a Window 8 64bit OS. Good Luck!
You're most likely running C:\Program Files\Git\git-bash.exe and can instead run C:\Program Files\Git\bin\bash.exe to eliminate the issue. This avoids having to install another yet another terminal.

How can I implement a fast install of git using sh?

I need to get a classroom full of students to install git on their computers quickly and during a lecture. I've been inspired by the installation process of meteor to try and implement something similiar, i.e:
curl easy-install-git.com | sh
I know there already exist binaries and easy ways to install git, but those are all multi-step processes and this would be one simple command in terminal. How do I write an sh script to do this? (Or better yet, does one exist already?)
Any other easy ways to do a git install on a clean machine would also be appreciated.
5 years later, the easiest/fastest way to install Git on Mac is to type:
git --version
If you don’t have it installed already, it will prompt you to install it.
But that is an old Apple fork of Git (2.10 at most)
The git-osx-installer dmg files are up-to-date, with Git 2.18.
As seen in this script, it can be curl'd.

Resources