1.解包
tar jxf trafficserver-2.0.1.tar.bz2
2.编译
./configure --prefix=/usr/local/ts
error:
checking for existence of /usr/lib/tclConfig.sh... loading
checking for XML_SetUserData in -lexpat... no
configure: error: in `/fgn/soft/trafficserver-2.0.1':
configure: error: check for libexpat failed. Have you installed expat-devel?
See `config.log' for more details.
solution:
kernel_test_01:/lib64 # ldconfig -p | grep libexpat
libexpat.so.1 (libc6,x86-64) => /lib64/libexpat.so.1
libexpat.so.1 (libc6) => /lib/libexpat.so.1
libexpat.so (libc6) => /usr/lib/libexpat.so
cd /lib64
ln -s libexpat.so.1 libexpat.so
3。 再继续编译
./configure --prefix=/usr/local/ts
error:
configure: error: check for sqlite3 failed. Have you installed sqlite3-devel?
See `config.log' for more details.
solution:
kernel_test_01:/fgn/soft/trafficserver-2.0.1 # cd /usr/lib64/
kernel_test_01:/usr/lib64 # ln -s libsqlite3.so.0 libsqlite3.so
kernel_test_01:/fgn/soft/trafficserver-2.0.1 # ldconfig -p | grep sqlite3
libsqlite3.so.0 (libc6,x86-64) => /usr/lib64/libsqlite3.so.0
libsqlite3.so (libc6,x86-64) => /usr/lib64/libsqlite3.so
4。 再继续编译
./configure --prefix=/usr/local/ts
sucess