日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 人工智能 > ChatGpt >内容正文

ChatGpt

Install gevent in AIX with gcc

發(fā)布時間:2024/4/13 ChatGpt 47 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Install gevent in AIX with gcc 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

為什么80%的碼農(nóng)都做不了架構(gòu)師?>>> ??

greenlet

Download greenlet-0.4.1.zip from https://github.com/python-greenlet/greenlet sudo gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -fno-tree-dominator-opts -I. -I/opt/freeware/include/python2.7 -c greenlet.c -o build/greenlet.o

sudo gcc -shared -lpthreads -lpython2.7 -o build/greenlet.so build/greenlet.o sudo cp build/greenlet.so /opt/freeware/lib/python2.7/site-packages/

libev

Download libev-4.15.tar.gz from http://dist.schmorp.de/libev/

./configure --prefix=/usr/local/libev gmake && sudo gmake install

c-ares

Download c-ares from http://c-ares.haxx.se/

./configure --prefix=/usr/local/c-ares gmake && sudo gmake install Or just run run `configure CONFIG_COMMANDS= CONFIG_FILES=`

gevent

  • Download gevent-1.0.tar.gz from https://pypi.python.org/pypi/gevent#downloads

    mkdir build mkdir build/gevent cp gevent/*py build/gevent

  • build core.so

    sudo gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -fno-tree-dominator-opts -I/opt/freeware/include/python2.7 -I/usr/local/libev/include gevent/gevent.core.c -c -o build/gevent/core.o
    gcc -pthread -shared -lpython2.7 -L/usr/local/libev/lib -lev -lm build/gevent/core.o -o build/gevent/core.so ( -lm should be added otherwise error throw "ld: 0711-317 ERROR: Undefined symbol: .floor")

  • build ares.so

    1.change folder to c-ares and then run configure CONFIG_COMMANDS= CONFIG_FILES=

    In file gevent/dnshelper.c, replace

    #ifdef HAVE_NETDB_H
    #include <netdb.h>
    #endif
    to
    #include <netdb.h>
    reason: Error throw "dereferencing pointer to incomplete type"
    Ref to
    1 2 3

    2.build share object
    sudo gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -fno-tree-dominator-opts -I/opt/freeware/include/python2.7 -Ic-ares gevent/gevent.ares.c -c -o build/gevent/gevent.ares.o
    gcc -pthread -shared -lpython2.7 -L/home/sms_dev/soft/usr/local/c-ares/lib -lcares -lrt -o build/gevent/ares.so build/gevent/gevent.ares.o

  • build semaphore.so

    sudo gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -fno-tree-dominator-opts -I/opt/freeware/include/python2.7 gevent/gevent._semaphore.c -c -o build/gevent/gevent._semaphore.o

    gcc -pthread -shared -lpython2.7 build/gevent/gevent._semaphore.o -o build/gevent/_semaphore.so

  • build _util.so sudo gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -fno-tree-dominator-opts -I/opt/freeware/include/python2.7 gevent/gevent._util.c -c -o build/gevent/gevent._util.o

    gcc -pthread -shared -lpython2.7 build/gevent/gevent._util.o -o build/gevent/_util.so

Reference: Linux 的 .a / .so / .la 函式庫的差異
問個.a和.so的區(qū)別 Linux下靜態(tài)鏈接庫與動態(tài)鏈接庫的區(qū)別 凡你醉處 你說過 皆非他鄉(xiāng) 淺談coroutine與gevent

轉(zhuǎn)載于:https://my.oschina.net/l1z2g9/blog/189309

總結(jié)

以上是生活随笔為你收集整理的Install gevent in AIX with gcc的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。