CentOS编译安装node+npm+obfsproxy

这三者的用途嘛,懂的自然懂,不懂的也不需要去懂,无需多说。

下面就开始:

首先是编译安装node和npm

git clone git://github.com/joyent/node.git cd node ./configure make install cd .. git clone git://github.com/isaacs/npm.git cd npm make install

<p>
  
</p>

<p>
  由于obfsproxy依赖libevent-2,而通过yum安装的libevent版本是1.4.13-4.el6,只好自己编译安装。截至本文发布,当前最新的稳定版本是2.0.21
</p>

<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:1711767f-7cfc-485b-9c60-ad029068c4d1" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px">
  <pre style=" width: 640px; height: 135px;background-color:White;white-space:-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; white-space: pre-wrap; word-wrap: break-word;overflow: auto;"><div>

<!–

Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/

–>

wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz tar xvf libevent-2.0.21-stable.tar.gz cd libevent-2.0.21-stable ./configure make && make install

  <p>
    <!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div> 

    <p>
      接下来编译安装obfsproxy
    </p>

    <div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:d4c87a0e-7423-45bf-98eb-2a5fcf85bc33" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px">
      <pre style=" width: 640px; height: 150px;background-color:White;white-space:-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; white-space: pre-wrap; word-wrap: break-word;overflow: auto;"><div>

<!–

Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/

–>

export libevent_CFLAGS=-I/usr/local/include/event2 export libevent_LIBS=-L/usr/local/lib/ -levent export LD_LIBRARY_PATH=/usr/local/lib/ git clone https://git.torproject.org/obfsproxy.git cd obfsproxy ./autogen.sh && ./configure make && make install