RT-N66U+tomato编译安装gevent及pyOpenSSL

先来看一下官方对gevent的介绍

gevent is a Python networking library that uses greenlet to provide a synchronous API on top of libevent event loop. Features include: Fast event loop based on libevent (epoll on Linux, kqueue on FreeBSD). Lightweight execution units based on greenlet. API that re-uses concepts from the Python standard library (e.g. Event, Queue). Cooperative socket and ssl modules. Ability to use standard library and 3rd party modules written for standard blocking sockets (gevent.monkey). DNS queries performed through libevent-dns. Fast WSGI server based on libevent-http.

<p>
  虽然新版本的GoAgent不再要求Gevent环境,但Gevent可以提高运行效率,那为什么不装呢?Google后发现<a href="https://maskv.com/technology/192.html" target="_blank">这篇文章</a>,本文参考这篇文章后编译成功,在此谢谢此文作者。
</p>

<p>
  
</p>

<p>
  下面开始:
</p>

<p>
  首先当然是要安装好optware环境,具体可参考<a href="http://www.wikai.info/2012_09_1029.html" target="_blank">《RT-N66U+tomato安装optware流水账》</a>这篇文章。
</p>

<p>
  1、首先ssh到路由器上,执行以下命令更新optware包的信息。
</p>

<div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:5e5fcf87-0342-4e02-b492-add622dbb2f4" 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: 50px;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/

–>

ipkg update ipkg upgrade

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

    <p>
      2、安装编译环境
    </p>

    <div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:14c3e0a6-f270-4e56-91cf-2d6373cc6ad0" 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: 50px;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/

–>

ipkg install buildroot ipkg install make