Arch Linux

  • ページ: 動作報告
  • 投稿者: anonymous?
  • 状態: 失敗
  • ptexliveバージョン:20100308
  • 投稿日: 2010-03-12 (金) 11:00:52

必要パッケージ

freetype2 2.3.12-1 gd 2.0.36RC1-3 libpng 1.4.1-1 poppler 0.12.4-1 t1lib 5.1.2-2 xpdf 3.02_pl4-2 xpdf-japanese 20040727-4 zlib 1.2.3.9-1

ptexlive.cfg

diffは以下の通りです.

--- ptexlive.sample 2010-03-08 00:48:54.000000000 +0900
+++ ../ptexlive.cfg 2010-03-11 07:44:01.000000000 +0900
@@ -11,13 +11,14 @@
 TEXLIVE_VERSION=2009

 ### (必須) mount した TeX Live 2009 DVD のディレクトリを指定
-ISO_DIR=/media/TeXLive2009
+#ISO_DIR=/media/TeXLive2009
 #ISO_DIR=/Volumes/TeXLive2009
 #ISO_DIR=/mnt/cdrom
+ISO_DIR=/mnt/iso

 ### (任意) install した TeX Live 2009 のディレクトリを指定
 # TEXLIVE_DIR=/usr/local/texlive/2009
-# TEXLIVE_DIR=$ISO_DIR
+TEXLIVE_DIR=$ISO_DIR

 ### (任意) install する ptexlive のディレクトリを指定
 # PREFIX=/usr/local/texlive/p2009
@@ -27,6 +28,7 @@
 # TMP_PREFIX=`pwd`/build

 ### (任意) make font でフォント検索するディレクトリを追加指定
+EXTRA_CMAP="/usr/share/fonts"
 # EXTRA_CMAP="/usr/local/cmap;/c/program files/cmap"
 # EXTRA_TRUETYPE="/usr/local/ttf;/c/program files/truetype"
 # EXTRA_OPENTYPE="/usr/local/otf;/c/program files/opentype"
@@ -36,19 +38,19 @@

 ### (任意) make 中に最大 N 個のプロセスを起動する(高速化)
 ### N は (コア数+1) にするのがよいらしい
-make_option -j 2   # for single core
-# make_option -j 3 # for 2 core
+# make_option -j 2   # for single core
+make_option -j 3 # for 2 core
 # make_option -j 5 # for 4 core
 # make_option -j   # unlimit

 ### (任意) 既にライブラリが存在すれば、それを使う
-# conf_option --with-system-zlib
-# conf_option --with-system-libpng    # using system-zlib
-# conf_option --with-system-freetype2 # using system-zlib
-# conf_option --with-system-gd        # using system-libpng, system-freetype2
-# conf_option --with-system-t1lib
+conf_option --with-system-zlib
+conf_option --with-system-libpng    # using system-zlib
+conf_option --with-system-freetype2 # using system-zlib
+conf_option --with-system-gd        # using system-libpng, system-freetype2
+conf_option --with-system-t1lib
 # conf_option --with-system-freetype
-# conf_option --with-system-xpdf
+conf_option --with-system-xpdf

 ### OS 付属の freetype2 は pxdvi の縦書きに必要な otvalid モジュールが
 ### 無効になっていることが多いので注意。
@@ -137,7 +139,7 @@


 ### もし md5sum コマンドがあれば[自動判別]
-# MD5=md5sum
+MD5=md5sum

 ### もし gmd5sum コマンドがあれば[自動判別]
 # MD5=gmd5sum
@@ -149,7 +151,7 @@
 # MD5=none

 ### もし xzdec コマンドがあれば[自動判別]
-# XZ=xzdec
+XZ=xzdec

 ### もし 7za コマンドがあれば[自動判別]
 # XZ="7za x -so"
@@ -168,4 +170,4 @@

 ### ディスクを少々節約する(知識がないと設定は困難)
 ### solaris ではうまく動かないことが多い
-# conf_option --enable-shared
+conf_option --enable-shared

エラーが出るあたりのログは以下の通りです.

