如何通过Homebrew在优胜美地安装tofrodos?


1

该线程基于我试图将Windows语法解析为该线程中的 unix的基础。我成功运行brew reinstall tofrodos并获得

==> Reinstalling tofrodos
==> Downloading http://tofrodos.sourceforge.net/download/tofrodos-1.7.13.tar.gz
Already downloaded: /Library/Caches/Homebrew/tofrodos-1.7.13.tar.gz
==> make
🍺  /usr/local/Cellar/tofrodos/1.7.13: 5 files, 80K, built in 2 seconds

我跑步hash -r; tofrodos --help并得到

-bash: tofrodos: command not found

也没有手册:man tofrodos给出

No manual entry for tofrodos

您如何使用此tofrodos命令?

Answers:


2

tofrodos软件包没有tofrodos命令行工具。它提供了两个命令行工具:fromdostodos。Homebrew在本地安装软件包后,您可以在软件包目录中看到它们:

IanCsiMac:~ |ruby-2.1.2|
> ls /usr/local/Cellar/tofrodos/1.7.13
COPYING              INSTALL_RECEIPT.json bin                  readme.txt           share

IanCsiMac:~ |ruby-2.1.2|
> ls /usr/local/Cellar/tofrodos/1.7.13/bin
fromdos todos

IanCsiMac:~ |ruby-2.1.2|
> which fromdos
/usr/local/bin/fromdos

IanCsiMac:~ |ruby-2.1.2|
> which todos
/usr/local/bin/todos

你需要寻找fromdostodos你的PATH,不是tofrodos-没有tofrodos命令。同样,这些man页面用于这些命令,而不是tofrodos


谢谢您的回答!我认为将这样两个不相关的命令放在一个程序包中是一种不好的做法。下次我只做* brew info [command]; ls [some-path] / readme”并查找-exe或假定为命令行命令的其他可执行文件。
LéoLéopoldHertz준영2015年

1
这些命令相关的-它们使用共享库对文件进行OS行结尾翻译。将多个相关命令打包到这样的程序包中是很常见的-直到我成为* nix用户...大约25年了。但是,实际上,如果您对tofrodos包含的内容有疑问,欢迎您提交可破坏该软件包的补丁:thefreecountry.com/tofrodos
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.