找不到文件(Windows 上的 cygwin)

找不到文件(Windows 上的 cygwin)
  • Windows 7的

  • 2014 年 TeX 直播

我正在尝试安装Minion Pro 和 Myriad Pro与 pdflatex 一起使用。当我尝试在cygwinvia中运行脚本时

name@pc-name /cygdrive/d/LaTeX/FontPro-master-Build01
$ ./scripts/makeall MinionPro --expanded

...这就是发生的事情:

Chosen font family is MinionPro
Different font versions found: --pack option is disabled
Creating PostScript fonts ...
C:\texlive\2014\bin\win32\cfftot1.exe: glyph ‘sterling.oldstyle’: Whilng otf/MinionPro-Bold.otf:
C:\texlive\2014\bin\win32\cfftot1.exe: glyph ‘sterling.oldstyle’: warnex flex hint replaced with curves
C:\texlive\2014\bin\win32\cfftot1.exe: (This Type 2 format font containts prohibited by Type 1.
C:\texlive\2014\bin\win32\cfftot1.exe: I’ve safely replaced them with urves.)
C:\texlive\2014\bin\win32\cfftot1.exe: glyph ‘colonmonetary.oldstyle’:cessing otf/MinionPro-It.otf:
C:\texlive\2014\bin\win32\cfftot1.exe: glyph ‘colonmonetary.oldstyle’:complex flex hint replaced with curves
C:\texlive\2014\bin\win32\cfftot1.exe: (This Type 2 format font containts prohibited by Type 1.
C:\texlive\2014\bin\win32\cfftot1.exe: I’ve safely replaced them with urves.)
Creating TeX metrics ...
./scripts/makeall: Zeile 93: perl: Kommando nicht gefunden.
 < 62) : Syntaxfehler: Ungültiger arithmetischer Operator. (Fehlerveru < 62) \").t \"
scripts/maketfm: Zeile 245: bc: Kommando nicht gefunden.

(我用“Kommando nicht gefunden”剪下了许多与最后一行类似的台词。必须点击Ctrl + C才能停止。)

maketfm因此,显然由于斜杠的典型差异,找不到相同的文件。有谁知道我该如何解决这个问题?

新版本,安装 perl for cygwin 后

$ ./scripts/makeall MinionPro --expanded
Chosen font family is MinionPro
Different font versions found: --pack option is disabled
Creating PostScript fonts ...
C:\texlive\2014\bin\win32\cfftot1.exe: glyph ‘sterling.oldstyle’: While processing otf/MinionPro-Bold.otf:
C:\texlive\2014\bin\win32\cfftot1.exe: glyph ‘sterling.oldstyle’: warning: complex flex hint replaced with curves
C:\texlive\2014\bin\win32\cfftot1.exe: (This Type 2 format font contains flex hints prohibited by Type 1.
C:\texlive\2014\bin\win32\cfftot1.exe: I’ve safely replaced them with ordinary curves.)
C:\texlive\2014\bin\win32\cfftot1.exe: glyph ‘colonmonetary.oldstyle’: While processing otf/MinionPro-It.otf:
C:\texlive\2014\bin\win32\cfftot1.exe: glyph ‘colonmonetary.oldstyle’: warning: complex flex hint replaced with curves
C:\texlive\2014\bin\win32\cfftot1.exe: (This Type 2 format font contains flex hints prohibited by Type 1.
C:\texlive\2014\bin\win32\cfftot1.exe: I’ve safely replaced them with ordinary curves.)
Creating TeX metrics ...
 < 62) : Syntaxfehler: Ungültiger arithmetischer Operator. (Fehlerverursachendes < 62) \").t \"

答案1

我认为问题是你下载的文件有Windows行结尾。但 Cygwin bash 需要 Unix 行结尾。 Unix 行以换行 (LF) 字符结束,而 Windows 行以两个字符组合回车、换行 (CR LF) 结束。就 bash 而言,每行末尾都有 CR 字符,它们会导致语法错误。

至少将 shell 脚本转换为 Unix 行结尾:

dos2unix scripts/*
unix2dos scripts/*.bat

相关内容