【python】安裝hyperscan-python

來源:互聯網
上載者:User

標籤:path   lan   tps   .so   size   cmake   art   body   安裝python   

環境centos6.2

 

1. 先安裝hyperscan

主要參考http://blog.csdn.net/cheng_fangang/article/details/51143412

注意:裡面2.8不要照做 libstdc++.so.6不要修改

 

不同點:

cmake hyperscan-4.0.0前,把hyperscan-4.0.0中的CMakeLists.txt裡的

option(BUILD_SHARED_LIBS "Build shared libs instead of static" OFF)

改為

option(BUILD_SHARED_LIBS "Build shared libs instead of static" ON)

區別:OFF編譯的是靜態庫,ON編譯的是動態庫。後面安裝python模組時需要動態庫

 

2. 安裝python-hyperscan

下載代碼:https://github.com/grrrrrrrrr/hyperscan-python

 

修改環境變數

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/gcc/lib64/

其中:/usr/local/gcc/lib64/ 是libstdc++.so.6.0.18的存放路徑

 

安裝

python setup.py build

python setup.py install

 

驗證

進入python, import hyperscan

 

【python】安裝hyperscan-python

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.