2

wkhtmltopdf を機能させようとしていますが、@font_face で特定のフォントを使用すると、次のエラーが発生しました。

/usr/bin/wkhtmltopdf: symbol lookup error: /usr/bin/wkhtmltopdf: undefined symbol: FcFreeTypeQueryFace

そこで調べてみたところ、fontconfigの更新が必要であることがわかったので、このガイドに従いました。

wget http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.11.0.tar.gz
tar -zxvf fontconfig-2.11.0.tar.gz
cd fontconfig-2.11.0
./configure -prefix=/usr
make
# I moved the file file into /usr/lib manually (don't trust 'make install' on a production box)
sudo mv ./src/.libs/libfontconfig.so.1.2.0 /usr/lib/
# and setup the libfontconfig.so.1 symlink
cd /usr/lib
sudo ln -s libfontconfig.so.1.2.0 libfontconfig.so.1

ラインに着きました

./configure -prefix=/usr

このエラーを受け取りました。

configure: error:
*** expat is required. or try to use --enable-libxml2

今、私は何をすべきかわかりません。私は Linux の基本的なことしか知りません。誰かがこれを手伝ってくれますか?

前もって感謝します。

アップデート:

試した

./configure -prefix=/usr --enable-libxml2

エラーが発生しました

checking for LIBXML2... no
configure: error: Package requirements (libxml-2.0 >= 2.6) were not met:

No package 'libxml-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBXML2_CFLAGS
and LIBXML2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

私が試した

yum install expat

これを得ました

Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirror.trouble-free.net
 * extras: mirrors.advancedhosters.com
 * updates: mirror.atlanticmetro.net
base                                                                        | 1.1 kB     00:00
extras                                                                      | 2.1 kB     00:00
updates                                                                     | 1.9 kB     00:00
updates/primary_db                                                          | 147 kB     00:00
Setting up Install Process
Package expat-1.95.8-11.el5_8.x86_64 already installed and latest version
Nothing to do

使用後

yum install libxml2-devel

もう一度設定を実行したところ、うまくいきました。

./configure -prefix=/usr --enable-libxml2
4

1 に答える 1