cd /tmp mkdir purpleline cd purpleline git clone https://github.com/apache/thrift thrift cd thrift git checkout 0.9.2 ./bootstrap.sh ./configure make make install cd /usr/local/lib mkdir thrift mv libthrift* thrift ln -s /usr/local/lib/thrift/libthrift-0.9.2.so /usr/lib/libthrift.so cd /tmp/purpleline
安裝 purple_line
1 2 3 4 5 6 7 8
git clone http://altrepo.eu/git/purple-line.git/ purple-line git clone http://altrepo.eu/git/line-protocol.git/ line-protocol cp line-protocol/line_main.thrift purple-line/ cp line-protocol/line.thrift purple-line/ cd purple-line make make install ldconfig