這里在centos下安裝freetype2.
The FreeType2 package contains a library which allows applications to properly render TrueType fonts.
wget -c https://downloads.sourceforge.net/freetype/freetype-2.9.1.tar.bz2
tar -xf freetype-2.9.1.tar.bz2
cd freetype-2.9.1/
./configure --prefix=/usr/local/freetype2 -enable-freetype-config --disable-static
make
make install
經(jīng)過以上步驟答捕,freetype2被安裝在/usr/local/freetype2
.
root@localhost freetype2]# pwd
/usr/local/freetype2
[root@localhost freetype2]# ls -al
total 0
drwxr-xr-x 6 root root 56 Jul 6 22:17 .
drwxr-xr-x. 14 root root 159 Jul 6 22:17 ..
drwxr-xr-x 2 root root 29 Jul 6 22:17 bin
drwxr-xr-x 3 root root 23 Jul 6 22:17 include
drwxr-xr-x 3 root root 120 Jul 6 22:17 lib
drwxr-xr-x 4 root root 32 Jul 6 22:17 share
如何卸載以上程序呢志笼,也 非常方便。
[root@localhost freetype-2.9.1]# make uninstall
./builds/unix/libtool --mode=uninstall rm -f /usr/local/freetype2/lib/libfreetype.la
libtool: uninstall: rm -f /usr/local/freetype2/lib/libfreetype.la /usr/local/freetype2/lib/libfreetype.so.6.16.1 /usr/local/freetype2/lib/libfreetype.so.6 /usr/local/freetype2/lib/libfreetype.so
rm -rf /usr/local/freetype2/include/freetype2
rm -f /usr/local/freetype2/bin/freetype-config
rm -f /usr/local/freetype2/share/aclocal/freetype2.m4
rm -f /usr/local/freetype2/lib/pkgconfig/freetype2.pc
rm -f /usr/local/freetype2/share/man/man1/freetype-config.1
等效于:
rm -rf /usr/local/freetype2
References:
http://www.linuxfromscratch.org/blfs/view/svn/general/freetype2.html