忍者ブログ
物理学者(ポスドク)による日々の研究生活のメモ書きです ( python/emacs/html/Japascript/シェルスクリプト/TeX/Mac/C言語/Linux/git/tmux/R/ポケモンGO)
最初に結論を書いておきます
2014年のこの記事↓ の通りにやったらエラーが消えて動くようになりました :D
■ 参考 : 【Mac mountain lion】TeXを使ってみる






新しいMacで以下のエラーメッセージが出だした
20343 words of font info for 74 preloaded fonts
14 hyphenation exceptions
Hyphenation trie of length 6075 has 181 ops out of 35111
181 for language 0
No pages of output.
Transcript written on ptex.log.
mktexfmt [INFO]: /Users/hoge/.texlive2017/texmf-var/web2c/ptex/ptex.fmt installed.
mktexfmt [INFO]: Disabled formats: 1
mktexfmt [INFO]: Successfully rebuilt formats: 1
mktexfmt [INFO]: Not selected formats: 18
mktexfmt [INFO]: Total formats: 20
mktexfmt [INFO]: exiting with status 0
---! /Users/hoge/.texlive2017/texmf-var/web2c/ptex/ptex.fmt was written by ptex
(Fatal format file error; I'm stymied)
ググったら少し情報が出て来た
このエラーは
TeX が、LaTeX や pLaTeX のフォーマットファイルを見つけることが出来ない、あるいは、それらが正しい版のものでない、などの理由によってエラーが生じたことを意味しています。
のときに起こるらしい

■ 参考 : C. Fatal format file error; I'm stymied

■ 参考 : latexのfatal format error
% fmtutil --byfmt latex
fmtutil [ERROR]: Either -sys or -user mode is required.
fmtutil [ERROR]: In nearly all cases you should use fmtutil -sys.
fmtutil [ERROR]: For special cases see http://tug.org/texlive/scripts-sys-user.htm
-sysか-userがいると言われたのでsysをつけてみる
% fmtutil --byfmt latex
fmtutil [ERROR]: Either -sys or -user mode is required.
fmtutil [ERROR]: In nearly all cases you should use fmtutil -sys.
fmtutil [ERROR]: For special cases see http://tug.org/texlive/scripts-sys-user.htm
次はwritableじゃないと言われるので、sudoをつけてみる
% fmtutil -sys --byfmt latex
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
fmtutil: /opt/local/var/db/texmf/web2c/fmtutil.cnf
fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
fmtutil: /opt/local/etc/texmf/web2c/fmtutil.cnf
fmtutil [ERROR]: format directory not writable: /opt/local/var/db/texmf/web2c
% sudo fmtutil -sys --byfmt latex
 ・
 ・
 ・
7504 words of font info for 31 preloaded fonts
14 hyphenation exceptions
Hyphenation trie of length 6081 has 183 ops out of 35111
2 for language 1
181 for language 0
No pages of output.
Transcript written on platex.log.
fmtutil [INFO]: /opt/local/var/db/texmf/web2c/eptex/platex.fmt installed.
fmtutil [INFO]: Disabled formats: 1
fmtutil [INFO]: Successfully rebuilt formats: 1
fmtutil [INFO]: Not selected formats: 18
fmtutil [INFO]: Total formats: 20
念のためplatexでも走らせておく
% sudo fmtutil -sys --byfmt platex
表示されるメッセージは
Fatal format file error; I'm stymied
のエラーが出た時と同じようなメッセージだなぁ・・・・
うまく行ってるのかこれ?


改善しない








もう一度TeXShopの設定を見直す
2015年の情報だけど以下のページを見た↓

■ 参考 : MacでLaTeXの環境を整える | texlive + TeXShop



全部やってから、タイプセットしたらエラーメッセージが変わった

This is pTeX, Version 3.14159265-p3.7.1 (utf8.euc) (TeX Live 2017/MacPorts 2017_2) (preloaded format=platex-utf8)
restricted \write18 enabled.

kpathsea: Running mktexfmt platex-utf8.fmt
mktexfmt: mktexfmt is using the following fmtutil.cnf files (in precedence order):
mktexfmt: /opt/local/var/db/texmf/web2c/fmtutil.cnf
mktexfmt: mktexfmt is using the following fmtutil.cnf file for writing changes:
mktexfmt: /Users/hoge/.texlive2017/texmf-config/web2c/fmtutil.cnf
mktexfmt [INFO]: writing formats under /Users/hoge/.texlive2017/texmf-var/web2c
mktexfmt [INFO]: did not find entry for byfmt=platex-utf8, skipped
mktexfmt [INFO]: Disabled formats: 1
mktexfmt [INFO]: Not selected formats: 19
mktexfmt [INFO]: Total formats: 20
mktexfmt [INFO]: exiting with status 0
I can't find the format file `platex-utf8.fmt'!
うーん、だめぽ






もう一度最初に基本に立ち戻って、過去に上手くいった設定を思い出す・・・・

■ 参考 : 【Mac mountain lion】TeXを使ってみる

動いた・・・・・
たぶんどこかのファイル名が間違ってたとかそういうトラブルだろうな






(2018/10/17 追記)

またこのエラーが出た
今回は原因ははっきりわかってて、mac portでいろいろとアップデートさせたらついでにtexもアップデートされてしまった・・・
それでversionが変わってしまったからっぽい

今回は
fmtutil-sys --all
を走らせたら直った
めちゃくちゃERRORって出てたけど直った

やってないけど、たぶん /opt/local/var/db/texmf/web2c/eptex/platex.fmt を削除しても直ったかもしれない
この場合、たぶん正しいfmtファイルが自動生成されるんだろうなぁ

■ 参考 : Arch Linux をアップデートしたら LaTeX が動かなくなった - 満月紀行








PR
この記事にコメントする
Name
Title
Color
E-Mail
URL
Comment
Password   Vodafone絵文字 i-mode絵文字 Ezweb絵文字
プロフィール
HN:coffee
職業:物理屋(自称)
趣味:映画鑑賞、登山
出身:大阪府の南の田舎
自己紹介:
import MyProfile
import coffee_pote from TWITTER
import amazonのほしい物リスト from WISH_LIST

print "先月子供が産まれました!"

# 最終更新 2022/10/25
カウンター
カウンター カウンター
ブログ内検索
ツイートするボタン
リンク
相互リンク募集中です (Twitterにてお知らせください)

Demo scripts for gnuplot version 5
(gnuplotのさまざまなデモ画像と作り方がまとめられている、眺めているだけでできるようになった気分になれる)

gnuplotスクリプトの解説
(米澤進吾さんの個人ページ、gnuplotと言えばこのかた)

gnuplot のページ
(Takeno Lab、うちのブログがリンクされていたのでリンク返し)

Twitterから映画の評価が分かる & 映画の鑑賞記録が残せる coco
(映画の感想をまとめられるサイト、いつもお世話になっています)

Astronomy Picture of the Day Archive
(天文や宇宙関連の最新の話題について画像とともにNASAが説明しているページ)

今日のほしぞら
(任意の時刻の空で見える星を表示してくれる、国立天文台が管理している)

GNUPLOTとアニメーション
(応用の項目の「見せてあげよう!ラピュタの雷を!!」あたりからすごすぎる)

読書メーター
(読んだ本をリストできる便利なサイト)

flickr難民の写真置き場
(20XX年、flickrは有料化の炎に包まれた。あらゆるflickr無料ユーザーは絶滅したかに見えた。 しかし、tumblr移住民は死に絶えてはいなかった。)

教授でもできるMac OS X へのLaTeX, X11, gccのインストレーションと環境設定
(阪大の山中卓さんのwebページ、タイトルにセンスが溢れている、内容は超充実してる、特にTeX関連、学振DCとかPDの申請書類作成時にはお世話になっております)

英語論文執筆用の例文検索サービス
(とんでもないものを見つけてしまった・・・・ arXivに収録されている 811,761報の 英語論文から,例文を検索するための検索エンジン)


Template "simple02" by Emile*Emilie
忍者ブログ [PR]