./../../texk/web2c/pdftexdir/pdftoepdf.cc: In function 'void copyFont(char*, Object*)':
../../../texk/web2c/pdftexdir/pdftoepdf.cc:398: warning: deprecated conversion from string constant to 'char*'
../../../texk/web2c/pdftexdir/pdftoepdf.cc:400: warning: deprecated conversion from string constant to 'char*'
../../../texk/web2c/pdftexdir/pdftoepdf.cc:401: warning: deprecated conversion from string constant to 'char*'
../../../texk/web2c/pdftexdir/pdftoepdf.cc:403: warning: deprecated conversion from string constant to 'char*'
../../../texk/web2c/pdftexdir/pdftoepdf.cc:405: warning: deprecated conversion from string constant to 'char*'
../../../texk/web2c/pdftexdir/pdftoepdf.cc:407: warning: deprecated conversion from string constant to 'char*'
../../../texk/web2c/pdftexdir/pdftoepdf.cc:411: warning: deprecated conversion from string constant to 'char*'
../../../texk/web2c/pdftexdir/pdftoepdf.cc:413: warning: deprecated conversion from string constant to 'char*'
/usr/include/poppler/GfxFont.h: In function 'void writeEncodings()':
/usr/include/poppler/GfxFont.h:230: error: 'virtual GfxFont::~GfxFont()' is protected
../../../texk/web2c/pdftexdir/pdftoepdf.cc:653: error: within this context
../../../texk/web2c/pdftexdir/pdftoepdf.cc: In function 'integer read_pdf_info(char*, char*, integer, integer, integer, integer)':
../../../texk/web2c/pdftexdir/pdftoepdf.cc:708: error: 'class PDFDoc' has no member named 'getPDFVersion'
../../../texk/web2c/pdftexdir/pdftoepdf.cc: In function 'void write_epdf()':
../../../texk/web2c/pdftexdir/pdftoepdf.cc:979: warning: deprecated conversion from string constant to 'char*'
../../../texk/web2c/pdftexdir/pdftoepdf.cc:983: warning: deprecated conversion from string constant to 'char*'
../../../texk/web2c/pdftexdir/pdftoepdf.cc:988: warning: deprecated conversion from string constant to 'char*'
../../../texk/web2c/pdftexdir/pdftoepdf.cc:993: warning: deprecated conversion from string constant to 'char*'
make[7]: *** [libpdftex_a-pdftoepdf.o] Error 1
make[7]: *** Waiting for unfinished jobs....
mv -f .deps/pdftex-pdftex3.Tpo .deps/pdftex-pdftex3.Po
mv -f .deps/pdftex-pdftex2.Tpo .deps/pdftex-pdftex2.Po
make[7]: Leaving directory `/var/tmp/ptexlive2009/texlive-20091011-source/Work/texk/web2c'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/var/tmp/ptexlive2009/texlive-20091011-source/Work/texk/web2c'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/var/tmp/ptexlive2009/texlive-20091011-source/Work/texk/web2c'
make[4]: *** [subtexk] Error 1
make[4]: Leaving directory `/var/tmp/ptexlive2009/texlive-20091011-source/Work/texk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/ptexlive2009/texlive-20091011-source/Work/texk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/ptexlive2009/texlive-20091011-source/Work'

real  4m0.583s
user  4m12.730s
sys 0m51.357s
+ echo 2
find: `/var/tmp/ptexlive2009/texlive-20091011-source/inst/bin': No such file or directory
./Build: Build failed, no executables under /var/tmp/ptexlive2009/texlive-20091011-source/inst/bin.
done Thu Mar 11 08:19:00 JST 2010
make[1]: *** [stage3] エラー 2
make[1]: ディレクトリ `/home/chiba/src/ptexlive/ptexlive-20100308' から出ます

メッセージ

GfxFont.hによるエラーのようですが, 私の知識ではどうトライしたらよいか分かりません. popplerをアンインストールして試してみても コンパイルができませんでした.


  • find: `/var/tmp/ptexlive2009/texlive-20091011-source/inst/bin': No such file or directoryとあるのですが、SRC_TAR="/mnt/texlive/source/texlive-20091011-source.tar.xz"のように、mount -o loopしたディレクトリのサブディレクトリ(source)を指定していますか? -- 桜井 真 2010-03-12 (金) 11:49:22
  • 多少時間とディスクスペースを使っても良くて,かつまずはインストールを成功させたいのならば,ptexlive.cfg の設定は最大限 sample に近くして試してみてはいかがでしょうか.気になったのは,--enable-shared はコメントアウトにしたほうが安全です; --with-system-* を有効にしている部分は sample 通りにコメントアウト; 自動判別の部分も自動判別に任せるために sample 通りに. -- kuroky 2010-03-12 (金) 23:10:47
  • >桜井さん SRC_TARの設定はしていませんが,log-2010????を見るとmount -o loopしたディレクトリのサブディレクトリが自動的に設定されているようです. >kurokyさん アドバイス通りにISO_DIRの設定だけそれ以外はptex.sampleのままにしたら成功いたしました.これからは --with-system* をいくつか有効にして試してみます.ありがとうございました. -- anonymous 2010-03-13 (土) 12:27:50
  • 出遅れてしまいましたが、既に解決しているようで、よかったです。私の勘では --with-system-xpdf か --enable-shared があやしい気がしています。 -- 土村 2010-03-13 (土) 15:04:35
  • その後の調査についてご報告いたします.--with-system-libpng を有効にすると,/var/tmp/ptexlive2009/texlive-20091011-source/Work/texk/dvipdfmx/src/../../../../texk/dvipdfmx/src/pngimage.c:151: undefined reference to `png_check_sig' とエラーが出ることが分かりました.libpng 1.4.0以降では png_check_sig が削除されているようです(Arch Linux のlibpngは1.4.1)./usr/include/png.h にも見あたりませんでした.--with-system-libpngとそれに依存する--with-system-gd また, --with-system-freetype --with-system-xpdf をコメントアウトし,--with-system-zlib, --with-system-freetype2, --with-system-t1libを有効にした場合でもコンパイルに成功します.--enable-sharedを有効にしても問題ありませんでした.一応ご報告まで. -- anonymous 2010-03-17 (水) 18:51:16
  • 詳しく報告下さってありがとうございます。libpng が新しすぎるとダメということなんですね。これは想定してませんでした。 -- 土村 2010-03-19 (金) 00:20:17
  • libpopplerのsonameの変更によるものですね。 [karmic] libpoppler4 -> libpoppler5 transition Debian sid の texlive-bin にあります texlive-bin_2009-7.diff.gzに同梱されている libpoppler-0.12 あたりが参考になります。 -- munepi 2010-10-01 (金) 00:53:00
  • おそらく texk/web2c/luatexdir/image/pdftoepdf.cc でも、上記と同様のビルドエラーが起こるはずですので、同様な修正が必要だと思われます。 -- munepi 2010-10-01 (金) 00:55:00


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2010-10-01 (金) 17:31:54 (4949d)