Note that there are some explanatory texts on larger screens.

plurals
  1. POLinux centos fontconfig help need
    primarykey
    data
    text
    <p>I'm trying to get wkhtmltopdf working and i received the following error when using certain fonts with @font_face.</p> <pre><code>/usr/bin/wkhtmltopdf: symbol lookup error: /usr/bin/wkhtmltopdf: undefined symbol: FcFreeTypeQueryFace </code></pre> <p>So I looked it up and saw I needed up update fontconfig so I followed this guide.</p> <pre><code>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 </code></pre> <p>I got to the line</p> <pre><code>./configure -prefix=/usr </code></pre> <p>and received this error.</p> <pre><code>configure: error: *** expat is required. or try to use --enable-libxml2 </code></pre> <p>Now I have no idea what to do. I know less than the basics in linux. Can someone please help me through this?</p> <p>Thanks in advance.</p> <p>Updates:</p> <p>Tried</p> <pre><code>./configure -prefix=/usr --enable-libxml2 </code></pre> <p>got error</p> <pre><code>checking for LIBXML2... no configure: error: Package requirements (libxml-2.0 &gt;= 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. </code></pre> <p>the i tried</p> <pre><code>yum install expat </code></pre> <p>got this</p> <pre><code>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 </code></pre> <p>after using</p> <pre><code>yum install libxml2-devel </code></pre> <p>I ran the config again and it worked.</p> <pre><code>./configure -prefix=/usr --enable-libxml2 </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload