Closed vvakame closed 7 years ago
https://github.com/TechBooster/C89-FirstStepReVIEW-v2 を ./setup.sh && npm run pdf
してみたけどうまく動かない。
ざっくり以下のような動作
Running "exec:compile2pdf" (exec) task
>> compiling preface.tex
>>
>> compiling writing-book.tex
>> compiling setup.tex
>> compiling review-introduction.tex
>> warning: duplicate ID: image_sample (#<ReVIEW::Book::IndepImageIndex::Item:0x0055df9bb11a18>)
>>
>> compiling configure.tex
>> compiling build.tex
>> compiling workflow.tex
>> compiling tips.tex
>> compiling contributors.tex
This is e-pTeX, Version 3.14159265-p3.6-141210-2.6 (utf8.euc) (TeX Live 2015/Alpine Linux) (preloaded format=platex)
restricted \write18 enabled.
>> kpathsea: Running
>> mktexfmt
>> platex.fmt
>>
>> Can't locate mktexlsr.pl in @INC (@INC contains: /usr/share/tlpkg /usr/share/texmf-dist/scripts/texlive /usr/local/lib/perl5/site_perl /usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at /usr/bin/mktexfmt line 24.
>> BEGIN failed--compilation aborted at /usr/bin/mktexfmt line 26.
>> /usr/lib/ruby/gems/2.2.0/gems/review-1.7.2/lib/review/pdfmaker.rb:32:in `system_or_raise': failed to run command: platex -kanji=utf8 book.tex (RuntimeError)
https://bugs.alpinelinux.org/issues/4514 なんかtexliveが悪いらしい…? debianでのapt-getと比べると texlive-lang-cjk texlive-fonts-recommended が足りないけど、alpineには存在しないようだ。 https://pkgs.alpinelinux.org/packages?name=%25texlive%25&repo=all&arch=x86_64&maintainer=all
僕の拙いaptとtexliveの知識だとこれからどうしたもんだかわからん。
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> e8a300053277 8 hours ago 195.8 MB
alpine edge a771b9cf7a9a 32 hours ago 4.802 MB
alpine latest 90239124c352 32 hours ago 4.794 MB
debian jessie 256adf7015ca 2 days ago 125.1 MB
vvakame/review latest ecce1d34f1bb 3 months ago 2.192 GB
小さい(確信 2.192 GBが195.8 MBになりました!って感じ。 フォント系もりもり入れるともっと大きくなりそうだけど500MBは超えないんじゃなかろうか。すごく使いやすくなるぞ!
$ cd /usr/share/
$ rm -rf texmf-dist
$ svn co svn://tug.org/texlive/trunk/Master/texmf-dist
$ mktexlsr
$ fmtutil-sys --all
してみたけどダメだった… texわからん http://qiita.com/ligun/items/2ba9be9e727b63b563f2
つらそう
alpine linuxをベースにするとサイズがだいぶ小さくなるらしい…!! 現状1.2GBとかするので使いにくくてしょうがない。