Where can I get the fmt binary for MSYS/MinGW?

空扰寡人 提交于 2019-12-13 12:22:14

问题


I am using virtualenvwrapper with Git Bash (msysGit).

Mostly this works fine, but the lsvirtualenv command relies on the fmt unix command, which is not currently on my path.

I would like to add only fmt.exe to my Git Bash bin if possible, in the interests of doing a minimal install.

For the life of me I cannot find a standalone fmt - it looks like it used to be a part of MSYS coreutils, but is now no longer present.

Please could someone give me some pointers on how to proceed?


回答1:


It's not an exe, but, I have a simple(ish) fmt replacement written in Python, by me and Donn Seeley. It's Unix/Linux-centric (makes some assumptions about errno) but should be easily adapted.

Available via link; strip the .txt extension to turn it into a .py file.




回答2:


Thanks for all the help.

In the end, one of the MinGW users on their mailing list (Eli Zaretskii) pointed me in the right direction.

fmt.exe now lives here in Sourceforge:

http://sourceforge.net/projects/mingw/files/MSYS/Base/coreutils/coreutils-5.97-3/coreutils-5.97-3-msys-1.0.13-ext.tar.lzma/download

It needs two DLL libraries (libintl and libiconv) which get copied across into the git bash bin directory too. They live here in Sourceforge:

libintl

http://sourceforge.net/projects/mingw/files/MSYS/Base/gettext/gettext-0.18.1.1-1/libintl-0.18.1.1-1-msys-1.0.17-dll-8.tar.lzma/download

libiconv

http://sourceforge.net/projects/mingw/files/MSYS/Base/libiconv/libiconv-1.14-1/libiconv-1.14-1-msys-1.0.17-dll-2.tar.lzma/download

Now, this little lot will get fmt.exe working in your git bash, but lsvirtualenv still does not work properly... but I think that is a virtualenvwrapper problem now!



来源:https://stackoverflow.com/questions/20424326/where-can-i-get-the-fmt-binary-for-msys-mingw

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!