ctpbee / ctpbee_api

此处描述ctpbee里面的ctp API 生成
15 stars 18 forks source link

ctpbee-api在ubuntu上,python3.6编译时一直过不了 #5

Closed SmallVagetable closed 2 years ago

SmallVagetable commented 2 years ago

ctpbee-api在ubuntu上,python3.6编译时一直过不了,一直卡在这里,不知道需要怎么操作才能正确安装 Stored in directory: /root/.cache/pip/wheels/cb/e4/30/89948c08ef14ddab0845ba330395decc45e9704af58e877b4c Running setup.py bdist_wheel for ctpbee-api ... \

SmallVagetable commented 2 years ago

报错日志 running build_ext building 'ctpbee_api.ctp.vnctptd' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/ctpbee_api creating build/temp.linux-x86_64-3.6/ctpbee_api/ctp creating build/temp.linux-x86_64-3.6/ctpbee_api/ctp/vnctp creating build/temp.linux-x86_64-3.6/ctpbee_api/ctp/vnctp/vnctptd x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ictpbee_api/ctp/include -Ictpbee_api/ctp/vnctp -I/usr/include/python3.6m -c ctpbee_api/ctp/vnctp/vnctptd/vnctptd.cpp -o build/temp.linux-x86_64-3.6/ctpbee_api/ctp/vnctp/vnctptd/vnctptd.o -std=c++17 -O3 -Wno-delete-incomplete -Wno-sign-compare -pthread x86_64-linux-gnu-gcc: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-7/README.Bugs for instructions. error: command 'x86_64-linux-gnu-gcc' failed with exit status 4

SmallVagetable commented 2 years ago

我通过换成centos,升级gcc,加大内存,编译过了