标签:
phantomjs
#从下载编译好的版本
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
tar xjvf phantomjs-1.9.7-linux-x86_64.tar.bz2
ln -s phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/bin/
#从git自己编译
git clone git://github.com/ariya/phantomjs.git
cd phantomjs
git checkout 1.9
./build.sh
sudo pear install Console_CommandLine
sudo apt-get install protobuf-compiler
sudo apt-get install php5-gmp
sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
sudo apt-get install openjdk-7-jdk
sudo apt-get install libboost-all-dev
sudo apt-get install php5-dev php5-cli phpunit
sudo vim source /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
#add by Matt 2014.4.23
JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"
JRE_HOME="$JAVA_HOME/jre"
CLASSPATH=".:$JAVA_HOME/lib;$JRE_HOME/lib:$CLASSPATH"
JAVA_PREFIX="$JAVA_HOME"
PATH="$PATH:$JAVA_HOME/bin:$JRE_HOME/bin"
source /etc/environment
#方法1:从git 版本库安装最新版本
git clone https://git-wip-us.apache.org/repos/asf/thrift.git thrift
cd thrift
./bootstrap.sh
./configure
make
sudo make install
#从git版本库安装最新版本
#方法2:从源代码安装
wget https://dist.apache.org/repos/dist/release/thrift/0.9.1/thrift-0.9.1.tar.gz
tar -xzvf thrift-0.9.1.tar.gz
cd thrift-0.9.1/
./configure
make
sudo make install
#从源代码安装
thrift -version
标签:
原文地址:http://www.cnblogs.com/codemanx/p/4676245.html