先下載tor:https://www.torproject.org/dist/tor-0.2.5.12.tar.gz
下載libevent:http://libevent.org/
安裝libevent於家目錄:
(參考http://superuser.com/questions/324613/installing-a-library-locally-in-home-directory-but-program-doesnt-recognize-it)
cd $HOME/library/installation/folder
DIR=$HOME/local
./configure --prefix=$DIR
#... make ... make install
Now, to install the program, I also had to include the library packages:
cd $HOME/program/installation/folder
./configure --prefix=$DIR CFLAGS="-I$DIR/include" LDFLAGS="-L$DIR/lib"
#... make ... make install
到tor的目錄底下並安裝:
./configure --prefix=$HOME/testing --with-libevent-dir=$HOME/testing make install
沒有留言:
發佈留言