ファイルが見つかりません(Windowsのcygwin)

ファイルが見つかりません(Windowsのcygwin)
  • Windows 7

  • TeXライブ2014

インストールしようとしています。ミニオンプロとミリアドプロpdflatexで使用されます。cygwin次のようにスクリプトを実行しようとしたとき

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したがって、スラッシュの一般的な違いにより、同じファイルが見つからないようです。この問題をどのように解決できるかを知っている人はいますか?

Cygwin用Perlをインストールした後の新しいバージョン

$ ./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行は2文字のキャリッジリターン、改行(CR LF)文字で終わります。 Bash の場合、各行の末尾に CR 文字があるため、構文エラーが発生します。

少なくとも、シェルスクリプトを Unix 行末に変換します。

dos2unix scripts/*
unix2dos scripts/*.bat

おすすめ記事