tar -jxvf trafficserver-3.0.2.tar.bz2
./configure --prefix=/usr/install/trafficserver --with-user=cache --with-group=cache --enable-debug
出现很奇怪的报错:
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: /usr/local/ssl/lib/libcrypto.a(md5_dgst.o): relocation
R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libcrypto.a: could not read symbols: Bad value
查了下资料说是openssl的问题,要编译成shared,所以用如下参数编译openssl
./config --prefix=/usr/local/ssl enable-shared
这样就能解决上面的错误!!!